summaryrefslogtreecommitdiffstats
path: root/hw/s390x/s390-pci-bus.h
diff options
context:
space:
mode:
authorYi Min Zhao2016-05-11 09:22:42 +0200
committerCornelia Huck2016-07-11 09:48:05 +0200
commitbf328399da57450feaeaa24c2539a351e41713db (patch)
treec51d35188fd9dacbda2d1a7bccf1f65a50ba251c /hw/s390x/s390-pci-bus.h
parents390x/pci: introduce S390PCIBusDevice qdev (diff)
downloadqemu-bf328399da57450feaeaa24c2539a351e41713db.tar.gz
qemu-bf328399da57450feaeaa24c2539a351e41713db.tar.xz
qemu-bf328399da57450feaeaa24c2539a351e41713db.zip
s390x/pci: enable uid-checking
The uid-checking facility guarantees uniqueness of the uid within the vm and exposes the real uid to the guest when listing pci devices. Let's always enable it and present it to the guest in the response to the list pci clp command. Signed-off-by: Yi Min Zhao <zyimin@linux.vnet.ibm.com> Reviewed-by: Pierre Morel <pmorel@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'hw/s390x/s390-pci-bus.h')
-rw-r--r--hw/s390x/s390-pci-bus.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/s390x/s390-pci-bus.h b/hw/s390x/s390-pci-bus.h
index 658bda5f3c..2d9150c95c 100644
--- a/hw/s390x/s390-pci-bus.h
+++ b/hw/s390x/s390-pci-bus.h
@@ -33,6 +33,7 @@
#define ZPCI_MAX_FID 0xffffffff
#define ZPCI_MAX_UID 0xffff
#define UID_UNDEFINED 0
+#define UID_CHECKING_ENABLED 0x01
#define S390_PCI_HOST_BRIDGE(obj) \
OBJECT_CHECK(S390pciState, (obj), TYPE_S390_PCI_HOST_BRIDGE)