提交 fb58318d 编写于 作者: A Andrea Bolognani

qemu: Introduce QEMU_CAPS_DEVICE_E1000

This capability can be used to detect whether or not the QEMU
binary supports the e1000 network device.
上级 b8d545a8
...@@ -294,6 +294,7 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST, ...@@ -294,6 +294,7 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
"xio3130-downstream", /* 195 */ "xio3130-downstream", /* 195 */
"rtl8139", "rtl8139",
"e1000",
); );
...@@ -1579,6 +1580,7 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[] = { ...@@ -1579,6 +1580,7 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[] = {
{ "x3130-upstream", QEMU_CAPS_DEVICE_X3130_UPSTREAM }, { "x3130-upstream", QEMU_CAPS_DEVICE_X3130_UPSTREAM },
{ "xio3130-downstream", QEMU_CAPS_DEVICE_XIO3130_DOWNSTREAM }, { "xio3130-downstream", QEMU_CAPS_DEVICE_XIO3130_DOWNSTREAM },
{ "rtl8139", QEMU_CAPS_DEVICE_RTL8139 }, { "rtl8139", QEMU_CAPS_DEVICE_RTL8139 },
{ "e1000", QEMU_CAPS_DEVICE_E1000 },
}; };
static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsVirtioBlk[] = { static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsVirtioBlk[] = {
......
...@@ -236,6 +236,7 @@ typedef enum { ...@@ -236,6 +236,7 @@ typedef enum {
QEMU_CAPS_DEVICE_X3130_UPSTREAM = 194, /* -device x3130-upstream */ QEMU_CAPS_DEVICE_X3130_UPSTREAM = 194, /* -device x3130-upstream */
QEMU_CAPS_DEVICE_XIO3130_DOWNSTREAM = 195, /* -device xio3130-downstream */ QEMU_CAPS_DEVICE_XIO3130_DOWNSTREAM = 195, /* -device xio3130-downstream */
QEMU_CAPS_DEVICE_RTL8139 = 196, /* -device rtl8139 */ QEMU_CAPS_DEVICE_RTL8139 = 196, /* -device rtl8139 */
QEMU_CAPS_DEVICE_E1000 = 197, /* -device e1000 */
QEMU_CAPS_LAST, /* this must always be the last item */ QEMU_CAPS_LAST, /* this must always be the last item */
} virQEMUCapsFlags; } virQEMUCapsFlags;
......
...@@ -124,4 +124,5 @@ ...@@ -124,4 +124,5 @@
<flag name='x3130-upstream'/> <flag name='x3130-upstream'/>
<flag name='xio3130-downstream'/> <flag name='xio3130-downstream'/>
<flag name='rtl8139'/> <flag name='rtl8139'/>
<flag name='e1000'/>
</qemuCaps> </qemuCaps>
...@@ -139,4 +139,5 @@ ...@@ -139,4 +139,5 @@
<flag name='x3130-upstream'/> <flag name='x3130-upstream'/>
<flag name='xio3130-downstream'/> <flag name='xio3130-downstream'/>
<flag name='rtl8139'/> <flag name='rtl8139'/>
<flag name='e1000'/>
</qemuCaps> </qemuCaps>
...@@ -140,4 +140,5 @@ ...@@ -140,4 +140,5 @@
<flag name='x3130-upstream'/> <flag name='x3130-upstream'/>
<flag name='xio3130-downstream'/> <flag name='xio3130-downstream'/>
<flag name='rtl8139'/> <flag name='rtl8139'/>
<flag name='e1000'/>
</qemuCaps> </qemuCaps>
...@@ -149,4 +149,5 @@ ...@@ -149,4 +149,5 @@
<flag name='x3130-upstream'/> <flag name='x3130-upstream'/>
<flag name='xio3130-downstream'/> <flag name='xio3130-downstream'/>
<flag name='rtl8139'/> <flag name='rtl8139'/>
<flag name='e1000'/>
</qemuCaps> </qemuCaps>
...@@ -155,4 +155,5 @@ ...@@ -155,4 +155,5 @@
<flag name='x3130-upstream'/> <flag name='x3130-upstream'/>
<flag name='xio3130-downstream'/> <flag name='xio3130-downstream'/>
<flag name='rtl8139'/> <flag name='rtl8139'/>
<flag name='e1000'/>
</qemuCaps> </qemuCaps>
...@@ -155,4 +155,5 @@ ...@@ -155,4 +155,5 @@
<flag name='x3130-upstream'/> <flag name='x3130-upstream'/>
<flag name='xio3130-downstream'/> <flag name='xio3130-downstream'/>
<flag name='rtl8139'/> <flag name='rtl8139'/>
<flag name='e1000'/>
</qemuCaps> </qemuCaps>
...@@ -171,4 +171,5 @@ ...@@ -171,4 +171,5 @@
<flag name='x3130-upstream'/> <flag name='x3130-upstream'/>
<flag name='xio3130-downstream'/> <flag name='xio3130-downstream'/>
<flag name='rtl8139'/> <flag name='rtl8139'/>
<flag name='e1000'/>
</qemuCaps> </qemuCaps>
...@@ -410,7 +410,8 @@ mymain(void) ...@@ -410,7 +410,8 @@ mymain(void)
QEMU_CAPS_DEVICE_USB_NET, QEMU_CAPS_DEVICE_USB_NET,
QEMU_CAPS_DEVICE_USB_KBD, QEMU_CAPS_DEVICE_USB_KBD,
QEMU_CAPS_DEVICE_PCI_BRIDGE, QEMU_CAPS_DEVICE_PCI_BRIDGE,
QEMU_CAPS_DEVICE_RTL8139); QEMU_CAPS_DEVICE_RTL8139,
QEMU_CAPS_DEVICE_E1000);
DO_TEST("qemu-kvm-0.12.3", 12003, 1, 0, DO_TEST("qemu-kvm-0.12.3", 12003, 1, 0,
QEMU_CAPS_VNC_COLON, QEMU_CAPS_VNC_COLON,
QEMU_CAPS_NO_REBOOT, QEMU_CAPS_NO_REBOOT,
...@@ -526,7 +527,8 @@ mymain(void) ...@@ -526,7 +527,8 @@ mymain(void)
QEMU_CAPS_DEVICE_USB_STORAGE, QEMU_CAPS_DEVICE_USB_STORAGE,
QEMU_CAPS_HOST_PCI_MULTIDOMAIN, QEMU_CAPS_HOST_PCI_MULTIDOMAIN,
QEMU_CAPS_DEVICE_IVSHMEM, QEMU_CAPS_DEVICE_IVSHMEM,
QEMU_CAPS_DEVICE_RTL8139); QEMU_CAPS_DEVICE_RTL8139,
QEMU_CAPS_DEVICE_E1000);
DO_TEST("qemu-kvm-0.12.1.2-rhel61", 12001, 1, 0, DO_TEST("qemu-kvm-0.12.1.2-rhel61", 12001, 1, 0,
QEMU_CAPS_VNC_COLON, QEMU_CAPS_VNC_COLON,
QEMU_CAPS_NO_REBOOT, QEMU_CAPS_NO_REBOOT,
...@@ -594,7 +596,8 @@ mymain(void) ...@@ -594,7 +596,8 @@ mymain(void)
QEMU_CAPS_DEVICE_USB_NET, QEMU_CAPS_DEVICE_USB_NET,
QEMU_CAPS_DEVICE_USB_KBD, QEMU_CAPS_DEVICE_USB_KBD,
QEMU_CAPS_DEVICE_PCI_BRIDGE, QEMU_CAPS_DEVICE_PCI_BRIDGE,
QEMU_CAPS_DEVICE_RTL8139); QEMU_CAPS_DEVICE_RTL8139,
QEMU_CAPS_DEVICE_E1000);
DO_TEST("qemu-kvm-0.12.1.2-rhel62-beta", 12001, 1, 0, DO_TEST("qemu-kvm-0.12.1.2-rhel62-beta", 12001, 1, 0,
QEMU_CAPS_VNC_COLON, QEMU_CAPS_VNC_COLON,
QEMU_CAPS_NO_REBOOT, QEMU_CAPS_NO_REBOOT,
...@@ -670,7 +673,8 @@ mymain(void) ...@@ -670,7 +673,8 @@ mymain(void)
QEMU_CAPS_DEVICE_PCI_BRIDGE, QEMU_CAPS_DEVICE_PCI_BRIDGE,
QEMU_CAPS_DEVICE_USB_KBD, QEMU_CAPS_DEVICE_USB_KBD,
QEMU_CAPS_DEVICE_USB_STORAGE, QEMU_CAPS_DEVICE_USB_STORAGE,
QEMU_CAPS_DEVICE_RTL8139); QEMU_CAPS_DEVICE_RTL8139,
QEMU_CAPS_DEVICE_E1000);
DO_TEST("qemu-1.0", 1000000, 0, 0, DO_TEST("qemu-1.0", 1000000, 0, 0,
QEMU_CAPS_VNC_COLON, QEMU_CAPS_VNC_COLON,
QEMU_CAPS_NO_REBOOT, QEMU_CAPS_NO_REBOOT,
...@@ -761,7 +765,8 @@ mymain(void) ...@@ -761,7 +765,8 @@ mymain(void)
QEMU_CAPS_DEVICE_IOH3420, QEMU_CAPS_DEVICE_IOH3420,
QEMU_CAPS_DEVICE_X3130_UPSTREAM, QEMU_CAPS_DEVICE_X3130_UPSTREAM,
QEMU_CAPS_DEVICE_XIO3130_DOWNSTREAM, QEMU_CAPS_DEVICE_XIO3130_DOWNSTREAM,
QEMU_CAPS_DEVICE_RTL8139); QEMU_CAPS_DEVICE_RTL8139,
QEMU_CAPS_DEVICE_E1000);
DO_TEST("qemu-1.1.0", 1001000, 0, 0, DO_TEST("qemu-1.1.0", 1001000, 0, 0,
QEMU_CAPS_VNC_COLON, QEMU_CAPS_VNC_COLON,
QEMU_CAPS_NO_REBOOT, QEMU_CAPS_NO_REBOOT,
...@@ -865,7 +870,8 @@ mymain(void) ...@@ -865,7 +870,8 @@ mymain(void)
QEMU_CAPS_DEVICE_IOH3420, QEMU_CAPS_DEVICE_IOH3420,
QEMU_CAPS_DEVICE_X3130_UPSTREAM, QEMU_CAPS_DEVICE_X3130_UPSTREAM,
QEMU_CAPS_DEVICE_XIO3130_DOWNSTREAM, QEMU_CAPS_DEVICE_XIO3130_DOWNSTREAM,
QEMU_CAPS_DEVICE_RTL8139); QEMU_CAPS_DEVICE_RTL8139,
QEMU_CAPS_DEVICE_E1000);
DO_TEST_FULL("qemu-1.2.0", 1002000, 0, 0, VIR_ERR_CONFIG_UNSUPPORTED, DO_TEST_FULL("qemu-1.2.0", 1002000, 0, 0, VIR_ERR_CONFIG_UNSUPPORTED,
QEMU_CAPS_LAST); QEMU_CAPS_LAST);
DO_TEST_FULL("qemu-kvm-1.2.0", 1002000, 1, 0, VIR_ERR_CONFIG_UNSUPPORTED, DO_TEST_FULL("qemu-kvm-1.2.0", 1002000, 1, 0, VIR_ERR_CONFIG_UNSUPPORTED,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册