[libvirt] [PATCH 0/3] device-detaching with generated mac

Michal Privoznik mprivozn at redhat.com
Thu Feb 24 14:56:12 UTC 2011


When detaching interface via detach-device or virDomainDetachDevice() we
parse input XML and (probably) generate a random MAC. This leads then into
not finding interface and thus error. When a mac wasn't specified and domain
has exactly one interface, semantic is clear. Otherwise we require <mac> in
input XML.

Michal Privoznik (3):
  Introduce flag representing if MAC address of interface was generated
        or not.
  qemu: Check for generated MACs while detaching interface
  xen: Check for generated MACs while detaching interface

 src/conf/domain_conf.c  |    2 ++
 src/conf/domain_conf.h  |    1 +
 src/qemu/qemu_hotplug.c |   26 ++++++++++++++++++++------
 src/xen/xm_internal.c   |    3 ++-
 4 files changed, 25 insertions(+), 7 deletions(-)

-- 
1.7.4




More information about the libvir-list mailing list