From: Tristan Gingold Subject: Re: PATCH: fix transparent virtualization issue Date: Thu, 18 May 2006 11:04:22 +0200 Message-ID: <200605181104.22363.Tristan.Gingold@bull.net> References: <200605171317.25885.Tristan.Gingold@bull.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline 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 Cc: xen-devel@lists.xensource.com, xen-ia64-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Le Jeudi 18 Mai 2006 00:35, Keir Fraser a =E9crit : > On 17 May 2006, at 12:17, Tristan Gingold wrote: > > this patch fixes a few transparent virtualization (ie running > > xenolinux on > > bare platform) issues for xen/ia64. > > Why not call xen_init() in the two places you added NULL check for > xen_start_info? Especially in netfront -- you already call xen_init() > in blkfront, so it seems weird not to do so in netfront. I see no > reason not to call it in swiotlb.c too. > > xen_init() is a pretty bad name by the way, seeing as it's called all > over the place so it's not really initialising xen state at every call > site. Given that it is used in most places for the caller to determine > if you are running on Xen or not, why not call it running_on_xen() and > have the initialisation on the first call just be a hidden side effect? Sure. Tristan.