Only flush freshly mapped uncached/device mappings if we have a vm_page for it,
authorpatrick <patrick@openbsd.org>
Tue, 26 Oct 2021 14:13:57 +0000 (14:13 +0000)
committerpatrick <patrick@openbsd.org>
Tue, 26 Oct 2021 14:13:57 +0000 (14:13 +0000)
commit0a76030c5dd12b916832f83f7cc4364b70ff834c
treefe8cdc05b43cf0e8a258fbc7b17b01096e112c9a
parent58554311679452e8c74ea6e1306bc01791e89ce7
Only flush freshly mapped uncached/device mappings if we have a vm_page for it,
meaning we make sure it is indeed managed memory/RAM and not some MMIO.  Fixes
booting on VMware Fusion (and an older QEMU diff for HVF acceleration).

ok kettenis@
sys/arch/arm64/arm64/pmap.c