From: Ian Campbell Subject: [POWERPC/IA64] Updates required due to loader changes Date: Wed, 23 Aug 2006 15:00:28 +0100 Message-ID: <1156341628.12949.48.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-PefYmgy54S5UijKTTnn/" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: Jimi Xenidis , Alex Williamson , Hollis Blanchard List-Id: xen-devel@lists.xenproject.org --=-PefYmgy54S5UijKTTnn/ Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi guys, I have made a change to xen-unstable which introduce the use of ELF notes for passing Xen specific information from the kernel to the domain builder, this is a replacement for the __xen_guest section string which stood no chance of being accepted by Linux upstream. I think it's a much nicer interface in its own right as well. The domU builder retains support for the __xen_guest stuff for backward compatibility however the dom0 builder now only supports the ELF notes. I don't think either of you were using actually __xen_guest stuff anyway -- IA64 seems to fake out an empty one while powerpc checks for the presence but never looks inside. I think the attached patches are all that is necessary to make the new stuff work for you but I am unable to test them[0]. If you could confirm for me that they do the job I'll commit them. The changesets numbers are 11235-11239. They are held in the staging tree at the moment but should propagate to the public tree once they have passed regression testing. Thanks, Ian. [0] ia64 doesn't build for me and cross-tool can't even produce a powerpc compiler on my system :-( --=-PefYmgy54S5UijKTTnn/ Content-Disposition: attachment; filename=elf-notes.ia64.diff Content-Type: text/x-patch; name=elf-notes.ia64.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit diff -r 58b5141c8309 xen/arch/ia64/xen/domain.c --- a/xen/arch/ia64/xen/domain.c Wed Aug 23 14:43:48 2006 +0100 +++ b/xen/arch/ia64/xen/domain.c Tue Aug 22 18:51:41 2006 +0100 @@ -901,17 +901,14 @@ int construct_dom0(struct domain *d, return rc; #ifdef VALIDATE_VT - /* Temp workaround */ - if (running_on_sim) - dsi.xen_section_string = (char *)1; - + /* Checking running_on_sim is a temporary workaround */ /* Check whether dom0 is vti domain */ - if ((!vmx_enabled) && !dsi.xen_section_string) { + if (!vmx_enabled && !running_on_sim) { printk("Lack of hardware support for unmodified vmx dom0\n"); panic(""); } - if (vmx_enabled && !dsi.xen_section_string) { + if (vmx_enabled && !running_on_sim) { printk("Dom0 is vmx domain!\n"); vmx_dom0 = 1; } --=-PefYmgy54S5UijKTTnn/ Content-Disposition: attachment; filename=elf-notes.powerpc.diff Content-Type: text/x-patch; name=elf-notes.powerpc.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit diff -r 58b5141c8309 xen/arch/powerpc/domain_build.c --- a/xen/arch/powerpc/domain_build.c Wed Aug 23 14:43:48 2006 +0100 +++ b/xen/arch/powerpc/domain_build.c Tue Aug 22 12:29:12 2006 +0100 @@ -137,10 +137,6 @@ int construct_dom0(struct domain *d, dsi.v_kernend = RM_MASK(dsi.v_kernend, 42); dsi.v_kernentry = RM_MASK(dsi.v_kernentry, 42); - if (dsi.xen_section_string == NULL) { - printk("Not a Xen-ELF image: '__xen_guest' section not found.\n"); - return -EINVAL; - } printk("*** LOADING DOMAIN 0 ***\n"); /* By default DOM0 is allocated all available memory. */ --=-PefYmgy54S5UijKTTnn/ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-PefYmgy54S5UijKTTnn/--