Skip to contentSkip to conversation

fix regression from c/s 23735:537918f518ee

PATCH New Jan Beulich 1 participant 1 message Jul 25, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix regression from c/s 23735:537918f518ee

This was checking presence of the wrong (old) ELF note. I don't really understand how this failed consistently only for one of the xen-boot tests...

xen/arch/ia64/xen/domain.c +1 -1
@@ -2164,7 +2164,7 @@ int __init construct_dom0(struct domain 
 		return -1;
 	}
 
-	if (parms.elf_notes[XEN_ELFNOTE_FEATURES].type != XEN_ENT_NONE &&
+	if (parms.elf_notes[XEN_ELFNOTE_SUPPORTED_FEATURES].type != XEN_ENT_NONE &&
 	    !test_bit(XENFEAT_dom0, parms.f_supported))
 	{
 		printk("Kernel does not support Dom0 operation\n");
xen/arch/x86/domain_build.c +1 -1
@@ -415,7 +415,7 @@ int __init construct_dom0(
         return -EINVAL;
     }
 
-    if ( parms.elf_notes[XEN_ELFNOTE_FEATURES].type != XEN_ENT_NONE &&
+    if ( parms.elf_notes[XEN_ELFNOTE_SUPPORTED_FEATURES].type != XEN_ENT_NONE &&
          !test_bit(XENFEAT_dom0, parms.f_supported) )
     {
         printk("Kernel does not support Dom0 operation\n");

This was checking presence of the wrong (old) ELF note. I don't really understand how this failed consistently only for one of the xen-boot tests...

xen/arch/ia64/xen/domain.c +1 -1
@@ -2164,7 +2164,7 @@ int __init construct_dom0(struct domain 
 		return -1;
 	}
 
-	if (parms.elf_notes[XEN_ELFNOTE_FEATURES].type != XEN_ENT_NONE &&
+	if (parms.elf_notes[XEN_ELFNOTE_SUPPORTED_FEATURES].type != XEN_ENT_NONE &&
 	    !test_bit(XENFEAT_dom0, parms.f_supported))
 	{
 		printk("Kernel does not support Dom0 operation\n");
xen/arch/x86/domain_build.c +1 -1
@@ -415,7 +415,7 @@ int __init construct_dom0(
         return -EINVAL;
     }
 
-    if ( parms.elf_notes[XEN_ELFNOTE_FEATURES].type != XEN_ENT_NONE &&
+    if ( parms.elf_notes[XEN_ELFNOTE_SUPPORTED_FEATURES].type != XEN_ENT_NONE &&
          !test_bit(XENFEAT_dom0, parms.f_supported) )
     {
         printk("Kernel does not support Dom0 operation\n");

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel