From: Dan Magenheimer Subject: RE: [RFC] tmem ABI change... backwards compatibility unnecessary? Date: Thu, 2 Sep 2010 16:19:52 -0700 (PDT) Message-ID: References: <1e601c02-1f50-4396-b4d1-e1e21ebf3dc8@default 4C7E87970200007800013C2C@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4C7E87970200007800013C2C@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: JeremyFitzhardinge , "Xen-Devel (xen-devel@lists.xensource.com)" , tmem-devel@oss.oracle.com, Kurt Hackel , Vasiliy G Tolstov , Keir Fraser , stephen.spector@citrix.com, Chris Mason List-Id: xen-devel@lists.xenproject.org > From: Jan Beulich [mailto:JBeulich@novell.com] > Sent: Wednesday, September 01, 2010 9:04 AM > To: Dan Magenheimer > Cc: stephen.spector@citrix.com; Keir Fraser; JeremyFitzhardinge; Xen- > Devel (xen-devel@lists.xensource.com); Chris Mason; Kurt Hackel; tmem- > devel@oss.oracle.com; Vasiliy G Tolstov > Subject: Re: [RFC] tmem ABI change... backwards compatibility > unnecessary? >=20 > >>> On 01.09.10 at 16:36, Dan Magenheimer > wrote: > > I *think* it is still the case that tmem is experimental > > and is not used anywhere yet in production. If I am > > wrong, PLEASE LET ME KNOW ASAP. >=20 > Well, if you call us shipping it (default disabled) in a couple of > releases "not used in production"... >=20 > > I am inclined to update the Xen tmem implementation > > to only support v1 and gracefully fail v0. >=20 > If "graceful" really means what it says, this would appear to be > acceptable irrespective of my note above. OK, I will submit a patch tomorrow with the following characteristics: v0 (current) hypervisor + v0 guest: succeeds v1 (patched) hypervisor + v1 guest: succeeds v0 (current) hypervisor + v1 guest: fails v1 (patched) hypervisor + v0 guest: fails where fails is an xm dmesg message that says "unsupported spec version" when the guest attempts to create a pool. And pool creation failure ensures that all further tmem operations also fail (indeed never even result in a hypercall for most tmem-enabled kernels). Thank goodness ABI versioning was built into tmem from the beginning! Dan