Received: from list by lists.gnu.org with archive (Exim 4.71) id 1dxxIl-0000rz-LH for mharc-grub-devel@gnu.org; Fri, 29 Sep 2017 11:34:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxxIi-0000rL-Ks for grub-devel@gnu.org; Fri, 29 Sep 2017 11:34:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxxIf-00058Y-HW for grub-devel@gnu.org; Fri, 29 Sep 2017 11:34:04 -0400 Received: from mx2.suse.de ([195.135.220.15]:42880 helo=mx1.suse.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dxxIf-00058D-At for grub-devel@gnu.org; Fri, 29 Sep 2017 11:34:01 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id B0A3DAE76; Fri, 29 Sep 2017 15:33:59 +0000 (UTC) Subject: Re: [Xen-devel] Xen PVH support in grub2 To: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= Cc: The development of GNU GRUB , xen-devel , Daniel Kiper References: <11dda1ae-5b70-41fe-a592-39750a74e5d7@suse.com> <20170929152439.iibhzqtwfmqi4yx2@dhcp-3-128.uk.xensource.com> From: Juergen Gross Message-ID: <230ef18e-6739-58c6-1f95-b04e7245beaf@suse.com> Date: Fri, 29 Sep 2017 17:33:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20170929152439.iibhzqtwfmqi4yx2@dhcp-3-128.uk.xensource.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 195.135.220.15 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Sep 2017 15:34:05 -0000 On 29/09/17 17:24, Roger Pau Monn=C3=A9 wrote: > On Fri, Sep 29, 2017 at 02:46:53PM +0000, Juergen Gross wrote: >> I'm thinking about to add support for Xen PVH guests to grub2. >> >> Basically I see two options how to do it: >> >> a) add PVH support to current grub.xen (both, 32- and 64-bit), in >> order to use the same grub binary for either pv-domains or >> pvh-domains >> b) create a new variant grub.xenpvh capable only to boot pvh-domains >> >> Are there any preferences which way to go? >=20 > IMHO, it should be possible to create a grub binary that can be loaded > in PVH mode but that's not tied to a specific bitness. Let's avoid > having a grub32 and grub64, that's not needed at all for PVH. Right. OTOH we have those two variants already for PV. So the question is whether we want grub32 and grub64 or do we want grub32, grub64 and grub.pvh. > Then, I also wonder whether it would make sense for this grub to load > the kernel using the PVH entry point or the native entry point. Would > it be possible to boot a Linux kernel up to the point where cpuid can > be used inside of a PVH container? I don't think today's Linux allows that. This has been discussed very thoroughly at the time Boris added PVH V2 support to the kernel. So my plan was to use the PVH entry point of the kernel. Juergen