Re: [PATCH] KVM: Simplify vcpu_enter_guest() mmu reload logic slightly

2010-06-28 Thread Marcelo Tosatti
On Wed, Jun 23, 2010 at 02:26:18PM +0300, Avi Kivity wrote: > 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 > --- > arch/x8

[PATCH] KVM: Simplify vcpu_enter_guest() mmu reload logic slightly

2010-06-23 Thread Avi Kivity
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 --- arch/x86/kvm/x86.c | 12 +--- 1 files changed, 5 insertions(+), 7 deletio