Re: [PATCH 2/3] KVM: VMX: Short circuit STI; HLT while an interrupt is pending

2011-02-20 Thread Avi Kivity
On 02/17/2011 06:16 PM, Marcelo Tosatti wrote: On Thu, Feb 17, 2011 at 11:12:43AM +0200, Avi Kivity wrote: > >> >>index ee1cd1a..541da0e 100644 > >> >>--- a/arch/x86/kvm/vmx.c > >> >>+++ b/arch/x86/kvm/vmx.c > >> >>@@ -3437,6 +3437,15 @@ static int handle_interrupt_win

Re: [PATCH 2/3] KVM: VMX: Short circuit STI; HLT while an interrupt is pending

2011-02-17 Thread Marcelo Tosatti
On Thu, Feb 17, 2011 at 11:12:43AM +0200, Avi Kivity wrote: > >> >> index ee1cd1a..541da0e 100644 > >> >> --- a/arch/x86/kvm/vmx.c > >> >> +++ b/arch/x86/kvm/vmx.c > >> >> @@ -3437,6 +3437,15 @@ static int handle_interrupt_window(struct > >> kvm_vcpu *vcpu) > >> >>static int handl

Re: [PATCH 2/3] KVM: VMX: Short circuit STI; HLT while an interrupt is pending

2011-02-17 Thread Avi Kivity
On 02/16/2011 06:51 PM, Marcelo Tosatti wrote: On Wed, Feb 16, 2011 at 11:01:47AM +0200, Avi Kivity wrote: > On 02/15/2011 10:36 PM, Marcelo Tosatti wrote: > >On Mon, Feb 14, 2011 at 04:42:16PM +0200, Avi Kivity wrote: > >> Short-circuit an STI; HLT sequence while an interrupt is pending: >

Re: [PATCH 2/3] KVM: VMX: Short circuit STI; HLT while an interrupt is pending

2011-02-16 Thread Marcelo Tosatti
On Wed, Feb 16, 2011 at 11:01:47AM +0200, Avi Kivity wrote: > On 02/15/2011 10:36 PM, Marcelo Tosatti wrote: > >On Mon, Feb 14, 2011 at 04:42:16PM +0200, Avi Kivity wrote: > >> Short-circuit an STI; HLT sequence while an interrupt is pending: > >> instead of halting, re-entering the guest, and ex

Re: [PATCH 2/3] KVM: VMX: Short circuit STI; HLT while an interrupt is pending

2011-02-16 Thread Avi Kivity
On 02/15/2011 10:36 PM, Marcelo Tosatti wrote: On Mon, Feb 14, 2011 at 04:42:16PM +0200, Avi Kivity wrote: > Short-circuit an STI; HLT sequence while an interrupt is pending: > instead of halting, re-entering the guest, and exiting immediately > on an interrupt window exit, go directly to the

Re: [PATCH 2/3] KVM: VMX: Short circuit STI; HLT while an interrupt is pending

2011-02-15 Thread Marcelo Tosatti
On Mon, Feb 14, 2011 at 04:42:16PM +0200, Avi Kivity wrote: > Short-circuit an STI; HLT sequence while an interrupt is pending: > instead of halting, re-entering the guest, and exiting immediately > on an interrupt window exit, go directly to the last step. > > Saves a vmexit on workloads where in

[PATCH 2/3] KVM: VMX: Short circuit STI; HLT while an interrupt is pending

2011-02-14 Thread Avi Kivity
Short-circuit an STI; HLT sequence while an interrupt is pending: instead of halting, re-entering the guest, and exiting immediately on an interrupt window exit, go directly to the last step. Saves a vmexit on workloads where interrupts are received synchronously; an example is a disk backed by th