aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/hvm/vcpu.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-03-27 10:52:54 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-03-27 10:52:54 +0000
commit8c8df59519d782fc31b41e7d1ec276c105e4eb4a (patch)
treeea91fd4236aa91a1c1f1d74ebf6a76c8ebf567d9 /xen/include/asm-x86/hvm/vcpu.h
parent54e034136e4c4655f728edb332fb35195f1a3f13 (diff)
downloadxen-8c8df59519d782fc31b41e7d1ec276c105e4eb4a.tar.gz
xen-8c8df59519d782fc31b41e7d1ec276c105e4eb4a.tar.bz2
xen-8c8df59519d782fc31b41e7d1ec276c105e4eb4a.zip
x86_emulate: On HVM MMIO emulation, cache the gva->pfn mapping for the
MMIO page. Speeds up Windows installation by about 20 percent. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/include/asm-x86/hvm/vcpu.h')
-rw-r--r--xen/include/asm-x86/hvm/vcpu.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h
index 0c76551575..d3281d20dc 100644
--- a/xen/include/asm-x86/hvm/vcpu.h
+++ b/xen/include/asm-x86/hvm/vcpu.h
@@ -80,6 +80,15 @@ struct hvm_vcpu {
/* I/O request in flight to device model. */
enum hvm_io_state io_state;
unsigned long io_data;
+
+ /*
+ * HVM emulation:
+ * Virtual address @mmio_gva maps to MMIO physical frame @mmio_gpfn.
+ * The latter is known to be an MMIO frame (not RAM).
+ * This translation is only valid if @mmio_gva is non-zero.
+ */
+ unsigned long mmio_gva;
+ unsigned long mmio_gpfn;
};
#endif /* __ASM_X86_HVM_VCPU_H__ */