]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Drivers: hv: Export some functions for use by root partition module
authorNuno Das Neves <nunodasneves@linux.microsoft.com>
Fri, 14 Mar 2025 19:28:52 +0000 (12:28 -0700)
committerWei Liu <wei.liu@kernel.org>
Thu, 20 Mar 2025 21:23:04 +0000 (21:23 +0000)
hv_get_hypervisor_version(), hv_call_deposit_pages(), and
hv_call_create_vp(), are all needed in-module with CONFIG_MSHV_ROOT=m.

Signed-off-by: Nuno Das Neves <nunodasneves@linux.microsoft.com>
Reviewed-by: Stanislav Kinsburskii <skinsburskii@microsoft.linux.com>
Reviewed-by: Roman Kisel <romank@linux.microsoft.com>
Reviewed-by: Easwar Hariharan <eahariha@linux.microsoft.com>
Reviewed-by: Tianyu Lan <tiala@microsoft.com>
Link: https://lore.kernel.org/r/1741980536-3865-7-git-send-email-nunodasneves@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <1741980536-3865-7-git-send-email-nunodasneves@linux.microsoft.com>

arch/arm64/hyperv/mshyperv.c
arch/x86/kernel/cpu/mshyperv.c
drivers/hv/hv_proc.c

index 2265ea5ce5adf2b85f566dfdbea6b93afe3801bc..4e27cc29c79e8e86950025e0953b3e85dbd5abbb 100644 (file)
@@ -26,6 +26,7 @@ int hv_get_hypervisor_version(union hv_hypervisor_version_info *info)
 
        return 0;
 }
+EXPORT_SYMBOL_GPL(hv_get_hypervisor_version);
 
 static int __init hyperv_init(void)
 {
index fd285b18d6b4e4b28284f2beb520d40bff87a720..fcd0e066d9bd20dc500dd461d24c1c017d1105f1 100644 (file)
@@ -420,6 +420,7 @@ int hv_get_hypervisor_version(union hv_hypervisor_version_info *info)
 
        return 0;
 }
+EXPORT_SYMBOL_GPL(hv_get_hypervisor_version);
 
 static void __init ms_hyperv_init_platform(void)
 {
index 605999f10e17efee6bf96c5f5977dc61a97d2c59..7d7ecb6f6137d26b4562f16804912ceb4d7b4fe8 100644 (file)
@@ -107,6 +107,7 @@ free_buf:
        kfree(counts);
        return ret;
 }
+EXPORT_SYMBOL_GPL(hv_call_deposit_pages);
 
 int hv_call_add_logical_proc(int node, u32 lp_index, u32 apic_id)
 {
@@ -191,4 +192,4 @@ int hv_call_create_vp(int node, u64 partition_id, u32 vp_index, u32 flags)
 
        return ret;
 }
-
+EXPORT_SYMBOL_GPL(hv_call_create_vp);