aboutsummaryrefslogtreecommitdiff
path: root/qapi
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2018-02-06 11:08:26 -0700
committerAlex Williamson <alex.williamson@redhat.com>2018-02-06 11:08:26 -0700
commitc3bbbdbf4b0fcb116ed9b6bae35971e354ab7e42 (patch)
treeb94b19716fe50699f96526a1b1f154b65d300eee /qapi
parent04f336b05ff54f53234b391e444226d8c2481fb7 (diff)
downloadqemu-c3bbbdbf4b0fcb116ed9b6bae35971e354ab7e42.zip
qemu-c3bbbdbf4b0fcb116ed9b6bae35971e354ab7e42.tar.gz
qemu-c3bbbdbf4b0fcb116ed9b6bae35971e354ab7e42.tar.bz2
qapi: Create DEFINE_PROP_OFF_AUTO_PCIBAR
Add an option which allows the user to specify a PCI BAR number, including an 'off' and 'auto' selection. Cc: Markus Armbruster <armbru@redhat.com> Cc: Eric Blake <eblake@redhat.com> Tested-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: Eric Auger <eric.auger@redhat.com> Tested-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r--qapi/common.json26
1 files changed, 26 insertions, 0 deletions
diff --git a/qapi/common.json b/qapi/common.json
index 6eb0182..d9b14dd 100644
--- a/qapi/common.json
+++ b/qapi/common.json
@@ -100,3 +100,29 @@
{ 'alternate': 'StrOrNull',
'data': { 's': 'str',
'n': 'null' } }
+
+##
+# @OffAutoPCIBAR:
+#
+# An enumeration of options for specifying a PCI BAR
+#
+# @off: The specified feature is disabled
+#
+# @auto: The PCI BAR for the feature is automatically selected
+#
+# @bar0: PCI BAR0 is used for the feature
+#
+# @bar1: PCI BAR1 is used for the feature
+#
+# @bar2: PCI BAR2 is used for the feature
+#
+# @bar3: PCI BAR3 is used for the feature
+#
+# @bar4: PCI BAR4 is used for the feature
+#
+# @bar5: PCI BAR5 is used for the feature
+#
+# Since: 2.12
+##
+{ 'enum': 'OffAutoPCIBAR',
+ 'data': [ 'off', 'auto', 'bar0', 'bar1', 'bar2', 'bar3', 'bar4', 'bar5' ] }