Received: from list by lists.gnu.org with archive (Exim 4.71) id 1X4Xc8-0006dZ-KN for mharc-grub-devel@gnu.org; Tue, 08 Jul 2014 11:47:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4Xc1-0006c4-Et for grub-devel@gnu.org; Tue, 08 Jul 2014 11:47:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4Xbu-0003rF-TQ for grub-devel@gnu.org; Tue, 08 Jul 2014 11:47:21 -0400 Received: from smtp.citrix.com ([66.165.176.89]:64537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4Xbu-0003qx-OQ for grub-devel@gnu.org; Tue, 08 Jul 2014 11:47:14 -0400 X-IronPort-AV: E=Sophos;i="5.01,625,1400025600"; d="scan'208";a="150607383" Received: from accessns.citrite.net (HELO FTLPEX01CL01.citrite.net) ([10.9.154.239]) by FTLPIPO01.CITRIX.COM with ESMTP; 08 Jul 2014 15:47:14 +0000 Received: from kazak.uk.xensource.com (10.80.2.80) by FTLPEX01CL01.citrite.net (10.13.107.78) with Microsoft SMTP Server id 14.3.181.6; Tue, 8 Jul 2014 11:47:12 -0400 Message-ID: <1404834431.25940.6.camel@kazak.uk.xensource.com> Subject: Re: [Xen-devel] Loading a 32 bit kernel from 64 bit grub-xen From: Ian Campbell To: Phillip Susi Date: Tue, 8 Jul 2014 16:47:11 +0100 In-Reply-To: <53BC103A.3090008@ubuntu.com> References: <53B2DC70.1040109@ubuntu.com> <20140701201814.6234200d@opensuse.site> <53B2FDAE.7030506@ubuntu.com> <1404293200.18330.3.camel@kazak.uk.xensource.com> <53BC103A.3090008@ubuntu.com> Organization: Citrix Systems, Inc. Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.2-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.2.80] X-DLP: MIA1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.165.176.89 Cc: Andrey Borzenkov , The development of GNU GRUB , xen-devel@lists.xen.org X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2014 15:47:27 -0000 On Tue, 2014-07-08 at 11:37 -0400, Phillip Susi wrote: > On 7/2/2014 5:26 AM, Ian Campbell wrote: > > So you are saying I don't know, because you've helpfully trimmed all of the context of something I said a week ago. /me consults list archive, I think you are responding to: > > Running a 32-bit userspace under a 64-bit kernel is a very different > > thing to switching a kernel from 64-bit down to 32-bit (or vice versa). > > > > While the former is of course supported just fine the latter is not and > > IIRC doing so would be very difficult for a PV kernel due to the way the > > interfaces are constructed (e.g. to p2m entries change size, the maximum > > addressable machine address changes). ---- > that you could put the cpu into 32 bit mode, but xen > would still believe that the domU is 64 bit, and thus, expect the > hypercalls to be 64 bit? Assuming you are asking about 32-bit kernel mode then a Xen PV 64-bit guest cannot be transitioned to run in kernel mode in anything other than 64-bit mode. There is simply no way to put the cpu into 32 bit mode while remaining in kernel mode. If you meant in userspace then all userspace hypercalls are made via a kernel driver and thus appear to come from the 64-bit kernel and Xen sees them as such. Ian.