qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] e1000/rtl8139: forbid dealing with packets when


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] e1000/rtl8139: forbid dealing with packets when VM is paused
Date: Sat, 26 Apr 2014 12:04:48 +0100

On 26 April 2014 11:44, Amos Kong <address@hidden> wrote:
>
> I'm ok with the patch idea.
>
> On Sat, Apr 26, 2014 at 06:19:12PM +0800, zhanghailiang wrote:
>> For e1000/rtl8139, qemu can still send/receive packets when VM is paused.
>                                                                  ^^^^^^^^^
>                                                            -> isn't running
>
> There are many kinds of RunState, "is paused" doesn't equal to "isn't 
> running".
>
>> If this happened in *migration's* last PAUSE VM stage, the new dirty RAM 
>> related to the packets will be missed.
>> To avoid this, do things like virtio-net, forbid sending/receiving
>> packets when VM is suspend.
>                   ^^^^^^^^^^^  -> isn't running.

Shouldn't this be handled in the generic net code rather
than requiring every ethernet device model to include
identical code?

thanks
-- PMM



reply via email to

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