diff options
author | Sheng Yang <sheng@linux.intel.com> | 2008-10-09 04:01:55 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-12-31 09:51:44 -0500 |
commit | 468d472f3f65100d5fb88c8d45043c85b874c294 (patch) | |
tree | 6b82d3f738879827a2836aba8c54391e7a743588 /arch/x86/kvm/x86.c | |
parent | 0bed3b568b68e5835ef5da888a372b9beabf7544 (diff) |
KVM: VMX: Add PAT support for EPT
GUEST_PAT support is a new feature introduced by Intel Core i7 architecture.
With this, cpu would save/load guest and host PAT automatically, for EPT memory
type in guest depends on MSR_IA32_CR_PAT.
Also add save/restore for MSR_IA32_CR_PAT.
Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index f5b2334c6bda..0edf75339f3a 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -452,7 +452,7 @@ static u32 msrs_to_save[] = { | |||
452 | MSR_CSTAR, MSR_KERNEL_GS_BASE, MSR_SYSCALL_MASK, MSR_LSTAR, | 452 | MSR_CSTAR, MSR_KERNEL_GS_BASE, MSR_SYSCALL_MASK, MSR_LSTAR, |
453 | #endif | 453 | #endif |
454 | MSR_IA32_TIME_STAMP_COUNTER, MSR_KVM_SYSTEM_TIME, MSR_KVM_WALL_CLOCK, | 454 | MSR_IA32_TIME_STAMP_COUNTER, MSR_KVM_SYSTEM_TIME, MSR_KVM_WALL_CLOCK, |
455 | MSR_IA32_PERF_STATUS, | 455 | MSR_IA32_PERF_STATUS, MSR_IA32_CR_PAT |
456 | }; | 456 | }; |
457 | 457 | ||
458 | static unsigned num_msrs_to_save; | 458 | static unsigned num_msrs_to_save; |