Re: [Xen-devel] [PATCH v6 11/11] vpci/msix: add MSI-X handlers

2017-10-11 Thread Jan Beulich
>>> On 10.10.17 at 17:04, wrote: > On Wed, Oct 04, 2017 at 08:34:43AM +, Jan Beulich wrote: >> >>> On 19.09.17 at 17:29, wrote: >> > --- a/xen/include/xen/vpci.h >> > +++ b/xen/include/xen/vpci.h >> > @@ -100,6 +100,40 @@ struct vpci { >> > /* 64-bit address capable? */ >> >

Re: [Xen-devel] [PATCH v6 11/11] vpci/msix: add MSI-X handlers

2017-10-10 Thread Roger Pau Monné
On Wed, Oct 04, 2017 at 08:34:43AM +, Jan Beulich wrote: > >>> On 19.09.17 at 17:29, wrote: > > +const struct vpci_bar *bars; > > +struct vpci_msix *msix; > > +const struct vpci_msix_entry *entry; > > +unsigned int offset; > > + > > +*data = ~0ul; > > + > > +msix = vpci

Re: [Xen-devel] [PATCH v6 11/11] vpci/msix: add MSI-X handlers

2017-10-04 Thread Jan Beulich
>>> On 19.09.17 at 17:29, wrote: > --- a/xen/drivers/vpci/header.c > +++ b/xen/drivers/vpci/header.c > @@ -152,6 +152,7 @@ static int vpci_check_bar_overlap(const struct pci_dev > *pdev, > static void vpci_modify_bars(const struct pci_dev *pdev, bool map) > { > struct vpci_header *header =

[Xen-devel] [PATCH v6 11/11] vpci/msix: add MSI-X handlers

2017-09-19 Thread Roger Pau Monne
Add handlers for accesses to the MSI-X message control field on the PCI configuration space, and traps for accesses to the memory region that contains the MSI-X table and PBA. This traps detect attempts from the guest to configure MSI-X interrupts and properly sets them up. Note that accesses to t