aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2013-09-03 15:11:45 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2013-09-24 13:12:13 -0400
commit9e3e4dbf4469ba19971fbd547f1be713604c7f5e (patch)
tree1669e0f1ffedce4701b5eb9b2e85ef45509d2339 /arch
parent98fda169290b3b28c0f2db2b8f02290c13da50ef (diff)
KVM: nVMX: Replace kvm_set_cr0 with vmx_set_cr0 in load_vmcs12_host_state
kvm_set_cr0 performs checks on the state transition that may prevent loading L1's cr0. For now we rely on the hardware to catch invalid states loaded by L1 into its VMCS. Still, consistency checks on the host state part of the VMCS on guest entry will have to be improved later on. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Reviewed-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/vmx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index a1216de9ffda..4de2b7990273 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -8199,7 +8199,7 @@ static void load_vmcs12_host_state(struct kvm_vcpu *vcpu,
8199 * fpu_active (which may have changed). 8199 * fpu_active (which may have changed).
8200 * Note that vmx_set_cr0 refers to efer set above. 8200 * Note that vmx_set_cr0 refers to efer set above.
8201 */ 8201 */
8202 kvm_set_cr0(vcpu, vmcs12->host_cr0); 8202 vmx_set_cr0(vcpu, vmcs12->host_cr0);
8203 /* 8203 /*
8204 * If we did fpu_activate()/fpu_deactivate() during L2's run, we need 8204 * If we did fpu_activate()/fpu_deactivate() during L2's run, we need
8205 * to apply the same changes to L1's vmcs. We just set cr0 correctly, 8205 * to apply the same changes to L1's vmcs. We just set cr0 correctly,