All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: Richard Davies <richard.davies@elastichosts.com>,
	Juan Quintela <quintela@redhat.com>,
	qemu-devel@nongnu.org, Yan Vugenfirer <yan@daynix.com>,
	Chris Webb <chris.webb@elastichosts.com>,
	Dmitry Fleytman <dmitry@daynix.com>
Subject: Re: [Qemu-devel] [PATCH 2/2] Fix a race condition in E1000 device live migration. One of data-transfer related flags not in migrated fields list.
Date: Tue, 16 Oct 2012 11:43:47 +0200	[thread overview]
Message-ID: <507D2C53.5040009@redhat.com> (raw)
In-Reply-To: <20121016083255.GF23066@stefanha-thinkpad.redhat.com>

Am 16.10.2012 10:32, schrieb Stefan Hajnoczi:
> On Mon, Oct 15, 2012 at 06:48:53PM +0200, Dmitry Fleytman wrote:
> 
> The commit message is very long but the commit description is empty.
> Please keep the message short and add the rest into the description.
> 
>> Signed-off-by: Dmitry Fleytman <dmitry@daynix.com>
>> ---
>>  hw/e1000.c | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/hw/e1000.c b/hw/e1000.c
>> index 1e66ecf..efbe0c9 100644
>> --- a/hw/e1000.c
>> +++ b/hw/e1000.c
>> @@ -92,7 +92,7 @@ typedef struct E1000State_st {
>>  
>>      uint32_t rxbuf_size;
>>      uint32_t rxbuf_min_shift;
>> -    int check_rxov;
>> +    uint32_t check_rxov;
>>      uint32_t rx_init_done;
>>      struct e1000_tx {
>>          unsigned char header[256];
>> @@ -1120,6 +1120,7 @@ static const VMStateDescription vmstate_e1000 = {
>>          VMSTATE_UNUSED(4), /* Was mmio_base.  */
>>          VMSTATE_UINT32(rxbuf_size, E1000State),
>>          VMSTATE_UINT32(rxbuf_min_shift, E1000State),
>> +        VMSTATE_UINT32(check_rxov, E1000State),
> 
> This breaks old -> new migration.  Please see docs/migration.txt on
> VMSTATE and versions.  It might also be useful to use git-blame(1) on
> some existing devices to see how people have modified the VMSTATE
> without breaking migration (this is something I don't know much about).

I think you'll want to use subsections anyway because they also fix the
new -> old case as good as they can: If the common case works correctly,
you can use a subsection to send the new state only in the special case.

Kevin

  reply	other threads:[~2012-10-16  9:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-15 16:48 [Qemu-devel] [PATCH 0/2] A few race conditions in E1000 device fixed Dmitry Fleytman
2012-10-15 16:48 ` [Qemu-devel] [PATCH 1/2] Fix a race condition in E1000 device implementation: Dmitry Fleytman
2012-10-15 16:48 ` [Qemu-devel] [PATCH 2/2] Fix a race condition in E1000 device live migration. One of data-transfer related flags not in migrated fields list Dmitry Fleytman
2012-10-16  8:32   ` Stefan Hajnoczi
2012-10-16  9:43     ` Kevin Wolf [this message]
2012-10-15 20:30 ` [Qemu-devel] [PATCH 0/2] A few race conditions in E1000 device fixed Dmitry Fleytman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=507D2C53.5040009@redhat.com \
    --to=kwolf@redhat.com \
    --cc=chris.webb@elastichosts.com \
    --cc=dmitry@daynix.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    --cc=richard.davies@elastichosts.com \
    --cc=stefanha@gmail.com \
    --cc=yan@daynix.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.