Re: [PATCH v2 2/3] KVM: Optimize vcpu->requests slow path slightly

2012-06-01 Thread Marcelo Tosatti
On Thu, May 31, 2012 at 12:27:09PM +0300, Avi Kivity wrote: > >> diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > >> index 953e692..c0209eb 100644 > >> --- a/arch/x86/kvm/x86.c > >> +++ b/arch/x86/kvm/x86.c > >> @@ -5232,55 +5232,58 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu) > >>

Re: [PATCH v2 2/3] KVM: Optimize vcpu->requests slow path slightly

2012-05-31 Thread Avi Kivity
On 05/30/2012 11:03 PM, Marcelo Tosatti wrote: > On Sun, May 20, 2012 at 04:49:27PM +0300, Avi Kivity wrote: >> Instead of using a atomic operation per active request, use just one >> to get all requests at once, then check them with local ops. This >> probably isn't any faster, since simultaneous

Re: [PATCH v2 2/3] KVM: Optimize vcpu->requests slow path slightly

2012-05-30 Thread Marcelo Tosatti
On Sun, May 20, 2012 at 04:49:27PM +0300, Avi Kivity wrote: > Instead of using a atomic operation per active request, use just one > to get all requests at once, then check them with local ops. This > probably isn't any faster, since simultaneous requests are rare, but > it does reduce code size.

[PATCH v2 2/3] KVM: Optimize vcpu->requests slow path slightly

2012-05-20 Thread Avi Kivity
Instead of using a atomic operation per active request, use just one to get all requests at once, then check them with local ops. This probably isn't any faster, since simultaneous requests are rare, but it does reduce code size. Signed-off-by: Avi Kivity --- arch/x86/kvm/x86.c | 33 +