[libvirt PATCH] nodedev: report mdev persistence properly

Michal Prívozník mprivozn at redhat.com
Wed Jul 19 06:48:15 UTC 2023


On 7/18/23 21:55, Jonathon Jongsma wrote:
> Since commit 44a0f2f0, we now query mdevctl for transient (active) mdevs
> in order to gather attributes for the mdev. Unfortunately, this commit
> introduced a regression because nodeDeviceUpdateMediatedDevice() assumed
> that all mdevs returned from mdevctl were actually persistent mdevs but
> we were using it to update transient mdevs. Refactor the function so
> that we can use it to update both persistent and transient mdevs.
> 
> Signed-off-by: Jonathon Jongsma <jjongsma at redhat.com>
> ---
>  src/node_device/node_device_driver.c | 21 +++++++++++----------
>  1 file changed, 11 insertions(+), 10 deletions(-)

Reviewed-by: Michal Privoznik <mprivozn at redhat.com>

Michal



More information about the libvir-list mailing list