From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?windows-1252?Q?Roger_Pau_Monn=E9?= Subject: Re: [PATCH v3 00/32] Introduce HVM without dm and new boot ABI Date: Fri, 3 Jul 2015 18:36:37 +0200 Message-ID: <5596BA15.2090507@citrix.com> References: <1435923310-9019-1-git-send-email-roger.pau@citrix.com> <5596B62E.7010306@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZB3xD-0000mt-Dh for xen-devel@lists.xenproject.org; Fri, 03 Jul 2015 16:36:43 +0000 In-Reply-To: <5596B62E.7010306@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org El 03/07/15 a les 18.19, David Vrabel ha escrit: > On 03/07/15 12:34, Roger Pau Monne wrote: >> >> And for the FreeBSD part: > > Have you thought at all about what the Linux support for this mode would > look like? > > I started briefly looking today but don't really have time to look into > it properly. I do think we want to use as much of the native/HVM code > as possible and avoid the PV path (the current Linux PVH code uses too > much of the PV entry point, IMO). I'm afraid I'm not that familiar with the native Linux entry point in order to know how much of that can be reused. Does the amd64 kernel contain a 32bit entry point or the kernel is expected to be launched in long mode with some page tables already setup? Iff Linux on i386/amd64 already contains a 32bit protected mode without paging entry point then I guess most of the code can be reused. Note that FreeBSD/amd64 didn't have any of this (the kernel is launched in long mode with some initial page tables setup by the loader), so the code needed for Linux should be similar to the one on FreeBSD or even less if there's an entry point that we can reuse: http://xenbits.xen.org/gitweb/?p=people/royger/freebsd.git;a=blob;f=sys/amd64/amd64/xen-locore32.S;h=fd73d150009ab21059d4df219e6a62cc40d5994e;hb=refs/heads/new_entry_point_v2 Roger.