diff options
author | Avi Kivity <avi@qumranet.com> | 2008-05-26 17:06:35 (GMT) |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-07-20 09:42:26 (GMT) |
commit | 9ba075a664dff836fd6fb93f90fcc827f7683d91 (patch) | |
tree | a5d939aa61833525a09fa2f346964c16a80f7957 /include/asm-x86 | |
parent | 81609e3e26508840a1b51414376f2541dd191483 (diff) | |
download | linux-9ba075a664dff836fd6fb93f90fcc827f7683d91.tar.xz |
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')
-rw-r--r-- | include/asm-x86/kvm_host.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-x86/kvm_host.h b/include/asm-x86/kvm_host.h index 075598b..fc72bad 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 { |