From 8c8df59519d782fc31b41e7d1ec276c105e4eb4a Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 27 Mar 2008 10:52:54 +0000 Subject: 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 --- xen/include/asm-x86/hvm/vcpu.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'xen/include/asm-x86/hvm/vcpu.h') 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__ */ -- cgit v1.2.3