[libvirt] [PATCH v6 09/13] conf: Allocate/release 'uid' and 'fid' in PCI address

Andrea Bolognani abologna at redhat.com
Thu Oct 11 14:50:26 UTC 2018


On Fri, 2018-09-28 at 16:46 +0800, Yi Min Zhao wrote:
>  # conf/device_conf.h
> +virDeviceInfoPCIAddressExtensionIsPresent;
> +virDeviceInfoPCIAddressExtensionIsWanted;
>  virDeviceInfoPCIAddressIsPresent;
>  virDeviceInfoPCIAddressIsWanted;
>  virDomainDeviceAddressIsValid;
> @@ -119,6 +121,9 @@ virDomainCCWAddressSetFree;
>  virDomainPCIAddressBusIsFullyReserved;
>  virDomainPCIAddressBusSetModel;
>  virDomainPCIAddressEnsureAddr;
> +virDomainPCIAddressExtensionReleaseAddr;
> +virDomainPCIAddressExtensionReserveAddr;
> +virDomainPCIAddressExtensionReserveNextAddr;

I'm not quite quire we need to export these functions.

With the recent changes, we've gotten to the point that we're not
even passing a virZPCIDeviceAddress to them, but rather they have
the very same signature as the regular virPCIDeviceAddress...

So it should be possible to just make them static and only call
them from the virDomainPCIAddressReserveAddr() and friends, right?
Which is where I was hoping we could eventually get. Or did I
miss something?


Everything else looks good.

-- 
Andrea Bolognani / Red Hat / Virtualization




More information about the libvir-list mailing list