From: Richard Henderson Date: Fri, 26 Sep 2025 22:21:53 +0000 (-0700) Subject: target/i386/hvf: Use hvf_unprotect_dirty_range X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36d5b5caaac4e9ac9b6c636ee9d012ed4849d9e4;p=thirdparty%2Fqemu.git target/i386/hvf: Use hvf_unprotect_dirty_range Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Akihiko Odaki Message-ID: <20260112103034.65310-5-philmd@linaro.org> --- diff --git a/target/i386/hvf/hvf.c b/target/i386/hvf/hvf.c index 731cd95463..1610000d9c 100644 --- a/target/i386/hvf/hvf.c +++ b/target/i386/hvf/hvf.c @@ -142,8 +142,7 @@ static bool ept_emulation_fault(hvf_slot *slot, uint64_t gpa, uint64_t ept_qual) uint64_t dirty_page_start = gpa & page_mask; memory_region_set_dirty(slot->region, gpa - slot->start, 1); - hv_vm_protect(dirty_page_start, page_size, - HV_MEMORY_READ | HV_MEMORY_WRITE | HV_MEMORY_EXEC); + hvf_unprotect_dirty_range(dirty_page_start, page_size); } }