public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <aliguori@us.ibm.com>
To: Alex Williamson <alex.williamson@hp.com>
Cc: kvm@vger.kernel.org, Avi Kivity <avi@redhat.com>
Subject: Re: [PATCH 1/2] Increment virtio-net savevm version to avoid conflict with upstream QEMU.
Date: Thu, 30 Apr 2009 08:39:00 -0500	[thread overview]
Message-ID: <49F9A9F4.2040503@us.ibm.com> (raw)
In-Reply-To: <1241065511.9646.586.camel@2710p.home>

Alex Williamson wrote:
> On Wed, 2009-04-29 at 15:53 -0500, Anthony Liguori wrote: 
>   
>> -#define VIRTIO_NET_VM_VERSION    6
>> +/* Version 7 has TAP_VNET_HDR support.  This is reserved in upstream QEMU to
>> + * avoid future conflict.
>> + * We can't assume verisons > 7 have TAP_VNET_HDR support until this is merged
>> + * in upstream QEMU.
>> + */
>> +#define VIRTIO_NET_VM_VERSION    7
>>     
>
> It seems like you're saying you're only going to reserve version number
> 7, and not the 4 bytes of savevm we're using for version 7 here.
> Couldn't we fix this by adding a dummy patch to qemu to bump to version
> 7, and push/pop a 4 byte zero from the savevm?  Then we could change the
> code below to >= 7.  Qemu should probably puke on a savevm image with
> non-zero in this location until the kvm code gets merged.  Looks like
> one byte would be more than sufficient if we wanted to make that change
> now too.  Thanks,
>   

I'd rather just merge vnet into upstream QEMU as quickly as possible.  
All I have to do to reserve a field is just hope noone submits a patch 
incrementing version id until we submit vnet support :-)

--
Regards,

Anthony Liguori


  reply	other threads:[~2009-04-30 13:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-29 20:53 [PATCH 0/2] Make savevm versioning compatible with upstream QEMU Anthony Liguori
2009-04-29 20:53 ` [PATCH 1/2] Increment virtio-net savevm version to avoid conflict " Anthony Liguori
2009-04-30  4:25   ` Alex Williamson
2009-04-30 13:39     ` Anthony Liguori [this message]
2009-04-29 20:53 ` [PATCH 2/2] Increment version id for CPU save state Anthony Liguori
2009-04-30 13:29 ` [PATCH 0/2] Make savevm versioning compatible with upstream QEMU Avi Kivity
2009-04-30 13:35   ` Anthony Liguori

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=49F9A9F4.2040503@us.ibm.com \
    --to=aliguori@us.ibm.com \
    --cc=alex.williamson@hp.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox