All of lore.kernel.org
 help / color / mirror / Atom feed
* [POWERPC/IA64] Updates required due to loader changes
@ 2006-08-23 14:00 Ian Campbell
  2006-08-23 14:36 ` Ian Campbell
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Ian Campbell @ 2006-08-23 14:00 UTC (permalink / raw)
  To: xen-devel; +Cc: Jimi Xenidis, Alex Williamson, Hollis Blanchard

[-- Attachment #1: Type: text/plain, Size: 1134 bytes --]

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 :-(

[-- Attachment #2: elf-notes.ia64.diff --]
[-- Type: text/x-patch, Size: 797 bytes --]

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;
 	}

[-- Attachment #3: elf-notes.powerpc.diff --]
[-- Type: text/x-patch, Size: 611 bytes --]

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. */

[-- Attachment #4: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2006-08-26  8:56 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-23 14:00 [POWERPC/IA64] Updates required due to loader changes Ian Campbell
2006-08-23 14:36 ` Ian Campbell
2006-08-23 14:49   ` Tristan Gingold
2006-08-23 18:20     ` Ian Campbell
2006-08-23 17:44   ` Ian Campbell
2006-08-23 18:09     ` Hollis Blanchard
2006-08-23 18:20       ` Ian Campbell
2006-08-24 20:16       ` Alex Williamson
2006-08-24 20:29         ` Hollis Blanchard
2006-08-25  3:21           ` Horms
2006-08-25  9:42             ` Ian Campbell
2006-08-25 16:05               ` Hollis Blanchard
2006-08-26  8:56               ` Horms
2006-08-23 18:29 ` Hollis Blanchard
2006-08-24  2:17 ` Horms
2006-08-24  7:12   ` Ian Campbell
2006-08-24  8:11     ` Horms
2006-08-24 14:24       ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.