Re: [Qemu-devel] [RFC PATCH] vfio/pci: Add ioeventfd support

2018-03-15 Thread Alex Williamson
On Tue, 13 Mar 2018 13:38:00 +0100 Auger Eric wrote: > On 08/02/18 02:22, Alexey Kardashevskiy wrote: > > On 08/02/18 01:12, Alex Williamson wrote: > >> On Wed, 7 Feb 2018 15:48:26 +1100 > >> Alexey Kardashevskiy wrote: > >>> On 07/02/18 15:25, Alex Williamson wrote: > On Wed, 7 Feb 2018

Re: [Qemu-devel] [RFC PATCH] vfio/pci: Add ioeventfd support

2018-03-13 Thread Auger Eric
Hi, On 08/02/18 02:22, Alexey Kardashevskiy wrote: > On 08/02/18 01:12, Alex Williamson wrote: >> On Wed, 7 Feb 2018 15:48:26 +1100 >> Alexey Kardashevskiy wrote: >> >>> On 07/02/18 15:25, Alex Williamson wrote: On Wed, 7 Feb 2018 15:09:22 +1100 Alexey Kardashevskiy wrote: > On 0

Re: [Qemu-devel] [RFC PATCH] vfio/pci: Add ioeventfd support

2018-02-10 Thread Peter Xu
On Fri, Feb 09, 2018 at 02:45:41PM -0700, Alex Williamson wrote: > On Fri, 9 Feb 2018 15:05:11 +0800 > Peter Xu wrote: > > > On Tue, Feb 06, 2018 at 05:08:14PM -0700, Alex Williamson wrote: > > > > [...] > > > > > +long vfio_pci_ioeventfd(struct vfio_pci_device *vdev, loff_t offset, > > > +

Re: [Qemu-devel] [RFC PATCH] vfio/pci: Add ioeventfd support

2018-02-09 Thread Alex Williamson
On Fri, 9 Feb 2018 15:05:11 +0800 Peter Xu wrote: > On Tue, Feb 06, 2018 at 05:08:14PM -0700, Alex Williamson wrote: > > [...] > > > +long vfio_pci_ioeventfd(struct vfio_pci_device *vdev, loff_t offset, > > + uint64_t data, int count, int fd) > > +{ > > + struct pci_dev *pde

Re: [Qemu-devel] [RFC PATCH] vfio/pci: Add ioeventfd support

2018-02-08 Thread Peter Xu
On Tue, Feb 06, 2018 at 05:08:14PM -0700, Alex Williamson wrote: [...] > +long vfio_pci_ioeventfd(struct vfio_pci_device *vdev, loff_t offset, > + uint64_t data, int count, int fd) > +{ > + struct pci_dev *pdev = vdev->pdev; > + loff_t pos = offset & VFIO_PCI_OFFSET_MA

Re: [Qemu-devel] [RFC PATCH] vfio/pci: Add ioeventfd support

2018-02-08 Thread Auger Eric
Hi Alex, On 07/02/18 17:57, Alex Williamson wrote: > On Wed, 7 Feb 2018 16:46:19 +0100 > Auger Eric wrote: > >> Hi Alex, >> >> On 07/02/18 01:08, Alex Williamson wrote: >>> The ioeventfd here is actually irqfd handling of an ioeventfd such as >>> supported in KVM. A user is able to pre-program

Re: [Qemu-devel] [RFC PATCH] vfio/pci: Add ioeventfd support

2018-02-07 Thread Alexey Kardashevskiy
On 08/02/18 01:12, Alex Williamson wrote: > On Wed, 7 Feb 2018 15:48:26 +1100 > Alexey Kardashevskiy wrote: > >> On 07/02/18 15:25, Alex Williamson wrote: >>> On Wed, 7 Feb 2018 15:09:22 +1100 >>> Alexey Kardashevskiy wrote: On 07/02/18 11:08, Alex Williamson wrote: > diff --git a/i

Re: [Qemu-devel] [RFC PATCH] vfio/pci: Add ioeventfd support

2018-02-07 Thread Alex Williamson
On Wed, 7 Feb 2018 16:46:19 +0100 Auger Eric wrote: > Hi Alex, > > On 07/02/18 01:08, Alex Williamson wrote: > > The ioeventfd here is actually irqfd handling of an ioeventfd such as > > supported in KVM. A user is able to pre-program a device write to > > occur when the eventfd triggers. This

Re: [Qemu-devel] [RFC PATCH] vfio/pci: Add ioeventfd support

2018-02-07 Thread Auger Eric
Hi Alex, On 07/02/18 01:08, Alex Williamson wrote: > The ioeventfd here is actually irqfd handling of an ioeventfd such as > supported in KVM. A user is able to pre-program a device write to > occur when the eventfd triggers. This is yet another instance of > eventfd-irqfd triggering between KVM

Re: [Qemu-devel] [RFC PATCH] vfio/pci: Add ioeventfd support

2018-02-07 Thread Alex Williamson
On Wed, 7 Feb 2018 15:48:26 +1100 Alexey Kardashevskiy wrote: > On 07/02/18 15:25, Alex Williamson wrote: > > On Wed, 7 Feb 2018 15:09:22 +1100 > > Alexey Kardashevskiy wrote: > >> On 07/02/18 11:08, Alex Williamson wrote: > >>> diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfi

Re: [Qemu-devel] [RFC PATCH] vfio/pci: Add ioeventfd support

2018-02-06 Thread Alexey Kardashevskiy
On 07/02/18 15:25, Alex Williamson wrote: > On Wed, 7 Feb 2018 15:09:22 +1100 > Alexey Kardashevskiy wrote: >> On 07/02/18 11:08, Alex Williamson wrote: >>> diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h >>> index e3301dbd27d4..07966a5f0832 100644 >>> --- a/include/uapi/linux/v

Re: [Qemu-devel] [RFC PATCH] vfio/pci: Add ioeventfd support

2018-02-06 Thread Alex Williamson
On Wed, 7 Feb 2018 15:09:22 +1100 Alexey Kardashevskiy wrote: > On 07/02/18 11:08, Alex Williamson wrote: > > diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h > > index e3301dbd27d4..07966a5f0832 100644 > > --- a/include/uapi/linux/vfio.h > > +++ b/include/uapi/linux/vfio.h > > @

Re: [Qemu-devel] [RFC PATCH] vfio/pci: Add ioeventfd support

2018-02-06 Thread Alexey Kardashevskiy
On 07/02/18 11:08, Alex Williamson wrote: > The ioeventfd here is actually irqfd handling of an ioeventfd such as > supported in KVM. A user is able to pre-program a device write to > occur when the eventfd triggers. This is yet another instance of > eventfd-irqfd triggering between KVM and vfio.

[Qemu-devel] [RFC PATCH] vfio/pci: Add ioeventfd support

2018-02-06 Thread Alex Williamson
The ioeventfd here is actually irqfd handling of an ioeventfd such as supported in KVM. A user is able to pre-program a device write to occur when the eventfd triggers. This is yet another instance of eventfd-irqfd triggering between KVM and vfio. The impetus for this is high frequency writes to