From babfa20ca4721e950d8096f32b1dc091763a8837 Mon Sep 17 00:00:00 2001 From: Sergio Andres Gomez Del Real Date: Wed, 13 Sep 2017 04:05:20 -0500 Subject: i386: hvf: implement vga dirty page tracking This patch implements setting the tracking of dirty vga pages, using hvf's interface to protect guest memory. It uses the MemoryListener callback mechanism through .log_start/stop/sync Signed-off-by: Sergio Andres Gomez Del Real Message-Id: <20170913090522.4022-13-Sergio.G.DelReal@gmail.com> Signed-off-by: Paolo Bonzini --- include/sysemu/hvf.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/sysemu/hvf.h b/include/sysemu/hvf.h index 614a2d203b..e4e43f6468 100644 --- a/include/sysemu/hvf.h +++ b/include/sysemu/hvf.h @@ -34,11 +34,16 @@ uint32_t hvf_get_supported_cpuid(uint32_t func, uint32_t idx, #define hvf_get_supported_cpuid(func, idx, reg) 0 #endif +/* hvf_slot flags */ +#define HVF_SLOT_LOG (1 << 0) + typedef struct hvf_slot { uint64_t start; uint64_t size; uint8_t *mem; int slot_id; + uint32_t flags; + MemoryRegion *region; } hvf_slot; typedef struct hvf_vcpu_caps { -- cgit v1.2.3-55-g7522