Re: [libvirt PATCH v4 09/25] nodedev: add mdevctl devices to node device list

2021-02-22 Thread Erik Skultety
... > > > +bool changed; > > > +virNodeDeviceDefPtr olddef = > > > virNodeDeviceObjGetDef(obj); + > > > +was_defined = virNodeDeviceObjIsPersistent(obj); > > > > "defined" as a name will do just fine > > > > > +/* Active devices contain some

Re: [libvirt PATCH v4 09/25] nodedev: add mdevctl devices to node device list

2021-02-17 Thread Jonathon Jongsma
On Tue, 16 Feb 2021 13:37:41 +0100 Erik Skultety wrote: > On Wed, Feb 03, 2021 at 11:38:53AM -0600, Jonathon Jongsma wrote: > > At startup, query devices that are defined by 'mdevctl' and add > > them to the node device list. > > > > This adds a complication: we now have two potential sources

Re: [libvirt PATCH v4 09/25] nodedev: add mdevctl devices to node device list

2021-02-16 Thread Erik Skultety
On Wed, Feb 03, 2021 at 11:38:53AM -0600, Jonathon Jongsma wrote: > At startup, query devices that are defined by 'mdevctl' and add them to > the node device list. > > This adds a complication: we now have two potential sources of > information for a node device: > - udev for all devices and for

[libvirt PATCH v4 09/25] nodedev: add mdevctl devices to node device list

2021-02-03 Thread Jonathon Jongsma
At startup, query devices that are defined by 'mdevctl' and add them to the node device list. This adds a complication: we now have two potential sources of information for a node device: - udev for all devices and for activated mediated devices - mdevctl for persistent mediated devices