mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
tap: add vhost/vhostfd options
This adds vhost binary option to tap, to enable vhost net accelerator. Default is off for now, we'll be able to make default on long term when we know it's stable. vhostfd option can be used by management, to pass in the fd. Assigning vhostfd implies vhost=on. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
d59700553e
commit
82b0d80ef6
3 changed files with 40 additions and 1 deletions
8
net.c
8
net.c
|
|
@ -976,6 +976,14 @@ static const struct {
|
|||
.name = "vnet_hdr",
|
||||
.type = QEMU_OPT_BOOL,
|
||||
.help = "enable the IFF_VNET_HDR flag on the tap interface"
|
||||
}, {
|
||||
.name = "vhost",
|
||||
.type = QEMU_OPT_BOOL,
|
||||
.help = "enable vhost-net network accelerator",
|
||||
}, {
|
||||
.name = "vhostfd",
|
||||
.type = QEMU_OPT_STRING,
|
||||
.help = "file descriptor of an already opened vhost net device",
|
||||
},
|
||||
#endif /* _WIN32 */
|
||||
{ /* end of list */ }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue