KVM: SVM: reset mmu context in init_vmcb
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 31 Aug 2010 22:13:13 +0000 (19:13 -0300)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:51:50 +0000 (10:51 +0200)
commit678041ad9dc82eedc598f709e8a3d620139d4105
treebdc9aa2e3b1f5f7d7bae80d7ea9e1fa995b8bad3
parentc41a15dd4632499b9c1a00871e160276999767d9
KVM: SVM: reset mmu context in init_vmcb

Since commit aad827034e419fa no mmu reinitialization is performed
via init_vmcb.

Zero vcpu->arch.cr0 and pass the reset value as a parameter to
kvm_set_cr0.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/svm.c