Re: [libvirt PATCH v6 30/30] nodedev: avoid delay when defining a new mdev

2021-03-30 Thread Erik Skultety
On Fri, Mar 26, 2021 at 11:48:26AM -0500, Jonathon Jongsma wrote: > When calling virNodeDeviceDefineXML() to define a new mediated device, > we call virMdevctlDefine() and then wait for the new device to appear in > the driver's device list before returning. This caused long delays due > to the

[libvirt PATCH v6 30/30] nodedev: avoid delay when defining a new mdev

2021-03-26 Thread Jonathon Jongsma
When calling virNodeDeviceDefineXML() to define a new mediated device, we call virMdevctlDefine() and then wait for the new device to appear in the driver's device list before returning. This caused long delays due to the behavior of nodeDeviceFindNewMediatedDevice(). This function checks to see