Re: [libvirt] [PATCH v2 07/10] nodedev: Introduce the mdev capability to a PCI parent device

2017-04-24 Thread Pavel Hrdina
On Thu, Apr 20, 2017 at 03:05:57PM +0200, Erik Skultety wrote: > The parent device needs to report the generic stuff about the supported > mediated devices types, like device API, available instances, type name, > etc. Therefore this patch introduces a new nested capability element of > type

Re: [libvirt] [PATCH v2 07/10] nodedev: Introduce the mdev capability to a PCI parent device

2017-04-20 Thread Erik Skultety
[...] > +static int > +udevPCIGetMdevCaps(struct udev_device *device, > + virNodeDevCapPCIDevPtr pcidata) > +{ > +int ret = -1; > +int direrr = -1; > +DIR *dir = NULL; > +struct dirent *entry; > +char *path = NULL; > +char *tmppath = NULL; > +

[libvirt] [PATCH v2 07/10] nodedev: Introduce the mdev capability to a PCI parent device

2017-04-20 Thread Erik Skultety
The parent device needs to report the generic stuff about the supported mediated devices types, like device API, available instances, type name, etc. Therefore this patch introduces a new nested capability element of type 'mdev' with the resulting XML of the following format: ... ...