aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2009-10-24 00:50:00 -0400
committerAvi Kivity <avi@redhat.com>2009-12-03 02:32:21 -0500
commit3ce672d48400e0112fec7a3cb6bb2120493c6e11 (patch)
tree9c91c037539940ec13916118964b93566e79ab43 /arch
parent18fa000ae453767b59ab97477925895a3f0c46ea (diff)
KVM: SVM: init_vmcb(): remove redundant save->cr0 initialization
The svm_set_cr0() call will initialize save->cr0 properly even when npt is enabled, clearing the NW and CD bits as expected, so we don't need to initialize it manually for npt_enabled anymore. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/svm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index c9ef6c0e1e98..34b700f9e498 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -648,8 +648,6 @@ static void init_vmcb(struct vcpu_svm *svm)
648 control->intercept_cr_write &= ~(INTERCEPT_CR0_MASK| 648 control->intercept_cr_write &= ~(INTERCEPT_CR0_MASK|
649 INTERCEPT_CR3_MASK); 649 INTERCEPT_CR3_MASK);
650 save->g_pat = 0x0007040600070406ULL; 650 save->g_pat = 0x0007040600070406ULL;
651 /* enable caching because the QEMU Bios doesn't enable it */
652 save->cr0 = X86_CR0_ET;
653 save->cr3 = 0; 651 save->cr3 = 0;
654 save->cr4 = 0; 652 save->cr4 = 0;
655 } 653 }