From: Boris Derzhavets Subject: Re: [PATCH] xen: make (set|get)_xen_guest_handle available Date: Thu, 30 Jul 2009 05:41:33 -0700 (PDT) Message-ID: <126880.30243.qm@web56105.mail.re3.yahoo.com> References: <200907301355.33820.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1050816282==" Return-path: In-Reply-To: <200907301355.33820.Christoph.Egger@amd.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: Christoph Egger Cc: "xen-devel@lists.xensource.com" , Keir Fraser List-Id: xen-devel@lists.xenproject.org --===============1050816282== Content-Type: multipart/alternative; boundary="0-1503941019-1248957693=:30243" --0-1503941019-1248957693=:30243 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi Christoph, > NetBSD 5.0 got Xen 3.x support (both 32bit and 64bit), kept Xen 2 support= =20 Sounds a bit strange for me. Like only 3.X=A0 Xen Hypervisor could be conne= cted via hypercalls from NetBSD 5.0 DomU xenified kernel. ( For instance Solaris Nevada until build 84(5)=A0 ( or so)=A0 required pat= ch to work with Xen 3.2 and higher Linux Dom0 ) Would NetBSD 5.0 understand Xen 3.4.1 Dom0 on top=20 of Ubuntu 9.04 or F11 (64-bit environment) ? Thanks. Boris. --- On Thu, 7/30/09, Christoph Egger wrote: From: Christoph Egger Subject: Re: [Xen-devel] [PATCH] xen: make (set|get)_xen_guest_handle avail= able To: "Boris Derzhavets" Cc: "xen-devel@lists.xensource.com" , "Keir = Fraser" Date: Thursday, July 30, 2009, 7:55 AM Hi Boris, this is the history: NetBSD 2.0 got Xen 1.2 support (both Dom0 and DomU) NetBSD 3.0 got Xen 2 support, dropped Xen 1.2 support (both Dom0 and DomU) NetBSD 4.0 got Xen 3.0/3.1 support 32bit only, kept Xen 2 support (both Dom= 0=20 and DomU) NetBSD 5.0 got Xen 3.x support (both 32bit and 64bit), kept Xen 2 support= =20 (both Dom0 and DomU) NetBSD-current dropped Xen 2 support, about to move to new interface. Christoph On Thursday 30 July 2009 13:16:00 Boris Derzhavets wrote: > May the recent version of NetBSD run as PV guest ? > Sorry, for stupid question. > Boris. > > --- On Thu, 7/30/09, Christoph Egger wrote: > > From: Christoph Egger > Subject: Re: [Xen-devel] [PATCH] xen: make (set|get)_xen_guest_handle > available To: "Keir Fraser" > Cc: "xen-devel@lists.xensource.com" > Date: Thursday, July 30, 2009, 6:34 AM > > On Thursday 30 July 2009 12:14:04 Keir Fraser wrote: > > On 30/07/2009 10:12, "Christoph Egger" wrote: > > > Make (set|get)_xen_guest_handle() always available. > > > This avoids code snippets in the guest like this: > > > > > > #if __XEN_ITNERFACE_VERSION__ >=3D 0x00030201 > > > set_xen_guest_handle(hnd, val); > > > #else > > > hnd =3D val; > > > #endif > > > > Actually I don't see why you'd have code like this. *You*, the guest, > > gets to specify __XEN_INTERFACE_VERSION__ -- that is the point of it -- > > so ifdef'ing based on it in the guest is stupid. > > > > Just specify __XEN_INTERFACE_VERSION__ to be recent enough to have the > > guest handles, and then remove your ifdefs. Simple. > > The point is to keep backward compatibility. The patch makes Xen more > friendly with using the old non-structured guest handler if the user want= s. > > NetBSD offers both way to build & run it with either using the old or new > interface. This allows a smooth migration. > > Christoph --=20 ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A --0-1503941019-1248957693=:30243 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Christoph,

> NetBSD 5.0 got Xen = 3.x support (both 32bit and 64bit), kept Xen 2 support

Sounds a bit= strange for me. Like only 3.X  Xen Hypervisor could be connected via = hypercalls from NetBSD 5.0 DomU xenified kernel.
( For instance Solaris = Nevada until build 84(5)  ( or so)  required patch to work with X= en 3.2 and higher Linux Dom0 )

Would NetBSD 5.0 understand Xen 3.4.1= Dom0 on top
of Ubuntu 9.04 or F11 (64-bit environment) ?

Thanks= .
Boris.

--- On Thu, 7/30/09, Christoph Egger <Christoph= .Egger@amd.com> wrote:

From: Chr= istoph Egger <Christoph.Egger@amd.com>
Subject: Re: [Xen-devel] [P= ATCH] xen: make (set|get)_xen_guest_handle available
To: "Boris Derzhave= ts" <bderzhavets@yahoo.com>
Cc: "xen-devel@lists.xensource.com" <x= en-devel@lists.xensource.com>, "Keir Fraser" <keir.fraser@eu.citrix.c= om>
Date: Thursday, July 30, 2009, 7:55 AM


Hi Boris,

this is the history:

NetBSD 2.0 got Xen 1= .2 support (both Dom0 and DomU)
NetBSD 3.0 got Xen 2 support, dropped Xe= n 1.2 support (both Dom0 and DomU)
NetBSD 4.0 got Xen 3.0/3.1 support 32= bit only, kept Xen 2 support (both Dom0
and DomU)
NetBSD 5.0 got Xen= 3.x support (both 32bit and 64bit), kept Xen 2 support
(both Dom0 and = DomU)
NetBSD-current dropped Xen 2 support, about to move to new interfa= ce.

Christoph

On Thursday 30 July 2009 13:16:00 Boris Derzhav= ets wrote:
> May the recent version of NetBSD run as PV guest ?
&g= t; Sorry, for stupid question.
> Boris.
>
> --- On Thu, 7= /30/09, Christoph Egger <Christoph.Egger@amd.com> wrote:
>
> F= rom: Christoph Egger <Christoph.Egger@amd.com&g= t;
> Subject: Re: [Xen-devel] [PATCH] xen: make (set|get)_xen_guest_h= andle
> available To: "Keir Fraser" <keir= .fraser@eu.citrix.com>
> Cc: "xen-devel@lists.xensource.com" <xe= n-devel@lists.xensource.com>
> Date: Thursday, July 30, 2009, = 6:34 AM
>
> On Thursday 30 July 2009 12:14:04 Keir Fraser wrote= :
> > On 30/07/2009 10:12, "Christoph Egger" <Christoph.Egg= er@amd.com> wrote:
> > > Make (set|get)_xen_guest_handle= () always available.
> > > This avoids code snippets in the gue= st like this:
> > >
> > > #if __XEN_ITNERFACE_VERSI= ON__ >=3D 0x00030201
> > > set_xen_guest_handle(hnd, val);> > > #else
> > > hnd =3D val;
> > > #en= dif
> >
> > Actually I don't see why you'd have code like= this. *You*, the guest,
> > gets to specify __XEN_INTERFACE_VERSI= ON__ -- that is the point of it --
> > so ifdef'ing based on it in= the guest is stupid.
> >
> > Just specify __XEN_INTERFAC= E_VERSION__ to be recent enough to have the
> > guest handles, and= then remove your ifdefs. Simple.
>
> The point is to keep backward compatibility. The patch makes Xen more
> friendly with usi= ng the old non-structured guest handler if the user wants.
>
> = NetBSD offers both way to build & run it with either using the old or n= ew
> interface. This allows a smooth migration.
>
> Chris= toph



--
---to satisfy European Law for business letters:=
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornac= h b. Muenchen
Geschaeftsfuehrer: Thomas M. McCoy, Giuliano Meroni
Sit= z: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muench= en, HRB Nr. 43632


______________________________________________= _
Xen-devel mailing list
Xen-devel@l= ists.xensource.com
http://lists.xensource.com/xen-devel

=0A=0A --0-1503941019-1248957693=:30243-- --===============1050816282== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1050816282==--