Re: [libvirt PATCH 2/2] hostdev: mdev: Lookup mdevs by sysfs path rather than mdev struct

2021-01-07 Thread Erik Skultety
On Thu, Jan 07, 2021 at 09:32:43PM +0100, Ján Tomko wrote: > On a Thursday in 2021, Erik Skultety wrote: > > The lookup didn't do anything apart from comparing the sysfs paths > > anyway since that's what makes each mdev unique. > > The most ridiculous usage of the old logic was in > >

Re: [libvirt PATCH 2/2] hostdev: mdev: Lookup mdevs by sysfs path rather than mdev struct

2021-01-07 Thread Ján Tomko
On a Thursday in 2021, Erik Skultety wrote: The lookup didn't do anything apart from comparing the sysfs paths anyway since that's what makes each mdev unique. The most ridiculous usage of the old logic was in virHostdevReAttachMediatedDevices where in order to drop an mdev hostdev from the list

[libvirt PATCH 2/2] hostdev: mdev: Lookup mdevs by sysfs path rather than mdev struct

2021-01-07 Thread Erik Skultety
The lookup didn't do anything apart from comparing the sysfs paths anyway since that's what makes each mdev unique. The most ridiculous usage of the old logic was in virHostdevReAttachMediatedDevices where in order to drop an mdev hostdev from the list of active devices we first had to create a