Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Drivers: hv: Export some symbols for mshv_vtl

MSHV_VTL driver is going to be introduced, which is supposed to
provide interface for Virtual Machine Monitors (VMMs) to control
Virtual Trust Level (VTL). Export the symbols needed
to make it work (vmbus_isr, hv_context and hv_post_message).

Co-developed-by: Roman Kisel <romank@linux.microsoft.com>
Signed-off-by: Roman Kisel <romank@linux.microsoft.com>
Co-developed-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202506110544.q0NDMQVc-lkp@intel.com/
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Signed-off-by: Naman Jain <namjain@linux.microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>

authored by

Naman Jain and committed by
Wei Liu
cffe9f58 796ef5a7

+7 -1
+3
drivers/hv/hv.c
··· 18 18 #include <linux/clockchips.h> 19 19 #include <linux/delay.h> 20 20 #include <linux/interrupt.h> 21 + #include <linux/export.h> 21 22 #include <clocksource/hyperv_timer.h> 22 23 #include <asm/mshyperv.h> 23 24 #include <linux/set_memory.h> ··· 26 25 27 26 /* The one and only */ 28 27 struct hv_context hv_context; 28 + EXPORT_SYMBOL_FOR_MODULES(hv_context, "mshv_vtl"); 29 29 30 30 /* 31 31 * hv_init - Main initialization routine. ··· 106 104 107 105 return hv_result(status); 108 106 } 107 + EXPORT_SYMBOL_FOR_MODULES(hv_post_message, "mshv_vtl"); 109 108 110 109 static int hv_alloc_page(void **page, bool decrypt, const char *note) 111 110 {
+1
drivers/hv/hyperv_vmbus.h
··· 33 33 */ 34 34 #define HV_UTIL_NEGO_TIMEOUT 55 35 35 36 + void vmbus_isr(void); 36 37 37 38 /* Definitions for the monitored notification facility */ 38 39 union hv_monitor_trigger_group {
+3 -1
drivers/hv/vmbus_drv.c
··· 36 36 #include <linux/syscore_ops.h> 37 37 #include <linux/dma-map-ops.h> 38 38 #include <linux/pci.h> 39 + #include <linux/export.h> 39 40 #include <clocksource/hyperv_timer.h> 40 41 #include <asm/mshyperv.h> 41 42 #include "hyperv_vmbus.h" ··· 1350 1349 } 1351 1350 } 1352 1351 1353 - static void vmbus_isr(void) 1352 + void vmbus_isr(void) 1354 1353 { 1355 1354 struct hv_per_cpu_context *hv_cpu 1356 1355 = this_cpu_ptr(hv_context.cpu_context); ··· 1363 1362 1364 1363 add_interrupt_randomness(vmbus_interrupt); 1365 1364 } 1365 + EXPORT_SYMBOL_FOR_MODULES(vmbus_isr, "mshv_vtl"); 1366 1366 1367 1367 static irqreturn_t vmbus_percpu_isr(int irq, void *dev_id) 1368 1368 {