aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/hvm/vcpu.h
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-10-22 14:19:22 +0100
committerKeir Fraser <keir@xensource.com>2007-10-22 14:19:22 +0100
commitfedeb68b583b488631f4e5b41ca81688a0b9d30e (patch)
tree3e1f65da7357014f214dd0befedcae0d1cbdfc17 /xen/include/asm-x86/hvm/vcpu.h
parenta2308fa704a40f23916a176d9e06bbc0e3469caf (diff)
downloadxen-fedeb68b583b488631f4e5b41ca81688a0b9d30e.tar.gz
xen-fedeb68b583b488631f4e5b41ca81688a0b9d30e.tar.bz2
xen-fedeb68b583b488631f4e5b41ca81688a0b9d30e.zip
hvm/x86: MTRR/PAT virtualisation.
Signed-off-by: Disheng Su <disheng.su@intel.com>
Diffstat (limited to 'xen/include/asm-x86/hvm/vcpu.h')
-rw-r--r--xen/include/asm-x86/hvm/vcpu.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h
index e2738557e4..5d653f0ff9 100644
--- a/xen/include/asm-x86/hvm/vcpu.h
+++ b/xen/include/asm-x86/hvm/vcpu.h
@@ -24,6 +24,7 @@
#include <asm/hvm/vlapic.h>
#include <asm/hvm/vmx/vmcs.h>
#include <asm/hvm/svm/vmcb.h>
+#include <asm/mtrr.h>
#define HVM_VCPU_INIT_SIPI_SIPI_STATE_NORM 0
#define HVM_VCPU_INIT_SIPI_SIPI_STATE_WAIT_SIPI 1
@@ -62,6 +63,12 @@ struct hvm_vcpu {
struct arch_vmx_struct vmx;
struct arch_svm_struct svm;
} u;
+
+ struct mtrr_state mtrr;
+ u64 pat_cr;
+
+ /* Which cache mode is this VCPU in (CR0:CD/NW)? */
+ u8 cache_mode;
};
#define ARCH_HVM_IO_WAIT 1 /* Waiting for I/O completion */