From: Boris Derzhavets Subject: Re: [PATCH] xen: make (set|get)_xen_guest_handle available Date: Thu, 30 Jul 2009 04:16:00 -0700 (PDT) Message-ID: <270013.94181.qm@web56105.mail.re3.yahoo.com> References: <200907301234.38307.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1264950764==" Return-path: In-Reply-To: <200907301234.38307.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: Keir Fraser , Christoph Egger Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --===============1264950764== Content-Type: multipart/alternative; boundary="0-1697351354-1248952560=:94181" --0-1697351354-1248952560=:94181 Content-Type: text/plain; charset=us-ascii 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__ >= 0x00030201 > > set_xen_guest_handle(hnd, val); > > #else > > hnd = 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 wants. NetBSD offers both way to build & run it with either using the old or new interface. This allows a smooth migration. Christoph -- ---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 --0-1697351354-1248952560=:94181 Content-Type: text/html; charset=us-ascii
May the recent version of NetBSD run as PV guest ?
Sorry, for stupid question.
Boris.

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

From: Christoph Egger <Christoph.Egger@amd.com>
Subject: Re: [Xen-devel] [PATCH] xen: make (set|get)_xen_guest_handle available
To: "Keir Fraser" <keir.fraser@eu.citrix.com>
Cc: "xen-devel@lists.xensource.com" <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" <Christoph.Egger@amd.com> wrote:
> > Make (set|get)_xen_guest_handle() always available.
> > This avoids code snippets in the guest like this:
> >
> > #if __XEN_ITNERFACE_VERSION__ >= 0x00030201
> > set_xen_guest_handle(hnd, val);
> > #else
> > hnd = 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-s tructured guest handler if the user wants.

NetBSD offers both way to build & run it with either using the old or new
interface. This allows a smooth migration.

Christoph


--
---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

--0-1697351354-1248952560=:94181-- --===============1264950764== 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 --===============1264950764==--