Skip to content

Commit 21050f6

Browse files
NunoDasNevesliuw
authored andcommitted
Drivers: hv: Export some functions for use by root partition module
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>
1 parent 4ee23f3 commit 21050f6

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

arch/arm64/hyperv/mshyperv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ int hv_get_hypervisor_version(union hv_hypervisor_version_info *info)
2626

2727
return 0;
2828
}
29+
EXPORT_SYMBOL_GPL(hv_get_hypervisor_version);
2930

3031
static int __init hyperv_init(void)
3132
{

arch/x86/kernel/cpu/mshyperv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ int hv_get_hypervisor_version(union hv_hypervisor_version_info *info)
420420

421421
return 0;
422422
}
423+
EXPORT_SYMBOL_GPL(hv_get_hypervisor_version);
423424

424425
static void __init ms_hyperv_init_platform(void)
425426
{

drivers/hv/hv_proc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ int hv_call_deposit_pages(int node, u64 partition_id, u32 num_pages)
107107
kfree(counts);
108108
return ret;
109109
}
110+
EXPORT_SYMBOL_GPL(hv_call_deposit_pages);
110111

111112
int hv_call_add_logical_proc(int node, u32 lp_index, u32 apic_id)
112113
{
@@ -191,4 +192,4 @@ int hv_call_create_vp(int node, u64 partition_id, u32 vp_index, u32 flags)
191192

192193
return ret;
193194
}
194-
195+
EXPORT_SYMBOL_GPL(hv_call_create_vp);

0 commit comments

Comments
 (0)