From: Wei Liu Date: Thu, 24 Oct 2019 13:34:29 +0000 (+0100) Subject: x86: use running_on_hypervisor to gate hypervisor_setup X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6407eba5d33db3d9edf913c1d704813524ffddb5;p=people%2Fliuw%2Fxen.git x86: use running_on_hypervisor to gate hypervisor_setup The hypervisor_setup method is not unique to Xen guest. Signed-off-by: Wei Liu --- diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index 4aa0af5a12..044c45be36 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -1577,7 +1577,7 @@ void __init noreturn __start_xen(unsigned long mbi_p) max_cpus = nr_cpu_ids; } - if ( xen_guest ) + if ( running_on_hypervisor ) hypervisor_setup(); /* Low mappings were only needed for some BIOS table parsing. */