aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/enlighten.c
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-07-15 16:42:34 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-18 07:50:42 -0400
commit95c7c23b06bc92f1772b9c9460845f179ba8c39e (patch)
tree4c1f7b8a07926880746e56202274fae7ed909341 /arch/x86/xen/enlighten.c
parent5b664cb235e97afbf34db9c4d77f08ebd725335e (diff)
xen: report hypervisor version
Various versions of the hypervisor have differences in what ABIs and features they support. Print some details into the boot log to help with remote debugging. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/xen/enlighten.c')
-rw-r--r--arch/x86/xen/enlighten.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index bb508456ef52..5328e46d9cf7 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -167,10 +167,14 @@ void xen_vcpu_restore(void)
167 167
168static void __init xen_banner(void) 168static void __init xen_banner(void)
169{ 169{
170 unsigned version = HYPERVISOR_xen_version(XENVER_version, NULL);
171 struct xen_extraversion extra;
172 HYPERVISOR_xen_version(XENVER_extraversion, &extra);
173
170 printk(KERN_INFO "Booting paravirtualized kernel on %s\n", 174 printk(KERN_INFO "Booting paravirtualized kernel on %s\n",
171 pv_info.name); 175 pv_info.name);
172 printk(KERN_INFO "Hypervisor signature: %s%s\n", 176 printk(KERN_INFO "Xen version: %d.%d%s%s\n",
173 xen_start_info->magic, 177 version >> 16, version & 0xffff, extra.extraversion,
174 xen_feature(XENFEAT_mmu_pt_update_preserve_ad) ? " (preserve-AD)" : ""); 178 xen_feature(XENFEAT_mmu_pt_update_preserve_ad) ? " (preserve-AD)" : "");
175} 179}
176 180