From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759291AbXEZKSj (ORCPT ); Sat, 26 May 2007 06:18:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754205AbXEZKSc (ORCPT ); Sat, 26 May 2007 06:18:32 -0400 Received: from ozlabs.org ([203.10.76.45]:52731 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753967AbXEZKSb (ORCPT ); Sat, 26 May 2007 06:18:31 -0400 Subject: Re: Extending boot protocol & bzImage for paravirt_ops From: Rusty Russell To: "Eric W. Biederman" Cc: Jeremy Fitzhardinge , Chris Wright , "H. Peter Anvin" , Virtualization Mailing List , Linux Kernel Mailing List In-Reply-To: References: <4656FB8F.4090604@goop.org> Content-Type: text/plain Date: Sat, 26 May 2007 20:18:11 +1000 Message-Id: <1180174691.650.8.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2007-05-25 at 10:46 -0600, Eric W. Biederman wrote: > Most of that though is just packaging. The meat of the issue > is how do we upgrade the bootloader data. Do the changes > below sound like everything we need? > > Field name: loadflags > Type: modify (obligatory) > Offset/size: 0x211/1 > Protocol: 2.00+ > > This field is a bitmask. > > Bit 0 (read): LOADED_HIGH > - If 0, the protected-mode code is loaded at 0x10000. > - If 1, the protected-mode code is loaded at 0x100000. > > + Bit 6 (write): KEEP_SEGMENTS > + Protocol: 2.07+ > + - if 0, reload the segment registers in the 32bit entry point. > + - if 1, do not reload the segment registers in the 32bit entry point. > + Assume that %cs %ds %ss %es are all set to flat segments with > + a base of 0 (or the equivalent for their environment). You also want to skip the cli: perhaps a separate flag for this is appropriate though. Rest looks fine from an lguest POV. We don't need the platform data field either, since we use the first hypercall to get that). Cheers, Rusty.