hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/x86/include/asm/hypervisor.h
....@@ -29,6 +29,7 @@
2929 X86_HYPER_XEN_HVM,
3030 X86_HYPER_KVM,
3131 X86_HYPER_JAILHOUSE,
32
+ X86_HYPER_ACRN,
3233 };
3334
3435 #ifdef CONFIG_HYPERVISOR_GUEST
....@@ -52,8 +53,20 @@
5253
5354 /* runtime callbacks */
5455 struct x86_hyper_runtime runtime;
56
+
57
+ /* ignore nopv parameter */
58
+ bool ignore_nopv;
5559 };
5660
61
+extern const struct hypervisor_x86 x86_hyper_vmware;
62
+extern const struct hypervisor_x86 x86_hyper_ms_hyperv;
63
+extern const struct hypervisor_x86 x86_hyper_xen_pv;
64
+extern const struct hypervisor_x86 x86_hyper_kvm;
65
+extern const struct hypervisor_x86 x86_hyper_jailhouse;
66
+extern const struct hypervisor_x86 x86_hyper_acrn;
67
+extern struct hypervisor_x86 x86_hyper_xen_hvm;
68
+
69
+extern bool nopv;
5770 extern enum x86_hypervisor_type x86_hyper_type;
5871 extern void init_hypervisor_platform(void);
5972 static inline bool hypervisor_is_type(enum x86_hypervisor_type type)