KVM: VMX: call vmx_load_host_state() only if msr is cached
authorGleb Natapov <gleb@redhat.com>
Thu, 27 Aug 2009 12:07:30 +0000 (15:07 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 15:11:07 +0000 (18:11 +0300)
commit542423b0dd162a9dbf91109461703bd0e545c71f
tree5d070234ecda6fbe3bc91df53852a4431da13d64
parente8a48342e9bc1c65ffe4bb3b3ac964e726dbd4c0
KVM: VMX: call vmx_load_host_state() only if msr is cached

No need to call it before each kvm_(set|get)_msr_common()

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c