Re: [Xen-devel] [PATCH v3 6/9] xen/vpci: trap access to the list of PCI capabilities

2017-06-26 Thread Jan Beulich
>>> Roger Pau Monne 06/26/17 1:51 PM >>> >Let me know whether do you consider having this patch to mask >MSI/MSI-X capabilities on user request for Dom0 is helpful or not. If the capability hiding was needed for anything else, I could see what you're doing here as a potentially helpful by-product

Re: [Xen-devel] [PATCH v3 6/9] xen/vpci: trap access to the list of PCI capabilities

2017-06-26 Thread Roger Pau Monne
On Tue, May 23, 2017 at 06:49:50AM -0600, Jan Beulich wrote: > >>> On 27.04.17 at 16:35, wrote: > > Add traps to each capability PCI_CAP_LIST_NEXT field in order to mask them > > on > > request. > > > > All capabilities from the device are fetched and stored in an internal list, > > that's later

Re: [Xen-devel] [PATCH v3 6/9] xen/vpci: trap access to the list of PCI capabilities

2017-05-29 Thread Jan Beulich
>>> On 27.04.17 at 16:35, wrote: > +static int vpci_index_capabilities(struct pci_dev *pdev) > +{ > +uint8_t seg = pdev->seg, bus = pdev->bus; > +uint8_t slot = PCI_SLOT(pdev->devfn), func = PCI_FUNC(pdev->devfn); > +uint8_t pos = PCI_CAPABILITY_LIST; > +uint16_t status; > +uns

Re: [Xen-devel] [PATCH v3 6/9] xen/vpci: trap access to the list of PCI capabilities

2017-05-23 Thread Jan Beulich
>>> On 27.04.17 at 16:35, wrote: > Add traps to each capability PCI_CAP_LIST_NEXT field in order to mask them on > request. > > All capabilities from the device are fetched and stored in an internal list, > that's later used in order to return the next capability to the guest. Note > that this on

[Xen-devel] [PATCH v3 6/9] xen/vpci: trap access to the list of PCI capabilities

2017-04-27 Thread Roger Pau Monne
Add traps to each capability PCI_CAP_LIST_NEXT field in order to mask them on request. All capabilities from the device are fetched and stored in an internal list, that's later used in order to return the next capability to the guest. Note that this only removes the capability from the linked list