KVM: Improve MTRR structure
As well as reset mmu context when set MTRR. Signed-off-by: Sheng Yang <sheng@linux.intel.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <asm/pvclock-abi.h>
|
||||
#include <asm/desc.h>
|
||||
#include <asm/mtrr.h>
|
||||
|
||||
#define KVM_MAX_VCPUS 16
|
||||
#define KVM_MEMORY_SLOTS 32
|
||||
@@ -86,6 +87,7 @@
|
||||
#define KVM_MIN_FREE_MMU_PAGES 5
|
||||
#define KVM_REFILL_PAGES 25
|
||||
#define KVM_MAX_CPUID_ENTRIES 40
|
||||
#define KVM_NR_FIXED_MTRR_REGION 88
|
||||
#define KVM_NR_VAR_MTRR 8
|
||||
|
||||
extern spinlock_t kvm_lock;
|
||||
@@ -329,7 +331,8 @@ struct kvm_vcpu_arch {
|
||||
bool nmi_injected;
|
||||
bool nmi_window_open;
|
||||
|
||||
u64 mtrr[0x100];
|
||||
struct mtrr_state_type mtrr_state;
|
||||
u32 pat;
|
||||
};
|
||||
|
||||
struct kvm_mem_alias {
|
||||
|
Reference in New Issue
Block a user