mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +00:00
qemu: add capabilities bit for device x3130-upstream
This is the upstream part of a PCIe switch. It connects to a PCIe port (but not PCI) on the upstream side, and can have up to 31 xio3130-downstream controllers (but no other types of devices) connected to its downstream side. This device will be used to implement the "pcie-switch-upstream-port" model of pci controller.
This commit is contained in:
parent
16328520f6
commit
4cde758808
@ -290,6 +290,7 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
|
||||
"migration-event",
|
||||
"gpex-pcihost",
|
||||
"ioh3420",
|
||||
"x3130-upstream",
|
||||
);
|
||||
|
||||
|
||||
@ -1572,6 +1573,7 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[] = {
|
||||
{ "pci-serial", QEMU_CAPS_DEVICE_PCI_SERIAL },
|
||||
{ "gpex-pcihost", QEMU_CAPS_OBJECT_GPEX},
|
||||
{ "ioh3420", QEMU_CAPS_DEVICE_IOH3420 },
|
||||
{ "x3130-upstream", QEMU_CAPS_DEVICE_X3130_UPSTREAM },
|
||||
};
|
||||
|
||||
static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsVirtioBlk[] = {
|
||||
|
@ -233,6 +233,7 @@ typedef enum {
|
||||
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_DEVICE_X3130_UPSTREAM = 194, /* -device x3130-upstream */
|
||||
|
||||
QEMU_CAPS_LAST, /* this must always be the last item */
|
||||
} virQEMUCapsFlags;
|
||||
|
@ -121,4 +121,5 @@
|
||||
<flag name='qxl.vgamem_mb'/>
|
||||
<flag name='qxl-vga.vgamem_mb'/>
|
||||
<flag name='ioh3420'/>
|
||||
<flag name='x3130-upstream'/>
|
||||
</qemuCaps>
|
||||
|
@ -136,4 +136,5 @@
|
||||
<flag name='qxl-vga.vgamem_mb'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='ioh3420'/>
|
||||
<flag name='x3130-upstream'/>
|
||||
</qemuCaps>
|
||||
|
@ -137,4 +137,5 @@
|
||||
<flag name='qxl-vga.vgamem_mb'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='ioh3420'/>
|
||||
<flag name='x3130-upstream'/>
|
||||
</qemuCaps>
|
||||
|
@ -146,4 +146,5 @@
|
||||
<flag name='qxl-vga.vgamem_mb'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='ioh3420'/>
|
||||
<flag name='x3130-upstream'/>
|
||||
</qemuCaps>
|
||||
|
@ -152,4 +152,5 @@
|
||||
<flag name='qxl-vga.vgamem_mb'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='ioh3420'/>
|
||||
<flag name='x3130-upstream'/>
|
||||
</qemuCaps>
|
||||
|
@ -152,4 +152,5 @@
|
||||
<flag name='qxl-vga.vgamem_mb'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='ioh3420'/>
|
||||
<flag name='x3130-upstream'/>
|
||||
</qemuCaps>
|
||||
|
@ -168,4 +168,5 @@
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='ioh3420'/>
|
||||
<flag name='x3130-upstream'/>
|
||||
</qemuCaps>
|
||||
|
@ -754,7 +754,8 @@ mymain(void)
|
||||
QEMU_CAPS_DEVICE_USB_STORAGE,
|
||||
QEMU_CAPS_SPLASH_TIMEOUT,
|
||||
QEMU_CAPS_DEVICE_IVSHMEM,
|
||||
QEMU_CAPS_DEVICE_IOH3420);
|
||||
QEMU_CAPS_DEVICE_IOH3420,
|
||||
QEMU_CAPS_DEVICE_X3130_UPSTREAM);
|
||||
DO_TEST("qemu-1.1.0", 1001000, 0, 0,
|
||||
QEMU_CAPS_VNC_COLON,
|
||||
QEMU_CAPS_NO_REBOOT,
|
||||
@ -855,7 +856,8 @@ mymain(void)
|
||||
QEMU_CAPS_OBJECT_USB_AUDIO,
|
||||
QEMU_CAPS_SPLASH_TIMEOUT,
|
||||
QEMU_CAPS_DEVICE_IVSHMEM,
|
||||
QEMU_CAPS_DEVICE_IOH3420);
|
||||
QEMU_CAPS_DEVICE_IOH3420,
|
||||
QEMU_CAPS_DEVICE_X3130_UPSTREAM);
|
||||
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user