Re: [PATCH 15/15] conf: nodedev: Update PCI mdev capabilities dynamically

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/25/2018 10:24 AM, Erik Skultety wrote:
> Just like SRIOV, a PCI device is only capable of the mediated devices
> framework when it's bound to the vendor native driver, thus if a driver
> change occurs, e.g. vendor_native->vfio, we need to refresh some of the
> device's capabilities to reflect the reality, mdev included.
> 
> Signed-off-by: Erik Skultety <eskultet@xxxxxxxxxx>
> Suggested-by: Wu Zongyong <cordius.wu@xxxxxxxxxx>
> ---
>  src/conf/node_device_conf.c        | 34 +++++++++++++++++++++++++++++++---
>  src/node_device/node_device_udev.c |  1 -
>  2 files changed, 31 insertions(+), 4 deletions(-)
> 

> diff --git a/src/node_device/node_device_udev.c b/src/node_device/node_device_udev.c
> index 1ccf1f8b4..e10660ba0 100644
> --- a/src/node_device/node_device_udev.c
> +++ b/src/node_device/node_device_udev.c
> @@ -484,7 +484,6 @@ udevProcessPCI(struct udev_device *device,
>      }
>  
>      ret = 0;
> -
>   cleanup:
>      virPCIDeviceFree(pciDev);
>      virPCIEDeviceInfoFree(pci_express);
> 

Unrelated change. ACK to the rest.

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux