On Fri, Mar 26, 2021 at 11:48:07AM -0500, 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 activated mediated devices > - mdevctl for persistent mediated devices > > Unfortunately, neither backend returns full information for a mediated > device. For example, if a persistent mediated device in the list (with > information provided from mdevctl) is 'started', that same device will > now be detected by udev. If we simply overwrite the existing device > definition with the new one provided by the udev backend, we will lose > extra information that was provided by mdevctl (e.g. attributes, etc). > To avoid this, make sure to copy the extra information into the new > device definition. > > Signed-off-by: Jonathon Jongsma <[email protected]> > --- Reviewed-by: Erik Skultety <[email protected]>
- [libvirt PATCH v6 27/30] nodedev: fix hang when destr... Jonathon Jongsma
- [libvirt PATCH v6 24/30] virsh: add "nodedev-sta... Jonathon Jongsma
- [libvirt PATCH v6 22/30] virsh: add nodedev-undefine ... Jonathon Jongsma
- [libvirt PATCH v6 28/30] nodedev: add docs about mdev... Jonathon Jongsma
- Re: [libvirt PATCH v6 28/30] nodedev: add docs a... Erik Skultety
- [libvirt PATCH v6 17/30] virsh: Add --inactive, --all... Jonathon Jongsma
- [libvirt PATCH v6 20/30] api: add virNodeDeviceUndefi... Jonathon Jongsma
- Re: [libvirt PATCH v6 20/30] api: add virNodeDev... Erik Skultety
- Re: [libvirt PATCH v6 20/30] api: add virNodeDev... Daniel P . Berrangé
- [libvirt PATCH v6 11/30] nodedev: add mdevctl devices... Jonathon Jongsma
- Re: [libvirt PATCH v6 11/30] nodedev: add mdevct... Erik Skultety
- [libvirt PATCH v6 29/30] nodedev: factor out function... Jonathon Jongsma
- Re: [libvirt PATCH v6 29/30] nodedev: factor out... Erik Skultety
- [libvirt PATCH v6 23/30] api: add virNodeDeviceCreate... Jonathon Jongsma
- Re: [libvirt PATCH v6 23/30] api: add virNodeDev... Daniel P . Berrangé
- [libvirt PATCH v6 26/30] nodedev: add ability to spec... Jonathon Jongsma
- Re: [libvirt PATCH v6 26/30] nodedev: add abilit... Erik Skultety
- [libvirt PATCH v6 25/30] nodedev: add <uuid> el... Jonathon Jongsma
- [libvirt PATCH v6 21/30] virsh: Factor out function t... Jonathon Jongsma
- [libvirt PATCH v6 30/30] nodedev: avoid delay when de... Jonathon Jongsma
- Re: [libvirt PATCH v6 30/30] nodedev: avoid dela... Erik Skultety
