]> git.proxmox.com Git - qemu.git/commit
print meaningful error message in case of --disable-vhost-net
authorMichael Tokarev <mjt@tls.msk.ru>
Thu, 9 Jun 2011 20:55:57 +0000 (00:55 +0400)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 14 Jun 2011 13:48:04 +0000 (16:48 +0300)
commit35f754620615138aaae0ef72602f84c88fd8de0f
tree9089eba764647e765fc990f6f9ad49fdf8db67d7
parentb91cb44215101da1d005804392807d5785b9ebfb
print meaningful error message in case of --disable-vhost-net

When qemu gets compiled without support of vhost-net, any attempt
to use it fails with a very clear error message:

 qemu-system-x86_64: -netdev ...,vhost=on: vhost-net requested but could not be initialized

there's absolutely no reason given _why_ it coult not be
initialized, and even strace'ing the process in question
does not reveal any errors.  So print a message telling
what's going on.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/vhost_net.c