diff options
| author | Sergio Andres Gomez Del Real | 2017-09-13 11:05:20 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2017-12-22 15:01:48 +0100 |
| commit | babfa20ca4721e950d8096f32b1dc091763a8837 (patch) | |
| tree | 6df0ae5cc0b791f31a01e2fa480c92cf9067c920 /include | |
| parent | i386: refactor KVM cpuid code so that it applies to hvf as well (diff) | |
| download | qemu-babfa20ca4721e950d8096f32b1dc091763a8837.tar.gz qemu-babfa20ca4721e950d8096f32b1dc091763a8837.tar.xz qemu-babfa20ca4721e950d8096f32b1dc091763a8837.zip | |
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 <Sergio.G.DelReal@gmail.com>
Message-Id: <20170913090522.4022-13-Sergio.G.DelReal@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sysemu/hvf.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 { |
