[libvirt] [PATCH 01/13] conf: Add definitions for 'uid' and 'fid' PCI address attributes

Ján Tomko jtomko at redhat.com
Sat Jun 2 14:12:46 UTC 2018


On Thu, May 24, 2018 at 02:24:26PM +0200, Xiao Feng Ren wrote:
>From: Yi Min Zhao <zyimin at linux.ibm.com>
>
>Add zPCI definitions in preparation of extending the PCI address
>with parameters uid (user-defined identifier) and fid (PCI function
>identifier).
>
>Signed-off-by: Yi Min Zhao <zyimin at linux.ibm.com>
>Reviewed-by: Boris Fiuczynski <fiuczy at linux.vnet.ibm.com>
>Reviewed-by: Stefan Zimmermann <stzi at linux.ibm.com>
>Reviewed-by: Bjoern Walk <bwalk at linux.vnet.ibm.com>
>---
> src/util/virpci.h | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
>diff --git a/src/util/virpci.h b/src/util/virpci.h
>index 794b7e59db..250e9278ba 100644
>--- a/src/util/virpci.h
>+++ b/src/util/virpci.h
>@@ -36,12 +36,22 @@ typedef virPCIDeviceAddress *virPCIDeviceAddressPtr;
> typedef struct _virPCIDeviceList virPCIDeviceList;
> typedef virPCIDeviceList *virPCIDeviceListPtr;
>
>+typedef struct _virZPCIDeviceAddress virZPCIDeviceAddress;
>+typedef virZPCIDeviceAddress *virZPCIDeviceAddressPtr;
>+struct _virZPCIDeviceAddress {
>+    unsigned int zpcifid;
>+    unsigned int zpciuid;

zpci_fid and zpci_uid, please

>+    bool fid_assigned;
>+    bool uid_assigned;
>+};
>+

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180602/6f6c15ed/attachment-0001.sig>


More information about the libvir-list mailing list