[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH RFC 06/15] xen/arm: add BOOTMOD_DOMU_KERNEL/RAMDISK



Introduce bootmod types for domU kernels and initrds.

Signed-off-by: Stefano Stabellini <stefanos@xxxxxxxxxx>
---
 xen/arch/arm/bootfdt.c      | 4 ++++
 xen/arch/arm/setup.c        | 2 ++
 xen/include/asm-arm/setup.h | 2 ++
 3 files changed, 8 insertions(+)

diff --git a/xen/arch/arm/bootfdt.c b/xen/arch/arm/bootfdt.c
index 8eba42c..6c88ec4 100644
--- a/xen/arch/arm/bootfdt.c
+++ b/xen/arch/arm/bootfdt.c
@@ -194,6 +194,10 @@ static void __init process_multiboot_node(const void *fdt, 
int node,
         kind = BOOTMOD_RAMDISK;
     else if ( fdt_node_check_compatible(fdt, node, "xen,xsm-policy") == 0 )
         kind = BOOTMOD_XSM;
+    else if ( fdt_node_check_compatible(fdt, node, "multiboot,domU-kernel") == 
0 )
+        kind = BOOTMOD_DOMU_KERNEL;
+    else if ( fdt_node_check_compatible(fdt, node, "multiboot,domU-ramdisk") 
== 0 )
+        kind = BOOTMOD_DOMU_RAMDISK;
     else
         kind = BOOTMOD_UNKNOWN;
 
diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c
index 1d6f6bf..82593c8 100644
--- a/xen/arch/arm/setup.c
+++ b/xen/arch/arm/setup.c
@@ -249,6 +249,8 @@ const char * __init 
boot_module_kind_as_string(bootmodule_kind kind)
     case BOOTMOD_FDT:     return "Device Tree";
     case BOOTMOD_KERNEL:  return "Kernel";
     case BOOTMOD_RAMDISK: return "Ramdisk";
+    case BOOTMOD_DOMU_KERNEL:  return "DomU Kernel";
+    case BOOTMOD_DOMU_RAMDISK: return "DomU Ramdisk";
     case BOOTMOD_XSM:     return "XSM";
     case BOOTMOD_UNKNOWN: return "Unknown";
     default: BUG();
diff --git a/xen/include/asm-arm/setup.h b/xen/include/asm-arm/setup.h
index 0cc3330..e190451 100644
--- a/xen/include/asm-arm/setup.h
+++ b/xen/include/asm-arm/setup.h
@@ -16,6 +16,8 @@ typedef enum {
     BOOTMOD_KERNEL,
     BOOTMOD_RAMDISK,
     BOOTMOD_XSM,
+    BOOTMOD_DOMU_KERNEL,
+    BOOTMOD_DOMU_RAMDISK,
     BOOTMOD_UNKNOWN
 }  bootmodule_kind;
 
-- 
1.9.1


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.