]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: VMX: vmx_set_cr0 expects kvm->srcu locked
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 9 May 2012 13:10:45 +0000 (16:10 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 May 2012 16:32:20 +0000 (09:32 -0700)
commit8a4a30bf172a05f53714f0f54af2e044a6ede7a8
tree9cacb64917c84967fc35ec07b2ea42643ac17a8f
parent8dd2cb2a8d183d59f6d41dd71db550a306cc55eb
KVM: VMX: vmx_set_cr0 expects kvm->srcu locked

(cherry picked from commit 7a4f5ad051e02139a9f1c0f7f4b1acb88915852b)

vmx_set_cr0 is called from vcpu run context, therefore it expects
kvm->srcu to be held (for setting up the real-mode TSS).

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx.c