Skip to content

Allow host_net_add monitor command accept file descriptors

Mark McLoughlin qemu-devel 1 version In review

Get series with b4
b4 am 1246901401.12086.20.camel@blaa

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Make tcp_chr_read() use recvmsg()qemu-char.c+11 -10 replies
2/3Add SCM_RIGHTS support to unix socket character devicesmonitor.c monitor.h qemu-char.c +1 more+58 -00 replies
3/3Add support for fd=msgfd for tap and socket networkingnet.c+34 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] Allow host_net_add monitor command accept file descriptors

Hi,
You can pass file descriptors to qemu via the command line using '-net
tap,fd=' or '-net socket,tap='. However, you cannot currently do this via the monitor.

libvirt always configures tap interfaces before passing them to qemu.
One reason for this is to allow libvirtd to have privileges
to /dev/net/tun without allowing qemu those privileges. Because of this, libvirt currently does not support NIC hotplug for qemu.

The following three patches add support for passing a file descriptor
to the monitor command by allowing file descriptors to be received over monitor commands on a unix socket.

For reference:

https://fedoraproject.org/wiki/Features/KVM_NIC_Hotplug
https://fedoraproject.org/wiki/Features/VirtPrivileges

Cheers,
Mark.