]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: add capabilities bit for device ioh3420
authorLaine Stump <laine@laine.org>
Wed, 17 Jun 2015 17:13:28 +0000 (13:13 -0400)
committerLaine Stump <laine@laine.org>
Mon, 10 Aug 2015 01:44:11 +0000 (21:44 -0400)
This is a PCIE "root port". It connects only to a port of the
integrated pcie.0 bus of a Q35 machine (can't be hotplugged), and
provides a single PCIe port that can have PCI or PCIe devices
hotplugged into it.

This device will be used to implement the "pcie-root-port" model of
pci controller.

src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
tests/qemucapabilitiesdata/caps_1.2.2-1.caps
tests/qemucapabilitiesdata/caps_1.3.1-1.caps
tests/qemucapabilitiesdata/caps_1.4.2-1.caps
tests/qemucapabilitiesdata/caps_1.5.3-1.caps
tests/qemucapabilitiesdata/caps_1.6.0-1.caps
tests/qemucapabilitiesdata/caps_1.6.50-1.caps
tests/qemucapabilitiesdata/caps_2.1.1-1.caps
tests/qemuhelptest.c

index 8ea02174e3582c7b5a3e31afefc2468790df0756..a9b0b61b43b92e2bca1eb53b4cf9e482e9b048b5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * qemu_capabilities.c: QEMU capabilities generation
  *
- * Copyright (C) 2006-2014 Red Hat, Inc.
+ * Copyright (C) 2006-2015 Red Hat, Inc.
  * Copyright (C) 2006 Daniel P. Berrange
  *
  * This library is free software; you can redistribute it and/or
@@ -289,6 +289,7 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
               "vhost-user-multiqueue", /* 190 */
               "migration-event",
               "gpex-pcihost",
+              "ioh3420",
     );
 
 
@@ -1570,6 +1571,7 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[] = {
     { "pc-dimm", QEMU_CAPS_DEVICE_PC_DIMM },
     { "pci-serial", QEMU_CAPS_DEVICE_PCI_SERIAL },
     { "gpex-pcihost", QEMU_CAPS_OBJECT_GPEX},
+    { "ioh3420", QEMU_CAPS_DEVICE_IOH3420 },
 };
 
 static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsVirtioBlk[] = {
index a50c3cac870c43b8e4ca641068c57e2822f80357..892e9c33d4d17af86a13341e82babbcacc93a3ee 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * qemu_capabilities.h: QEMU capabilities generation
  *
- * Copyright (C) 2006-2014 Red Hat, Inc.
+ * Copyright (C) 2006-2015 Red Hat, Inc.
  * Copyright (C) 2006 Daniel P. Berrange
  *
  * This library is free software; you can redistribute it and/or
@@ -232,6 +232,7 @@ typedef enum {
     QEMU_CAPS_VHOSTUSER_MULTIQUEUE = 190, /* vhost-user with -netdev queues= */
     QEMU_CAPS_MIGRATION_EVENT    = 191, /* MIGRATION event */
     QEMU_CAPS_OBJECT_GPEX        = 192, /* have generic PCI host controller */
+    QEMU_CAPS_DEVICE_IOH3420     = 193, /* -device ioh3420 */
 
     QEMU_CAPS_LAST,                   /* this must always be the last item */
 } virQEMUCapsFlags;
index 30239df2986991ffaaa26020a37f160cf69060c3..a1fafa61a76f431743e2345c2329396a561f8c52 100644 (file)
     <flag name='vmware-svga.vgamem_mb'/>
     <flag name='qxl.vgamem_mb'/>
     <flag name='qxl-vga.vgamem_mb'/>
+    <flag name='ioh3420'/>
   </qemuCaps>
index ea3d850dd6a4fe9d17f65dab37d93be6a59c88f4..824ef02ad0ee58915502d4dd399cac17b6910f23 100644 (file)
     <flag name='qxl.vgamem_mb'/>
     <flag name='qxl-vga.vgamem_mb'/>
     <flag name='pci-serial'/>
+    <flag name='ioh3420'/>
   </qemuCaps>
index 2c19ddc644c3185a41e7ffdd4bd0161e3adbbd1f..7ef5199686811d05f47441fd4d4a2245a406e6c4 100644 (file)
     <flag name='qxl.vgamem_mb'/>
     <flag name='qxl-vga.vgamem_mb'/>
     <flag name='pci-serial'/>
+    <flag name='ioh3420'/>
   </qemuCaps>
index aadccd5e4379f72b9dd66ba7b44e993761b062bd..8c3d48e304e96a22e8ac8efd71e19a60109705d4 100644 (file)
     <flag name='qxl.vgamem_mb'/>
     <flag name='qxl-vga.vgamem_mb'/>
     <flag name='pci-serial'/>
+    <flag name='ioh3420'/>
   </qemuCaps>
index 3e81cbfe06b893178be55f319af9fc00e94bd54f..72f7625fe10c086d69477da59fa69cc4a5e031f9 100644 (file)
     <flag name='qxl.vgamem_mb'/>
     <flag name='qxl-vga.vgamem_mb'/>
     <flag name='pci-serial'/>
+    <flag name='ioh3420'/>
   </qemuCaps>
index 84c357f73557501404b12b54cdc92f650ae64b29..d81c80cb2598b8957d816a5a7abacdfc1cde19b4 100644 (file)
     <flag name='qxl.vgamem_mb'/>
     <flag name='qxl-vga.vgamem_mb'/>
     <flag name='pci-serial'/>
+    <flag name='ioh3420'/>
   </qemuCaps>
index b1ee8df1d94382f6f4433ee4f71f82c82eda573a..1a39dce90cf41526739c111622cb2eb1fad8f391 100644 (file)
     <flag name='qxl-vga.vgamem_mb'/>
     <flag name='pc-dimm'/>
     <flag name='pci-serial'/>
+    <flag name='ioh3420'/>
   </qemuCaps>
index 507831ca4788e2bb9f21f3a2ea4f3416331386ad..621164015ee26e80ffd1c37ee9b2faf5f1adb9c4 100644 (file)
@@ -753,7 +753,8 @@ mymain(void)
             QEMU_CAPS_DEVICE_USB_KBD,
             QEMU_CAPS_DEVICE_USB_STORAGE,
             QEMU_CAPS_SPLASH_TIMEOUT,
-            QEMU_CAPS_DEVICE_IVSHMEM);
+            QEMU_CAPS_DEVICE_IVSHMEM,
+            QEMU_CAPS_DEVICE_IOH3420);
     DO_TEST("qemu-1.1.0", 1001000, 0, 0,
             QEMU_CAPS_VNC_COLON,
             QEMU_CAPS_NO_REBOOT,
@@ -853,7 +854,8 @@ mymain(void)
             QEMU_CAPS_DEVICE_USB_STORAGE,
             QEMU_CAPS_OBJECT_USB_AUDIO,
             QEMU_CAPS_SPLASH_TIMEOUT,
-            QEMU_CAPS_DEVICE_IVSHMEM);
+            QEMU_CAPS_DEVICE_IVSHMEM,
+            QEMU_CAPS_DEVICE_IOH3420);
     DO_TEST_FULL("qemu-1.2.0", 1002000, 0, 0, VIR_ERR_CONFIG_UNSUPPORTED,
             QEMU_CAPS_LAST);
     DO_TEST_FULL("qemu-kvm-1.2.0", 1002000, 1, 0, VIR_ERR_CONFIG_UNSUPPORTED,