summaryrefslogtreecommitdiff
path: root/include/asm-x86/kvm_host.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2008-05-26 20:06:35 +0300
committerAvi Kivity <avi@qumranet.com>2008-07-20 12:42:26 +0300
commit9ba075a664dff836fd6fb93f90fcc827f7683d91 (patch)
treea5d939aa61833525a09fa2f346964c16a80f7957 /include/asm-x86/kvm_host.h
parent81609e3e26508840a1b51414376f2541dd191483 (diff)
KVM: MTRR support
Add emulation for the memory type range registers, needed by VMware esx 3.5, and by pci device assignment. Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include/asm-x86/kvm_host.h')
-rw-r--r--include/asm-x86/kvm_host.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-x86/kvm_host.h b/include/asm-x86/kvm_host.h
index 075598b4e3f3..fc72bad878ed 100644
--- a/include/asm-x86/kvm_host.h
+++ b/include/asm-x86/kvm_host.h
@@ -79,6 +79,7 @@
#define KVM_MIN_FREE_MMU_PAGES 5
#define KVM_REFILL_PAGES 25
#define KVM_MAX_CPUID_ENTRIES 40
+#define KVM_NR_VAR_MTRR 8
extern spinlock_t kvm_lock;
extern struct list_head vm_list;
@@ -290,6 +291,8 @@ struct kvm_vcpu_arch {
struct page *time_page;
bool nmi_pending;
+
+ u64 mtrr[0x100];
};
struct kvm_mem_alias {