Sebastian Wiedenroth <wiedi@frubar.net>
Ata E Husain Bohra <ata.husain@hotmail.com>
Ján Tomko <jtomko@redhat.com>
+ Richa Marwaha <rmarwah@linux.vnet.ibm.com>
[....send patches to get your name here....]
"virtio-s390",
"balloon-event",
+ "bridge", /* 100 */
+
);
struct qemu_feature_flags {
bool check_yajl ATTRIBUTE_UNUSED)
{
const char *p;
- const char *fsdev;
+ const char *fsdev, *netdev;
if (strstr(help, "-no-kqemu"))
qemuCapsSet(flags, QEMU_CAPS_KQEMU);
if (strstr(help, "-smbios type"))
qemuCapsSet(flags, QEMU_CAPS_SMBIOS_TYPE);
- if (strstr(help, "-netdev")) {
+ if ((netdev = strstr(help, "-netdev"))) {
/* Disable -netdev on 0.12 since although it exists,
* the corresponding netdev_add/remove monitor commands
* do not, and we need them to be able to do hotplug.
* But see below about RHEL build. */
- if (version >= 13000)
- qemuCapsSet(flags, QEMU_CAPS_NETDEV);
+ if (version >= 13000) {
+ if (strstr(netdev, "bridge"))
+ qemuCapsSet(flags, QEMU_CAPS_NETDEV_BRIDGE);
+ qemuCapsSet(flags, QEMU_CAPS_NETDEV);
+ }
}
if (strstr(help, "-sdl"))
QEMU_CAPS_NEC_USB_XHCI = 97, /* -device nec-usb-xhci */
QEMU_CAPS_VIRTIO_S390 = 98, /* -device virtio-*-s390 */
QEMU_CAPS_BALLOON_EVENT = 99, /* Async event for balloon changes */
+ QEMU_CAPS_NETDEV_BRIDGE = 100, /* bridge helper support */
QEMU_CAPS_LAST, /* this must always be the last item */
};
QEMU_CAPS_IDE_CD,
QEMU_CAPS_NO_USER_CONFIG,
QEMU_CAPS_HDA_MICRO,
- QEMU_CAPS_NEC_USB_XHCI);
+ QEMU_CAPS_NEC_USB_XHCI,
+ QEMU_CAPS_NETDEV_BRIDGE);
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}