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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 30 May 2012 23:43:12 +0000 (00:43 +0100)
commit0c837de6cac54ba14e638d36606bd31f635d8de5
tree62f6857e4878e43d25ba930a8c2ce7f938b71e2e
parentb9c523c841fd2e14602d144f3259c0fefe2c0da6
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/kvm/vmx.c