mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-08 12:41:35 +00:00
The assertion that only code emulation requires GVA to GPA translation is wrong. Allow the caller of `translate` to pass in permission flags directly. Provide a new method `read_memory_flags` so that we can add the EXECUTE permission flag where necessary. Signed-off-by: Wei Liu <liuwe@microsoft.com>