Re: [libvirt] [RFC PATCH 06/11] nodedev: Introduce the mdev capability to the nodedev driver structure

2017-04-10 Thread Pavel Hrdina
On Mon, Apr 10, 2017 at 03:35:10PM +0200, Erik Skultety wrote: > > > +void virNodeDevCapMdevFree(virNodeDevCapMdevPtr mdev) > > > +{ > > > +if (!mdev) > > > +return; > > > + > > > +VIR_FREE(mdev->type); > > > +VIR_FREE(mdev->name); > > > +VIR_FREE(mdev->description); > > > +

Re: [libvirt] [RFC PATCH 06/11] nodedev: Introduce the mdev capability to the nodedev driver structure

2017-04-10 Thread Erik Skultety
> > +void virNodeDevCapMdevFree(virNodeDevCapMdevPtr mdev) > > +{ > > +if (!mdev) > > +return; > > + > > +VIR_FREE(mdev->type); > > +VIR_FREE(mdev->name); > > +VIR_FREE(mdev->description); > > +VIR_FREE(mdev->device_api); > > +VIR_FREE(mdev); > > +} > > + [...] > >

Re: [libvirt] [RFC PATCH 06/11] nodedev: Introduce the mdev capability to the nodedev driver structure

2017-04-04 Thread Pavel Hrdina
On Wed, Mar 29, 2017 at 02:51:16PM +0200, Erik Skultety wrote: > Besides updating the capability enum, this patch introduces > 'virNodeDevCapMdev' structure which will store everything libvirt can > gather from sysfs about a mediated device. Since we need to report the > info for both the mediated

[libvirt] [RFC PATCH 06/11] nodedev: Introduce the mdev capability to the nodedev driver structure

2017-03-29 Thread Erik Skultety
Besides updating the capability enum, this patch introduces 'virNodeDevCapMdev' structure which will store everything libvirt can gather from sysfs about a mediated device. Since we need to report the info for both the mediated child device it's parent mdev capabilities (merely the mdev types' attr