Re: [Qemu-devel] [PATCH] tap: close fd conditionally when error occured

2018-01-15 Thread Zhoujian (jay)
> -Original Message- > From: Jason Wang [mailto:jasow...@redhat.com] > Sent: Monday, January 15, 2018 3:21 PM > To: Zhoujian (jay) ; qemu-devel@nongnu.org > Cc: m...@redhat.com; imamm...@redhat.com; Huangweidong (C) > ; wangxin (U) ; Gonglei > (Arei) > Subject: Re: [PATCH] tap: close fd co

Re: [Qemu-devel] [PATCH] tap: close fd conditionally when error occured

2018-01-14 Thread Jason Wang
On 2018年01月12日 15:30, Jay Zhou wrote: If netdev_add tap,id=net0,vhost=on failed in net_init_tap_one(), the followed up device_add virtio-net-pci,netdev=net0 will fail too, prints: TUNSETOFFLOAD ioctl() failed: Bad file descriptor TUNSETOFFLOAD ioctl() failed: Bad file descriptor The rea

[Qemu-devel] [PATCH] tap: close fd conditionally when error occured

2018-01-11 Thread Jay Zhou
If netdev_add tap,id=net0,vhost=on failed in net_init_tap_one(), the followed up device_add virtio-net-pci,netdev=net0 will fail too, prints: TUNSETOFFLOAD ioctl() failed: Bad file descriptor TUNSETOFFLOAD ioctl() failed: Bad file descriptor The reason is that the fd of tap is closed when err