• L
    qemu: set tap device online for type='ethernet' · 07262221
    Laine Stump 提交于
    When support for auto-creating tap devices was added to <interface
    type='ethernet'> in commit 9c17d6, the code assumed that
    virNetDevTapCreate() would honor the VIR_NETDEV_TAP__CREATE_IFUP flag
    that is supported by virNetDevTapCreateInBridgePort(). That isn't the
    case - the latter function performs several operations, and one of
    them is setting the tap device online. But virNetDevTapCreate() *only*
    creates the tap device, and relies on the caller to do everything
    else, so qemuInterfaceEthernetConnect() needs to call
    virNetDevSetOnline() after the device is successfully created.
    07262221
qemu_interface.c 22.5 KB