# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1196959005 0
# Node ID 111302f69b35468f1a463b93b591401e9375fb25
# Parent 987025d210cd2bd1bff2ecc65d948b45d39cca27
xen: Domain0 builder should set start_info magic string to
'xen-3.0-...' just like user-space builder for domUs.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
xen-unstable changeset: 16397:64fbef22f86a0fa74a31bf865ebed95aa5179fa6
xen-unstable date: Tue Nov 20 14:35:36 2007 +0000
---
xen/arch/ia64/xen/domain.c | 3 +--
xen/arch/x86/domain_build.c | 6 ++----
2 files changed, 3 insertions(+), 6 deletions(-)
diff -r 987025d210cd -r 111302f69b35 xen/arch/ia64/xen/domain.c
--- a/xen/arch/ia64/xen/domain.c Thu Dec 06 16:36:06 2007 +0000
+++ b/xen/arch/ia64/xen/domain.c Thu Dec 06 16:36:45 2007 +0000
@@ -1191,8 +1191,7 @@ int construct_dom0(struct domain *d,
panic("can't allocate start info page");
si = page_to_virt(start_info_page);
clear_page(si);
- snprintf(si->magic, sizeof(si->magic), "xen-%i.%i-ia64",
- xen_major_version(), xen_minor_version());
+ snprintf(si->magic, sizeof(si->magic), "xen-3.0-ia64");
si->nr_pages = max_pages;
si->flags = SIF_INITDOMAIN|SIF_PRIVILEGED;
diff -r 987025d210cd -r 111302f69b35 xen/arch/x86/domain_build.c
--- a/xen/arch/x86/domain_build.c Thu Dec 06 16:36:06 2007 +0000
+++ b/xen/arch/x86/domain_build.c Thu Dec 06 16:36:45 2007 +0000
@@ -828,10 +828,8 @@ int __init construct_dom0(
si->pt_base = vpt_start + 2 * PAGE_SIZE * !!is_pv_32on64_domain(d);
si->nr_pt_frames = nr_pt_pages;
si->mfn_list = vphysmap_start;
- snprintf(si->magic, sizeof(si->magic), "xen-%i.%i-x86_%d%s",
- xen_major_version(), xen_minor_version(),
- elf_64bit(&elf) ? 64 : 32,
- parms.pae ? "p" : "");
+ snprintf(si->magic, sizeof(si->magic), "xen-3.0-x86_%d%s",
+ elf_64bit(&elf) ? 64 : 32, parms.pae ? "p" : "");
/* Write the phys->machine and machine->phys table entries. */
for ( pfn = 0; pfn < d->tot_pages; pfn++ )
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|