KVM: Simplify vcpu_enter_guest() mmu reload logic slightly
authorAvi Kivity <avi@redhat.com>
Wed, 23 Jun 2010 11:26:18 +0000 (14:26 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:47:19 +0000 (10:47 +0300)
commit3e0075094734de122e4cb09f930fa853a3c59f09
tree85ba16913603edba8913f31825dff9f13ea0cb4b
parent529df65e394e30a78f2633b575fd81fa5b973e30
KVM: Simplify vcpu_enter_guest() mmu reload logic slightly

No need to reload the mmu in between two different vcpu->requests checks.

kvm_mmu_reload() may trigger KVM_REQ_TRIPLE_FAULT, but that will be caught
during atomic guest entry later.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/x86.c