mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 03:12:27 +00:00
We don't have an easy way to figure out if a GPA points to normal memory or device memory, but the guest's normal memory regions shouldn't overlap with device regions. We can simply try to do a normal memory read / write, and proceed to do device memory read / write if that fails. Signed-off-by: Wei Liu <liuwe@microsoft.com>