search for: virnetdevtap

Displaying 7 results from an estimated 7 matches for "virnetdevtap".

2020 Sep 22
2
consuming pre-created tap - with multiqueue
...m my limited understanding, in order to open a pre-created tap device, it must be set to persistent. Am I right (in the sense that these flags cannot co-exist) ? If so, why would libvirt be setting the VNET_HDR flag on the tap device ? [0] - https://github.com/libvirt/libvirt/blob/v6.0.0/src/util/virnetdevtap.c#L261 [1] - https://github.com/libvirt/libvirt/blob/v6.0.0/src/util/virnetdevtap.c#L209
2020 Sep 23
0
Re: consuming pre-created tap - with multiqueue
...flag. They are not mutually exclusive from either libvirt or kernel POV AFAICT. > Am I right (in the sense that these flags cannot co-exist) ? If so, > why would libvirt be setting the VNET_HDR flag on the tap device ? > > [0] - https://github.com/libvirt/libvirt/blob/v6.0.0/src/util/virnetdevtap.c#L261 > [1] - https://github.com/libvirt/libvirt/blob/v6.0.0/src/util/virnetdevtap.c#L209 Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo...
2020 Nov 04
1
consume existing tap device when libvirt / qemu run as different users
...g/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/tun.c?id=4ef8451b332662d004df269d4cdeb7d9f31419b5#n574 [1] - https://github.com/libvirt/libvirt/blob/99a1cfc43889c6d425a64013a12b234dde8cff1e/src/qemu/qemu_interface.c#L453 [2] - https://github.com/libvirt/libvirt/blob/v6.0.0/src/util/virnetdevtap.c#L274
2015 Mar 02
2
QEMU interface type=ethernet
...unch of scary permissions that could result in you having a seriously bad day (it's enough permissions to MITM all the machine's traffic, which could easily result in compromise) It looks to me like libvirt already has the ability to create tap devices and pass them into qemu (src/util/virnetdevtap.c - virNetDevTapCreateInBridgePort), however you need to actually be using a bridged network to do this. There is no way to have libvirt just create a tap device and leave the rest to user defined scripts. I don't think I have the necessary knowledge to add that feature in a generic way,...
2015 Mar 02
0
Re: QEMU interface type=ethernet
...at could > result in you having a seriously bad day (it's enough permissions to > MITM all the machine's traffic, which could easily result in compromise) > > > It looks to me like libvirt already has the ability to create tap > devices and pass them into qemu (src/util/virnetdevtap.c - > virNetDevTapCreateInBridgePort), however you need to actually be using > a bridged network to do this. There is no way to have libvirt just > create a tap device and leave the rest to user defined scripts. > > I don't think I have the necessary knowledge to add that fea...
2015 Apr 26
3
How does the libvirt deal with the vnet mac address
...that mac address between the tap0 device in the hypervisor and the ethX device in the VM will totally different . so I think that libvirt must do something about the mac address handling, could you please kindly tell me something about this ? I have found a function in libvirt-0.10.2.8\src\util\ virnetdevtap.c int virNetDevTapCreateInBridgePort(const char *brname, char **ifname, const virMacAddrPtr macaddr, const unsigned char *vmuuid, int *tapfd,...
2020 Apr 06
4
Re: plug pre-created tap devices to libvirt guests
On 4/6/20 9:54 AM, Daniel P. Berrangé wrote: > On Mon, Apr 06, 2020 at 03:47:01PM +0200, Miguel Duarte de Mora Barroso wrote: >> Hi all, >> >> I'm aware that it is possible to plug pre-created macvtap devices to >> libvirt guests - tracked in RFE [0]. >> >> My interpretation of the wording in [1] and [2] is that it is also >> possible to plug