aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/shadow.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-05-02 15:08:27 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-05-02 15:08:27 +0100
commit4fe64c6d1b6c1e81901ed9fc3e4498fb578b6d91 (patch)
tree4ea3659b511b1c865a14d1c4f63aa7cf9c40df85 /xen/include/asm-x86/shadow.h
parent3238785d35b0cef87d619a1bdaa12dcd7032cf14 (diff)
downloadxen-4fe64c6d1b6c1e81901ed9fc3e4498fb578b6d91.tar.gz
xen-4fe64c6d1b6c1e81901ed9fc3e4498fb578b6d91.tar.bz2
xen-4fe64c6d1b6c1e81901ed9fc3e4498fb578b6d91.zip
shadow: track video RAM dirty bits
This adds a new HVM op that enables tracking dirty bits of a range of video RAM. The idea is to optimize just for the most common case (only one guest mapping, with sometimes some temporary other mappings), which permits to keep the overhead on shadow as low as possible. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Diffstat (limited to 'xen/include/asm-x86/shadow.h')
-rw-r--r--xen/include/asm-x86/shadow.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/xen/include/asm-x86/shadow.h b/xen/include/asm-x86/shadow.h
index 85e6866d63..64a6ab31ba 100644
--- a/xen/include/asm-x86/shadow.h
+++ b/xen/include/asm-x86/shadow.h
@@ -62,6 +62,12 @@ void shadow_vcpu_init(struct vcpu *v);
/* Enable an arbitrary shadow mode. Call once at domain creation. */
int shadow_enable(struct domain *d, u32 mode);
+/* Enable VRAM dirty bit tracking. */
+int shadow_track_dirty_vram(struct domain *d,
+ unsigned long first_pfn,
+ unsigned long nr,
+ XEN_GUEST_HANDLE_64(uint8) dirty_bitmap);
+
/* Handler for shadow control ops: operations from user-space to enable
* and disable ephemeral shadow modes (test mode and log-dirty mode) and
* manipulate the log-dirty bitmap. */