From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Samuel Thibault <samuel.thibault@gnu.org>
Cc: "Daniel P. Berrange" <berrange@redhat.com>,
Juan Quintela <quintela@redhat.com>,
qemu-devel@nongnu.org, jan.kiszka@siemens.com,
maethor@subiron.org
Subject: Re: [Qemu-devel] [PATCH v4 4/5] slirp: VMStatify socket level
Date: Tue, 28 Feb 2017 17:09:26 +0000 [thread overview]
Message-ID: <20170228170925.GI2773@work-vm> (raw)
In-Reply-To: <20170228170235.4xtrld37c6ymj5ko@var.youpi.perso.aquilenet.fr>
* Samuel Thibault (samuel.thibault@gnu.org) wrote:
> Dr. David Alan Gilbert, on mar. 28 févr. 2017 17:00:17 +0000, wrote:
> > * Samuel Thibault (samuel.thibault@gnu.org) wrote:
> > > Dr. David Alan Gilbert, on mar. 28 févr. 2017 16:54:46 +0000, wrote:
> > > > I'm thinking one way to do it without changing the version would
> > > > be to use the existing value for IPv4, and on reading allow any other
> > > > value for IPv6 (or just the ones we know about); that would make
> > > > it inwards migration compatible.
> > >
> > > Right. I don't know if that's enough for QEMU requirements.
> >
> > If you change the version number you break backwards migration anyway;
> > but doing what I suggested would keep backwards working in most cases.
>
> Sure, but in some cases we're breaking upward compatibility *silently*.
No, we don't need to break upwards compatibility; if I understand correctly
the only values that can be in that field at the moment are:
AF_INET - IPv4 which is 2 on everything we've seen
AF_INET6 - whose value is different on different implementations.
If we accept an incoming value of '2' to mean AF_INET then all existing
IPv4 connections work.
If we accept any other incoming value as AF_INET6 all existing IPv6 connections
work.
- so that's foward compatibility OK.
If we generate '2' as the outgoing value for AF_INET then migration
to all exiting code works for IPv4; so backwards works for IPv4.
If we generate Linux's AF_INET6 number then IPv6 also works backwards
but only for Linux.
Dave
> Samuel
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
next prev parent reply other threads:[~2017-02-28 17:09 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-20 18:50 [Qemu-devel] [PATCH v4 0/5] SLIRP VMStatification Dr. David Alan Gilbert (git)
2017-02-20 18:50 ` [Qemu-devel] [PATCH v4 1/5] slirp: VMState conversion; tcpcb Dr. David Alan Gilbert (git)
2017-02-20 18:50 ` [Qemu-devel] [PATCH v4 2/5] slirp: VMStatify sbuf Dr. David Alan Gilbert (git)
2017-02-20 18:50 ` [Qemu-devel] [PATCH v4 3/5] slirp: Common lhost/fhost union Dr. David Alan Gilbert (git)
2017-02-20 21:02 ` Philippe Mathieu-Daudé
2017-02-21 13:55 ` Juan Quintela
2017-02-20 18:50 ` [Qemu-devel] [PATCH v4 4/5] slirp: VMStatify socket level Dr. David Alan Gilbert (git)
2017-02-21 14:03 ` Juan Quintela
2017-02-21 14:08 ` Dr. David Alan Gilbert
2017-02-23 10:51 ` Dr. David Alan Gilbert
2017-02-23 11:04 ` Daniel P. Berrange
2017-02-23 11:40 ` Dr. David Alan Gilbert
2017-02-26 20:34 ` Samuel Thibault
2017-02-26 22:59 ` Samuel Thibault
2017-02-28 16:54 ` Dr. David Alan Gilbert
2017-02-28 16:57 ` Samuel Thibault
2017-02-28 17:00 ` Dr. David Alan Gilbert
2017-02-28 17:02 ` Samuel Thibault
2017-02-28 17:09 ` Dr. David Alan Gilbert [this message]
2017-02-28 17:12 ` Samuel Thibault
2017-02-28 17:40 ` Dr. David Alan Gilbert
2017-02-28 22:09 ` Samuel Thibault
2017-02-20 18:50 ` [Qemu-devel] [PATCH v4 5/5] slirp: VMStatify remaining except for loop Dr. David Alan Gilbert (git)
2017-02-21 13:57 ` Juan Quintela
2017-02-20 19:02 ` [Qemu-devel] [PATCH v4 0/5] SLIRP VMStatification no-reply
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=20170228170925.GI2773@work-vm \
--to=dgilbert@redhat.com \
--cc=berrange@redhat.com \
--cc=jan.kiszka@siemens.com \
--cc=maethor@subiron.org \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=samuel.thibault@gnu.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;
as well as URLs for NNTP newsgroup(s).