[libvirt] [PATCH v3 06/30] virHostdevPreparePCIDevices: Separate out function body

Cole Robinson crobinso at redhat.com
Mon Dec 9 22:44:03 UTC 2019


On 12/2/19 9:26 AM, Michal Privoznik wrote:
> In near future we will have a list of PCI devices we want to
> detach (held in virPCIDeviceListPtr) but we don't have
> virDomainHostdevDefPtr. That's okay because
> virHostdevPreparePCIDevices() works with virPCIDeviceListPtr
> mostly anyway. And in very few places where it needs
> virDomainHostdevDefPtr are not interesting for our case.
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ACKed-by: Peter Krempa <pkrempa at redhat.com>
> ---
>  src/util/virhostdev.c | 48 +++++++++++++++++++++++++++++--------------
>  1 file changed, 33 insertions(+), 15 deletions(-)

Reviewed-by: Cole Robinson <crobinso at redhat.com>

- Cole




More information about the libvir-list mailing list