Re: [PATCH 6/6] kvm: qemu: virtio-net: drop mutex during tx tapfd write

Avi Kivity
2008-11-04T11:44:02Z

Mark McLoughlin wrote:
> This allows the guest vcpu thread to exit while the I/O thread is
> churning away.
>
>
> + kvm_sleep_begin();
>

What if the nic is hot-unplugged here?

> len += qemu_sendv_packet(n->vc, out_sg, out_num);
>

n is freed, no?

> + kvm_sleep_end();
>
>

--
error compiling committee.c: too many arguments to function