diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-06-21 19:18:27 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-06-21 19:18:27 +0100 |
commit | 3d5e6a3ff38302913fff925660e947b0256166f7 (patch) | |
tree | 3bd8ebf04ec60dd591dc5204636516e65dcff208 /xen/include/asm-x86/domain.h | |
parent | c814a49b0654193f409fa4dd013805b373302d83 (diff) | |
download | xen-3d5e6a3ff38302913fff925660e947b0256166f7.tar.gz xen-3d5e6a3ff38302913fff925660e947b0256166f7.tar.bz2 xen-3d5e6a3ff38302913fff925660e947b0256166f7.zip |
x86 hvm: implement HVMOP_pagetable_dying
This patch implements HVMOP_pagetable_dying: an hypercall for
guests to notify Xen that a pagetable is about to be destroyed so that
Xen can use it as a hint to unshadow the pagetable soon and unhook the
top-level user-mode shadow entries right away.
Gianluca Guida is the original author of this patch.
Signed-off-by: Gianluca Guida <glguida@gmail.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'xen/include/asm-x86/domain.h')
-rw-r--r-- | xen/include/asm-x86/domain.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xen/include/asm-x86/domain.h b/xen/include/asm-x86/domain.h index b452b501e0..98712abf8e 100644 --- a/xen/include/asm-x86/domain.h +++ b/xen/include/asm-x86/domain.h @@ -121,6 +121,8 @@ struct shadow_domain { /* OOS */ int oos_active; int oos_off; + + int pagetable_dying_op; }; struct shadow_vcpu { @@ -149,6 +151,8 @@ struct shadow_vcpu { mfn_t smfn[SHADOW_OOS_FIXUPS]; unsigned long off[SHADOW_OOS_FIXUPS]; } oos_fixup[SHADOW_OOS_PAGES]; + + int pagetable_dying; }; /************************************************/ |