]> xenbits.xensource.com Git - libvirt.git/commit
qemu: fix netdev alias name assignment wrt type='hostdev'
authorLaine Stump <laine@laine.org>
Fri, 1 Jun 2012 16:50:37 +0000 (12:50 -0400)
committerLaine Stump <laine@laine.org>
Fri, 1 Jun 2012 17:25:56 +0000 (13:25 -0400)
commit6734ce7bc8ec4da7900080aa17fef20c68d401ef
treed0800e21cb4398a7aeeb883af2f629e417eabffd
parentd4fb6694a4b7d5c613136e3bfc1bbf8d6b98ec74
qemu: fix netdev alias name assignment wrt type='hostdev'

This patch resolves:

   https://bugzilla.redhat.com/show_bug.cgi?id=827519

The problem is that an interface with type='hostdev' will have an
alias of the form "hostdev%d", while the function that looks through
existing netdevs to determine the name to use for a new addition will
fail if there's an existing entry that does not match the form
"net%d".

This is another of the handful of places that need an exception due to
the hybrid nature of <interface type='hostdev'> (which is not exactly
an <interface> or a <hostdev>, but is both at the same time).
src/qemu/qemu_command.c