Re: [PATCHv2] qemu-kvm/vhost: fix up irqfd support

2010-10-07 Thread Michael S. Tsirkin
> Looks fine except for the extra white space here and copied below. > Thanks, > > Alex OK, I fixed this up and queued the patch with your ack. Thanks for the review! -- MST -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org M

Re: [PATCHv2] qemu-kvm/vhost: fix up irqfd support

2010-10-07 Thread Alex Williamson
On Thu, 2010-10-07 at 11:57 +0200, Michael S. Tsirkin wrote: > On Wed, Oct 06, 2010 at 04:05:38PM -0600, Alex Williamson wrote: > > On Wed, 2010-10-06 at 23:44 +0200, Michael S. Tsirkin wrote: > > > On Wed, Oct 06, 2010 at 11:24:24AM -0600, Alex Williamson wrote: > > > > You could always keep the f

Re: [PATCHv2] qemu-kvm/vhost: fix up irqfd support

2010-10-07 Thread Michael S. Tsirkin
On Wed, Oct 06, 2010 at 04:05:38PM -0600, Alex Williamson wrote: > On Wed, 2010-10-06 at 23:44 +0200, Michael S. Tsirkin wrote: > > On Wed, Oct 06, 2010 at 11:24:24AM -0600, Alex Williamson wrote: > > > You could always keep the functions as separate wrapper callers of the > > > common function so

Re: [PATCHv2] qemu-kvm/vhost: fix up irqfd support

2010-10-06 Thread Alex Williamson
On Wed, 2010-10-06 at 23:44 +0200, Michael S. Tsirkin wrote: > On Wed, Oct 06, 2010 at 11:24:24AM -0600, Alex Williamson wrote: > > You could always keep the functions as separate wrapper callers of the > > common function so you only need to keep true = unset, false = set > > straight in one place

Re: [PATCHv2] qemu-kvm/vhost: fix up irqfd support

2010-10-06 Thread Michael S. Tsirkin
On Wed, Oct 06, 2010 at 11:24:24AM -0600, Alex Williamson wrote: > You could always keep the functions as separate wrapper callers of the > common function so you only need to keep true = unset, false = set > straight in one place. Thanks, Just to show why it does not work, I did exactly this: a

Re: [PATCHv2] qemu-kvm/vhost: fix up irqfd support

2010-10-06 Thread Michael S. Tsirkin
On Wed, Oct 06, 2010 at 11:24:24AM -0600, Alex Williamson wrote: > On Wed, 2010-10-06 at 19:02 +0200, Michael S. Tsirkin wrote: > > On Wed, Oct 06, 2010 at 10:48:44AM -0600, Alex Williamson wrote: > > > > -int msix_unset_mask_notifier(PCIDevice *dev, unsigned vector) > > > > +static int msix_unset_

Re: [PATCHv2] qemu-kvm/vhost: fix up irqfd support

2010-10-06 Thread Alex Williamson
On Wed, 2010-10-06 at 19:02 +0200, Michael S. Tsirkin wrote: > On Wed, Oct 06, 2010 at 10:48:44AM -0600, Alex Williamson wrote: > > > -int msix_unset_mask_notifier(PCIDevice *dev, unsigned vector) > > > +static int msix_unset_mask_notifier_for_vector(PCIDevice *dev, unsigned > > > vector) > > > {

Re: [PATCHv2] qemu-kvm/vhost: fix up irqfd support

2010-10-06 Thread Michael S. Tsirkin
On Wed, Oct 06, 2010 at 10:48:44AM -0600, Alex Williamson wrote: > > -int msix_unset_mask_notifier(PCIDevice *dev, unsigned vector) > > +static int msix_unset_mask_notifier_for_vector(PCIDevice *dev, unsigned > > vector) > > { > > int r = 0; > > -void *opaque; > > if (vector >= dev-

Re: [PATCHv2] qemu-kvm/vhost: fix up irqfd support

2010-10-06 Thread Alex Williamson
On Wed, 2010-10-06 at 16:56 +0200, Michael S. Tsirkin wrote: > vhost irqfd support: case where many vqs are > mapped to a single msix vector is currently broken. > Fix it up. > > Signed-off-by: Michael S. Tsirkin > --- > > This is on top of the qemu patchset, which is unchanged. > Fixes from v1:

[PATCHv2] qemu-kvm/vhost: fix up irqfd support

2010-10-06 Thread Michael S. Tsirkin
vhost irqfd support: case where many vqs are mapped to a single msix vector is currently broken. Fix it up. Signed-off-by: Michael S. Tsirkin --- This is on top of the qemu patchset, which is unchanged. Fixes from v1: correct error handling hw/msix.c | 68 +