@@ -122,8 +122,6 @@ u64 hv_tdx_hypercall_fast(u64 control, u64 input)
return hv_tdx_hypercall(control | HV_HYPERCALL_FAST_BIT,
input_address, output_address);
}
-EXPORT_SYMBOL_GPL(hv_tdx_hypercall_fast);
-
static inline u64 rd_ghcb_msr(void)
{
@@ -41,7 +41,6 @@ struct ms_hyperv_info ms_hyperv;
bool hyperv_paravisor_present;
/* The variable is used in modules via hv_do_hypercall() */
-EXPORT_SYMBOL_GPL(hyperv_paravisor_present);
#if IS_ENABLED(CONFIG_HYPERV)
static inline unsigned int hv_get_nested_reg(unsigned int reg)
@@ -37,6 +37,9 @@
bool __weak hv_root_partition;
EXPORT_SYMBOL_GPL(hv_root_partition);
+bool __weak hyperv_paravisor_present;
+EXPORT_SYMBOL_GPL(hyperv_paravisor_present);
+
bool __weak hv_nested;
EXPORT_SYMBOL_GPL(hv_nested);
@@ -338,3 +341,9 @@ u64 __weak hv_ivm_hypercall(u64 control, void *input, void *output, u32 input_si
return HV_STATUS_INVALID_PARAMETER;
}
EXPORT_SYMBOL_GPL(hv_ivm_hypercall);
+
+u64 __weak hv_tdx_hypercall_fast(u64 control, u64 input)
+{
+ return HV_STATUS_INVALID_PARAMETER;
+}
+EXPORT_SYMBOL_GPL(hv_tdx_hypercall_fast);
@@ -183,6 +183,7 @@ extern int vmbus_interrupt;
extern int vmbus_irq;
extern bool hv_root_partition;
+extern bool hyperv_paravisor_present;
#if IS_ENABLED(CONFIG_HYPERV)
/*