]> xenbits.xensource.com Git - people/liuw/xen.git/commitdiff
x86: use running_on_hypervisor to gate hypervisor_setup
authorWei Liu <liuwe@microsoft.com>
Thu, 24 Oct 2019 13:34:29 +0000 (14:34 +0100)
committerWei Liu <liuwe@microsoft.com>
Tue, 5 Nov 2019 11:21:16 +0000 (11:21 +0000)
The hypervisor_setup method is not unique to Xen guest.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
xen/arch/x86/setup.c

index 4aa0af5a121c416786f5f0b64072d687b3816225..044c45be36877fa4062f3092f2ceac33d620ef69 100644 (file)
@@ -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. */