mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 14:48:06 +00:00
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>
This commit is contained in:
parent
5b664cb235
commit
95c7c23b06
1 changed files with 6 additions and 2 deletions
|
@ -167,10 +167,14 @@ void xen_vcpu_restore(void)
|
||||||
|
|
||||||
static void __init xen_banner(void)
|
static void __init xen_banner(void)
|
||||||
{
|
{
|
||||||
|
unsigned version = HYPERVISOR_xen_version(XENVER_version, NULL);
|
||||||
|
struct xen_extraversion extra;
|
||||||
|
HYPERVISOR_xen_version(XENVER_extraversion, &extra);
|
||||||
|
|
||||||
printk(KERN_INFO "Booting paravirtualized kernel on %s\n",
|
printk(KERN_INFO "Booting paravirtualized kernel on %s\n",
|
||||||
pv_info.name);
|
pv_info.name);
|
||||||
printk(KERN_INFO "Hypervisor signature: %s%s\n",
|
printk(KERN_INFO "Xen version: %d.%d%s%s\n",
|
||||||
xen_start_info->magic,
|
version >> 16, version & 0xffff, extra.extraversion,
|
||||||
xen_feature(XENFEAT_mmu_pt_update_preserve_ad) ? " (preserve-AD)" : "");
|
xen_feature(XENFEAT_mmu_pt_update_preserve_ad) ? " (preserve-AD)" : "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue