Re: [Xen-devel] get a handle for the tap device to shut it down

2014-12-02 Thread Olaf Hering
On Fri, Nov 28, Olaf Hering wrote: > I wonder if the missing disable of the tap device is intentional, or > just an oversight, or if its just to complicated to get from a > "PCIDevice *" to the other end and call the ->cleanup function. qemu-traditional did just close all tap devices. With qemu-u

[Xen-devel] get a handle for the tap device to shut it down

2014-11-28 Thread Olaf Hering
Xen does a shutdown of the emulated PCI network device in pci_unplug_nics. But this just disables the PCI device. The tap device for a given emulated card remains active because nothing closes the file descriptor. The cmdline for qemu contains something like "-device rtl8139,id=nic0,netdev=net0,