KVM: VMX: do not overwrite uptodate vcpu->arch.cr3 on KVM_SET_SREGS
authorMarcelo Tosatti <mtosatti@redhat.com>
Mon, 6 Jun 2011 17:27:47 +0000 (14:27 -0300)
committerAvi Kivity <avi@redhat.com>
Sun, 19 Jun 2011 16:23:13 +0000 (19:23 +0300)
commit5233dd51ece1615d54ab96c4cbe9ac3cc595e955
tree291485af225c96727476f120c5f00abb731aced3
parentb72336355bb4c92d4a2be3f975dbea47089c83c1
KVM: VMX: do not overwrite uptodate vcpu->arch.cr3 on KVM_SET_SREGS

Only decache guest CR3 value if vcpu->arch.cr3 is stale.
Fixes loadvm with live guest.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Tested-by: Markus Schade <markus.schade@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c