KVM: VMX: vmx_set_cr0 expects kvm->srcu locked
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 27 Mar 2012 22:47:26 +0000 (19:47 -0300)
committerAvi Kivity <avi@redhat.com>
Thu, 5 Apr 2012 16:04:09 +0000 (19:04 +0300)
commit7a4f5ad051e02139a9f1c0f7f4b1acb88915852b
treefe3a336cd04af38e828237a555ef39d1799fe86c
parentfea5295324ce7ce6ccfe0909cc6740a2d34aa5a3
KVM: VMX: vmx_set_cr0 expects kvm->srcu locked

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>
arch/x86/kvm/vmx.c