]> xenbits.xensource.com Git - libvirt.git/commit
qemu_hotplug: Support interface type of vhost-user hotplug
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 15 Aug 2016 16:01:55 +0000 (18:01 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 14 Oct 2016 03:45:01 +0000 (11:45 +0800)
commitff89d5cbcf266e780b4ff93960969b3a6c2e9a01
treebb0678c207b8fddc183169614f285e44abb86060
parente1844d85cbdcb3ed8199ae8ae5274ffcc4968aa5
qemu_hotplug: Support interface type of vhost-user hotplug

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

There are couple of things that needs to be done in order to
allow vhost-user hotplug. Firstly, vhost-user requires a chardev
which is connected to vhost-user bridge and through which qemu
communicates with the bridge (no acutal guest traffic is sent
through there, just some metadata). In order to generate proper
chardev alias, we must assign device alias way sooner.

Then, because we are plugging the chardev first, we need to do
the proper undo if something fails - that is remove netdev too.
We don't want anything to be left over in case attach fails at
some point.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_hotplug.c