Re: [Qemu-devel] [PATCH] vfio-pci: Make host MSI-X enable track guest

2013-01-06 Thread Alex Williamson
On Sun, 2013-01-06 at 10:50 +0200, Michael S. Tsirkin wrote: > On Fri, Dec 21, 2012 at 08:38:07AM -0700, Alex Williamson wrote: > > On Fri, 2012-12-21 at 14:21 +0200, Michael S. Tsirkin wrote: > > > On Thu, Dec 20, 2012 at 03:12:46PM -0700, Alex Williamson wrote: > > > > On Thu, 2012-12-20 at 18:36

Re: [Qemu-devel] [PATCH] vfio-pci: Make host MSI-X enable track guest

2013-01-06 Thread Michael S. Tsirkin
On Fri, Dec 21, 2012 at 08:38:07AM -0700, Alex Williamson wrote: > On Fri, 2012-12-21 at 14:21 +0200, Michael S. Tsirkin wrote: > > On Thu, Dec 20, 2012 at 03:12:46PM -0700, Alex Williamson wrote: > > > On Thu, 2012-12-20 at 18:36 +0200, Michael S. Tsirkin wrote: > > > > On Thu, Dec 20, 2012 at 09:

Re: [Qemu-devel] [PATCH] vfio-pci: Make host MSI-X enable track guest

2012-12-21 Thread Alex Williamson
On Fri, 2012-12-21 at 14:21 +0200, Michael S. Tsirkin wrote: > On Thu, Dec 20, 2012 at 03:12:46PM -0700, Alex Williamson wrote: > > On Thu, 2012-12-20 at 18:36 +0200, Michael S. Tsirkin wrote: > > > On Thu, Dec 20, 2012 at 09:06:41AM -0700, Alex Williamson wrote: > > > > Guests typically enable MSI

Re: [Qemu-devel] [PATCH] vfio-pci: Make host MSI-X enable track guest

2012-12-21 Thread Michael S. Tsirkin
On Thu, Dec 20, 2012 at 03:12:46PM -0700, Alex Williamson wrote: > On Thu, 2012-12-20 at 18:36 +0200, Michael S. Tsirkin wrote: > > On Thu, Dec 20, 2012 at 09:06:41AM -0700, Alex Williamson wrote: > > > Guests typically enable MSI-X with all of the vectors in the MSI-X > > > vector table masked. O

Re: [Qemu-devel] [PATCH] vfio-pci: Make host MSI-X enable track guest

2012-12-20 Thread Alex Williamson
On Thu, 2012-12-20 at 18:36 +0200, Michael S. Tsirkin wrote: > On Thu, Dec 20, 2012 at 09:06:41AM -0700, Alex Williamson wrote: > > Guests typically enable MSI-X with all of the vectors in the MSI-X > > vector table masked. Only when the vector is enabled does the vector > > get unmasked, resultin

Re: [Qemu-devel] [PATCH] vfio-pci: Make host MSI-X enable track guest

2012-12-20 Thread Michael S. Tsirkin
On Thu, Dec 20, 2012 at 09:06:41AM -0700, Alex Williamson wrote: > Guests typically enable MSI-X with all of the vectors in the MSI-X > vector table masked. Only when the vector is enabled does the vector > get unmasked, resulting in a vector_use callback. These two points, > enable and unmask, c

[Qemu-devel] [PATCH] vfio-pci: Make host MSI-X enable track guest

2012-12-20 Thread Alex Williamson
Guests typically enable MSI-X with all of the vectors in the MSI-X vector table masked. Only when the vector is enabled does the vector get unmasked, resulting in a vector_use callback. These two points, enable and unmask, correspond to pci_enable_msix() and request_irq() for Linux guests. Some