[libvirt] [PATCH v3] pci: Use virPCIDeviceAddress in virPCIDevice

Laine Stump laine at laine.org
Tue Dec 15 18:53:02 UTC 2015


On 12/15/2015 01:23 PM, Andrea Bolognani wrote:
> Instead of replicating the information (domain, bus, slot, function)
> inside the virPCIDevice structure, use the already-existing
> virPCIDeviceAddress structure.
>
> For users of the module, this means that the object returned by
> virPCIDeviceGetAddress() can no longer be NULL and must no longer
> be freed by the caller.
> ---
>
> Changes in v3:
>
>    * don't check the return value of virPCIDeviceGetAddress(), it can no
>      longer be NULL
>    * don't use a variable to store the device address if it's only going
>      to be used a single time

ACK.




More information about the libvir-list mailing list