From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161473AbXEDSZs (ORCPT ); Fri, 4 May 2007 14:25:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161474AbXEDSZr (ORCPT ); Fri, 4 May 2007 14:25:47 -0400 Received: from gw.goop.org ([64.81.55.164]:56247 "EHLO mail.goop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161473AbXEDSZq (ORCPT ); Fri, 4 May 2007 14:25:46 -0400 Message-ID: <463B7AAC.90701@goop.org> Date: Fri, 04 May 2007 11:25:48 -0700 From: Jeremy Fitzhardinge User-Agent: Thunderbird 1.5.0.10 (X11/20070302) MIME-Version: 1.0 To: "Eric W. Biederman" CC: Rusty Russell , Andi Kleen , Chris Wright , Zachary Amsden , Andrew Morton , Linus Torvalds , "H. Peter Anvin" , lkml - Kernel Mailing List Subject: Re: [RFC PATCH 3/3] boot bzImages under paravirt References: <1178283582.23670.67.camel@localhost.localdomain> <1178283724.23670.70.camel@localhost.localdomain> <1178284052.23670.75.camel@localhost.localdomain> <463B4E12.50703@goop.org> <463B6C8A.9080206@goop.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Eric W. Biederman wrote: >>> load the segments as well. >>> >>> Gujin looks like it loads just %es and %ds. >>> >>> >> We should be able to make do with that until we've got our own gdt. >> > > Right after the segments loads we have: > leal 0x40(%esi), %esp > call 1f > 1: popl %ebp > subl $1b, %ebp > > That uses %ss and %ds. Can we use a segment override on a call > instruction? > I overlooked Gujin missing %ss. That's harsh. Easy for them to fix, presumably. > Yes. Exactly like we do for real mode code, and with exactly the same > values. Just in a little different format. Well, fits in well with Xen's requirements, since it wants ELF notes there for exactly the same reason. J