aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/libelf
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2010-11-09 11:50:14 +0000
committerKeir Fraser <keir@xen.org>2010-11-09 11:50:14 +0000
commit9f41c22a559a7ec039a195f6dc8bca32c66fcd5a (patch)
tree5653b49c08df067083bd24123a2cbb5539c2ede7 /xen/common/libelf
parent5a771800114c437fb857b44b3ed74f60e87979c2 (diff)
downloadxen-9f41c22a559a7ec039a195f6dc8bca32c66fcd5a.tar.gz
xen-9f41c22a559a7ec039a195f6dc8bca32c66fcd5a.tar.bz2
xen-9f41c22a559a7ec039a195f6dc8bca32c66fcd5a.zip
x86: allow passing initrd to kernel without exposing it through the initial mapping
The (Dom0 only for now) kernel can indicate that it doesn't need its initrd mapped through a newly added ELF note - it gets passed the PFN of the initrd in this case instead of the virtual address. Even for kernels not making use of the new feature, the initrd will no longer get copied into the initial mapping, but the memory it lives in will get assigned to and mapped for the guest instead. Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/common/libelf')
-rw-r--r--xen/common/libelf/libelf-dominfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/common/libelf/libelf-dominfo.c b/xen/common/libelf/libelf-dominfo.c
index 08f8e51e4d..29c3339088 100644
--- a/xen/common/libelf/libelf-dominfo.c
+++ b/xen/common/libelf/libelf-dominfo.c
@@ -115,6 +115,7 @@ int elf_xen_parse_note(struct elf_binary *elf,
[XEN_ELFNOTE_FEATURES] = { "FEATURES", 1},
[XEN_ELFNOTE_BSD_SYMTAB] = { "BSD_SYMTAB", 1},
[XEN_ELFNOTE_SUSPEND_CANCEL] = { "SUSPEND_CANCEL", 0 },
+ [XEN_ELFNOTE_MOD_START_PFN] = { "MOD_START_PFN", 0 },
};
/* *INDENT-ON* */