qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCHv3 4/6] virtio-net: stop/start bh when appropriat


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCHv3 4/6] virtio-net: stop/start bh when appropriate
Date: Fri, 03 Dec 2010 09:40:50 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Fedora/3.0.10-1.fc12 Thunderbird/3.0.10

Am 01.12.2010 06:59, schrieb Michael S. Tsirkin:
> On Wed, Dec 01, 2010 at 01:45:09PM +0800, Jason Wang wrote:
>> Michael S. Tsirkin writes:
>>  > Avoid sending out packets, and modifying
>>  > device state, when VM is stopped.
>>  > Add assert statements to verify this does not happen.
>>  > 
>>  > Avoid scheduling bh when vhost-net is started.
>>  > 
>>  > Stop bh when driver disabled bus mastering
>>  > (we must not access memory after this).
>>  > 
>>  > Signed-off-by: Michael S. Tsirkin <address@hidden>
>>  > 
>>
>> There's no need to disable it bh we call qemu_aio_flush() after
>> vm_state_notify() in do_vm_stop().
> 
> Yes, but bh can resubmit itself, so flush is not enough.
> Note that vm stop is not the only reason to avoid
> running bh: when vhost-net is enabled we should avoid it too.
> Makes sense?

If I understand correctly, qemu_aio_flush() is supposed to also execute
the resubmitted BH, so that you really end up with an empty BH list.

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]