mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-12-24 06:02:32 +00:00
there are data transfer between guest virtual space(GVA) & hv(HVA), for example, guest rip fetching during instruction decoding. GVA is address continuous, but its GPA could be only 4K page address continuous, this patch adds copy_from_gva & copy_to_gva functions by doing page walking of GVA to avoid address breaking during accessing GVA. v2: - modify API interface based on new gva2gpa function, err_code added - combine similar code with inline function _copy_gpa - change API name from vcopy_from/to_vm to copy_from/to_gva Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>