]> xenbits.xensource.com Git - libvirt.git/commit
macvtap: cannot support target device name
authorStefan Berger <stefanb@us.ibm.com>
Fri, 28 May 2010 17:00:58 +0000 (13:00 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Fri, 28 May 2010 17:00:58 +0000 (13:00 -0400)
commitca1b7cc8e4592de2ebd15f03eed83213115f811b
tree6f7ae75321474be1a6fe543baf849c3ed9552ec8
parent8b46a7bbdbf19775a4825d24f0ad6cf36acb58d0
macvtap: cannot support target device name

Since the macvtap device needs active tear-down and the teardown logic
is based on the interface name, it can happen that if for example 1 out
of 3 interfaces was successfully created, that during the failure path
the macvtap's target device name is used to tear down an interface that
is doesn't own (owned by another VM).

So, in this patch, the target interface name is reset so that there is
no target interface name and the interface name is always cleared after
a tear down.
src/conf/domain_conf.c
src/qemu/qemu_conf.c
src/qemu/qemu_driver.c