提交 48e12de5 编写于 作者: C Cole Robinson

qemu: caps: introduce QEMU_CAPS_NEC_USB_XHCI_PORTS

Reports whether we support -device nec-usb-xhci,p3=XXX value,
which has been available since qemu 1.3.0
上级 345d2ab4
......@@ -326,6 +326,7 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
"pxb-pcie", /* 220 */
"device-tray-moved-event",
"nec-usb-xhci-ports",
);
......@@ -1685,6 +1686,10 @@ static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsICH9[] = {
{ "disable_s4", QEMU_CAPS_ICH9_DISABLE_S4 },
};
static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsUSBNECXHCI[] = {
{ "p3", QEMU_CAPS_NEC_USB_XHCI_PORTS },
};
struct virQEMUCapsObjectTypeProps {
const char *type;
struct virQEMUCapsStringFlags *props;
......@@ -1748,6 +1753,8 @@ static struct virQEMUCapsObjectTypeProps virQEMUCapsObjectProps[] = {
ARRAY_CARDINALITY(virQEMUCapsObjectPropsVirtioBalloon) },
{ "virtio-balloon-device", virQEMUCapsObjectPropsVirtioBalloon,
ARRAY_CARDINALITY(virQEMUCapsObjectPropsVirtioBalloon) },
{ "nec-usb-xhci", virQEMUCapsObjectPropsUSBNECXHCI,
ARRAY_CARDINALITY(virQEMUCapsObjectPropsUSBNECXHCI) },
};
......
......@@ -357,6 +357,7 @@ typedef enum {
/* 220 */
QEMU_CAPS_DEVICE_PXB_PCIE, /* -device pxb-pcie */
QEMU_CAPS_DEVICE_TRAY_MOVED, /* DEVICE_TRAY_MOVED event */
QEMU_CAPS_NEC_USB_XHCI_PORTS, /* -device nec-usb-xhci.p3 ports setting */
QEMU_CAPS_LAST /* this must always be the last item */
} virQEMUCapsFlags;
......
......@@ -1668,6 +1668,17 @@
}
}
{
"return": [
{
"name": "msi",
"type": "uint32"
}
]
}
{
"return": [
{
......
......@@ -129,4 +129,5 @@
<flag name='qxl.vram64_size_mb'/>
<flag name='qxl-vga.vram64_size_mb'/>
<flag name='device-tray-moved-event'/>
<flag name='nec-usb-xhci-ports'/>
</qemuCaps>
......@@ -1846,6 +1846,35 @@
}
}
{
"return": [
{
"name": "msi",
"type": "on/off"
},
{
"name": "msix",
"type": "on/off"
},
{
"name": "intrs",
"type": "uint32"
},
{
"name": "slots",
"type": "uint32"
},
{
"name": "2",
"type": "uint32"
},
{
"name": "p3",
"type": "uint32"
}
]
}
{
"return": [
{
......
......@@ -130,4 +130,5 @@
<flag name='qxl.vram64_size_mb'/>
<flag name='qxl-vga.vram64_size_mb'/>
<flag name='device-tray-moved-event'/>
<flag name='nec-usb-xhci-ports'/>
</qemuCaps>
......@@ -1894,6 +1894,35 @@
}
}
{
"return": [
{
"name": "msi",
"type": "on/off"
},
{
"name": "msix",
"type": "on/off"
},
{
"name": "intrs",
"type": "uint32"
},
{
"name": "slots",
"type": "uint32"
},
{
"name": "2",
"type": "uint32"
},
{
"name": "p3",
"type": "uint32"
}
]
}
{
"return": [
{
......
......@@ -139,4 +139,5 @@
<flag name='qxl.vram64_size_mb'/>
<flag name='qxl-vga.vram64_size_mb'/>
<flag name='device-tray-moved-event'/>
<flag name='nec-usb-xhci-ports'/>
</qemuCaps>
......@@ -1965,6 +1965,35 @@
"id": "libvirt-36"
}
{
"return": [
{
"name": "msi",
"type": "on/off"
},
{
"name": "msix",
"type": "on/off"
},
{
"name": "intrs",
"type": "uint32"
},
{
"name": "slots",
"type": "uint32"
},
{
"name": "2",
"type": "uint32"
},
{
"name": "p3",
"type": "uint32"
}
]
}
{
"return": [
{
......
......@@ -145,4 +145,5 @@
<flag name='qxl.vram64_size_mb'/>
<flag name='qxl-vga.vram64_size_mb'/>
<flag name='device-tray-moved-event'/>
<flag name='nec-usb-xhci-ports'/>
</qemuCaps>
......@@ -2027,6 +2027,35 @@
"id": "libvirt-36"
}
{
"return": [
{
"name": "msi",
"type": "on/off"
},
{
"name": "msix",
"type": "on/off"
},
{
"name": "intrs",
"type": "uint32"
},
{
"name": "slots",
"type": "uint32"
},
{
"name": "2",
"type": "uint32"
},
{
"name": "p3",
"type": "uint32"
}
]
}
{
"return": [
{
......
......@@ -145,4 +145,5 @@
<flag name='qxl.vram64_size_mb'/>
<flag name='qxl-vga.vram64_size_mb'/>
<flag name='device-tray-moved-event'/>
<flag name='nec-usb-xhci-ports'/>
</qemuCaps>
......@@ -1991,6 +1991,35 @@
"id": "libvirt-36"
}
{
"return": [
{
"name": "msi",
"type": "on/off"
},
{
"name": "msix",
"type": "on/off"
},
{
"name": "intrs",
"type": "uint32"
},
{
"name": "slots",
"type": "uint32"
},
{
"name": "2",
"type": "uint32"
},
{
"name": "p3",
"type": "uint32"
}
]
}
{
"return": [
{
......
......@@ -163,4 +163,5 @@
<flag name='qxl-vga.vram64_size_mb'/>
<flag name='debug-threads'/>
<flag name='device-tray-moved-event'/>
<flag name='nec-usb-xhci-ports'/>
</qemuCaps>
......@@ -2449,6 +2449,39 @@
"id": "libvirt-36"
}
{
"return": [
{
"name": "msi",
"type": "on/off"
},
{
"name": "msix",
"type": "on/off"
},
{
"name": "superspeed-ports-first",
"type": "on/off"
},
{
"name": "intrs",
"type": "uint32"
},
{
"name": "slots",
"type": "uint32"
},
{
"name": "2",
"type": "uint32"
},
{
"name": "p3",
"type": "uint32"
}
]
}
{
"return": [
{
......
......@@ -175,4 +175,5 @@
<flag name='debug-threads'/>
<flag name='pxb'/>
<flag name='device-tray-moved-event'/>
<flag name='nec-usb-xhci-ports'/>
</qemuCaps>
......@@ -2968,6 +2968,47 @@
"id": "libvirt-36"
}
{
"return": [
{
"name": "msi",
"type": "on/off"
},
{
"name": "msix",
"type": "on/off"
},
{
"name": "superspeed-ports-first",
"type": "on/off"
},
{
"name": "force-pcie-endcap",
"type": "on/off"
},
{
"name": "streams",
"type": "on/off"
},
{
"name": "intrs",
"type": "uint32"
},
{
"name": "slots",
"type": "uint32"
},
{
"name": "2",
"type": "uint32"
},
{
"name": "p3",
"type": "uint32"
}
]
}
{
"return": [
{
......
......@@ -176,4 +176,5 @@
<flag name='debug-threads'/>
<flag name='pxb'/>
<flag name='device-tray-moved-event'/>
<flag name='nec-usb-xhci-ports'/>
</qemuCaps>
......@@ -2988,6 +2988,47 @@
"id": "libvirt-36"
}
{
"return": [
{
"name": "msi",
"type": "on/off"
},
{
"name": "msix",
"type": "on/off"
},
{
"name": "superspeed-ports-first",
"type": "on/off"
},
{
"name": "force-pcie-endcap",
"type": "on/off"
},
{
"name": "streams",
"type": "on/off"
},
{
"name": "intrs",
"type": "uint32"
},
{
"name": "slots",
"type": "uint32"
},
{
"name": "2",
"type": "uint32"
},
{
"name": "p3",
"type": "uint32"
}
]
}
{
"return": [
{
......
......@@ -181,4 +181,5 @@
<flag name='pxb'/>
<flag name='pxb-pcie'/>
<flag name='device-tray-moved-event'/>
<flag name='nec-usb-xhci-ports'/>
</qemuCaps>
......@@ -2994,6 +2994,47 @@
"id": "libvirt-36"
}
{
"return": [
{
"name": "msi",
"type": "on/off"
},
{
"name": "msix",
"type": "on/off"
},
{
"name": "superspeed-ports-first",
"type": "on/off"
},
{
"name": "force-pcie-endcap",
"type": "on/off"
},
{
"name": "streams",
"type": "on/off"
},
{
"name": "intrs",
"type": "uint32"
},
{
"name": "slots",
"type": "uint32"
},
{
"name": "2",
"type": "uint32"
},
{
"name": "p3",
"type": "uint32"
}
]
}
{
"return": [
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册