mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
qemu: add capabilities bit for device ioh3420
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.
This commit is contained in:
parent
18c104516e
commit
408b100a06
@ -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[] = {
|
||||
|
@ -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;
|
||||
|
@ -120,4 +120,5 @@
|
||||
<flag name='vmware-svga.vgamem_mb'/>
|
||||
<flag name='qxl.vgamem_mb'/>
|
||||
<flag name='qxl-vga.vgamem_mb'/>
|
||||
<flag name='ioh3420'/>
|
||||
</qemuCaps>
|
||||
|
@ -135,4 +135,5 @@
|
||||
<flag name='qxl.vgamem_mb'/>
|
||||
<flag name='qxl-vga.vgamem_mb'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='ioh3420'/>
|
||||
</qemuCaps>
|
||||
|
@ -136,4 +136,5 @@
|
||||
<flag name='qxl.vgamem_mb'/>
|
||||
<flag name='qxl-vga.vgamem_mb'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='ioh3420'/>
|
||||
</qemuCaps>
|
||||
|
@ -145,4 +145,5 @@
|
||||
<flag name='qxl.vgamem_mb'/>
|
||||
<flag name='qxl-vga.vgamem_mb'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='ioh3420'/>
|
||||
</qemuCaps>
|
||||
|
@ -151,4 +151,5 @@
|
||||
<flag name='qxl.vgamem_mb'/>
|
||||
<flag name='qxl-vga.vgamem_mb'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='ioh3420'/>
|
||||
</qemuCaps>
|
||||
|
@ -151,4 +151,5 @@
|
||||
<flag name='qxl.vgamem_mb'/>
|
||||
<flag name='qxl-vga.vgamem_mb'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='ioh3420'/>
|
||||
</qemuCaps>
|
||||
|
@ -167,4 +167,5 @@
|
||||
<flag name='qxl-vga.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='ioh3420'/>
|
||||
</qemuCaps>
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user