[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 15/21] virtio-net: replace qemu_sendv_packet_asy
From: |
Yoshiaki Tamura |
Subject: |
[Qemu-devel] Re: [PATCH 15/21] virtio-net: replace qemu_sendv_packet_async() with qemu_sendv_packet_async_proxy(). |
Date: |
Sun, 28 Nov 2010 20:43:13 +0900 |
2010/11/28 Michael S. Tsirkin <address@hidden>:
> On Thu, Nov 25, 2010 at 03:06:54PM +0900, Yoshiaki Tamura wrote:
>> Replace replace qemu_sendv_packet_async() with
>> qemu_sendv_packet_async_proxy() to let event-tap capture events from
>> virtio-net.
>>
>> Signed-off-by: Yoshiaki Tamura <address@hidden>
>
> Why does every device need to know about eent tap?
> Can qemu_sendv_packet_async just do the right thing instead?
If we let net layer notify event-tap, devices don't have to know
about event-tap. Most people want to go to that direction, and I
would follow it in the next spin.
Yoshi
>
>> ---
>> hw/virtio-net.c | 4 ++--
>> 1 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/hw/virtio-net.c b/hw/virtio-net.c
>> index 1d61f19..8c76346 100644
>> --- a/hw/virtio-net.c
>> +++ b/hw/virtio-net.c
>> @@ -710,8 +710,8 @@ static int32_t virtio_net_flush_tx(VirtIONet *n,
>> VirtQueue *vq)
>> len += hdr_len;
>> }
>>
>> - ret = qemu_sendv_packet_async(&n->nic->nc, out_sg, out_num,
>> - virtio_net_tx_complete);
>> + ret = qemu_sendv_packet_async_proxy(&n->nic->nc, out_sg, out_num,
>> + virtio_net_tx_complete);
>> if (ret == 0) {
>> virtio_queue_set_notification(n->tx_vq, 0);
>> n->async_tx.elem = elem;
>> --
>> 1.7.1.2
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe kvm" in
>> the body of a message to address@hidden
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to address@hidden
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
- [Qemu-devel] [PATCH 00/21] Kemari for KVM 0.2, Yoshiaki Tamura, 2010/11/25
- [Qemu-devel] [PATCH 15/21] virtio-net: replace qemu_sendv_packet_async() with qemu_sendv_packet_async_proxy()., Yoshiaki Tamura, 2010/11/25
- [Qemu-devel] [PATCH 14/21] virtio-blk: replace bdrv_aio_multiwrite() with bdrv_aio_multiwrite_proxy()., Yoshiaki Tamura, 2010/11/25
- [Qemu-devel] [PATCH 03/21] Introduce skip_header parameter to qemu_loadvm_state()., Yoshiaki Tamura, 2010/11/25
- [Qemu-devel] [PATCH 10/21] Call init handler of event-tap at main() in vl.c., Yoshiaki Tamura, 2010/11/25
- [Qemu-devel] [PATCH 17/21] savevm: introduce qemu_savevm_trans_{begin, commit}., Yoshiaki Tamura, 2010/11/25
- [Qemu-devel] [PATCH 11/21] ioport: insert event_tap_ioport() to ioport_write()., Yoshiaki Tamura, 2010/11/25
- [Qemu-devel] [PATCH 21/21] migration: add a parser to accept FT migration incoming mode., Yoshiaki Tamura, 2010/11/25
- [Qemu-devel] [PATCH 06/21] vl: add a tmp pointer so that a handler can delete the entry to which it belongs., Yoshiaki Tamura, 2010/11/25
- [Qemu-devel] [PATCH 20/21] Introduce -k option to enable FT migration mode (Kemari)., Yoshiaki Tamura, 2010/11/25