Re: [PATCH] Reordering how tap is initialized

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Stephane Bakhos wrote:
 This is my first patch, so I apoligize for breaking any convention.

 This patch modifies the order used in net.c for tap initialization.
 It runs the script before the device is opened.

This will break existing scripts that do not rely on explicitly setting ifname= and instead rely on tap_open() to allocate a tap device. In fact, this is one of the most common usages.

What about adding create and destroy scripts that are executed before tap_open / tap_close?

It would achieve my goals of having 2 taps per vm and knowing where the tap have to connect to and it wouldn't break any existing functionality.

The 2 problems that I have with the current auto allocation is that I cannot have a certain way of connecting the right tap to the right bridge. The other problem is that it requires qemu to start as root, which I'd rather not do.

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux