]> git.ipfire.org Git - thirdparty/qemu.git/commit
tap: properly initialize vhostfds
authorJason Wang <jasowang@redhat.com>
Fri, 19 Apr 2013 07:11:15 +0000 (15:11 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 13 May 2013 16:52:06 +0000 (11:52 -0500)
commitc5675a98bb24ca874c8182980847eb46f56e6a3e
tree0d81aeb32131a687106a6b59e3cdd5268567ab5f
parente355efd9629e1a880d313911c7dee3a9943f88b4
tap: properly initialize vhostfds

Only tap->vhostfd were checked net_init_tap_one(), but tap->vhostfds were
forgot, this will lead qemu to ignore all fds passed by management through
vhostfds, and tries to create vhost_net device itself. Fix by adding this check
also.

Reportyed-by: Michal Privoznik <mprivozn@redhat.com>
Cc: Michal Privoznik <mprivozn@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 7873df408dd44eb92840b108211d5aa5db7db526)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
net/tap.c