summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/mshyperv.h
diff options
context:
space:
mode:
authorSaurabh Sengar <ssengar@linux.microsoft.com>2023-04-11 07:55:30 +0200
committerWei Liu <wei.liu@kernel.org>2023-04-18 19:29:52 +0200
commit0a7a00580a4fad9a6cd28c2d825e0e5ae917e59e (patch)
treed4d330f306c930c5a44efb10692e5f340b48d2bd /arch/x86/include/asm/mshyperv.h
parentx86/hyperv: Add VTL specific structs and hypercalls (diff)
downloadlinux-0a7a00580a4fad9a6cd28c2d825e0e5ae917e59e.tar.xz
linux-0a7a00580a4fad9a6cd28c2d825e0e5ae917e59e.zip
x86/hyperv: Make hv_get_nmi_reason public
Move hv_get_nmi_reason to .h file so it can be used in other modules as well. Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com> Reviewed-by: Michael Kelley <mikelley@microsoft.com> Link: https://lore.kernel.org/r/1681192532-15460-4-git-send-email-ssengar@linux.microsoft.com Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'arch/x86/include/asm/mshyperv.h')
-rw-r--r--arch/x86/include/asm/mshyperv.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/include/asm/mshyperv.h b/arch/x86/include/asm/mshyperv.h
index e3cef98a0142..67f8386c1775 100644
--- a/arch/x86/include/asm/mshyperv.h
+++ b/arch/x86/include/asm/mshyperv.h
@@ -29,6 +29,11 @@ typedef int (*hyperv_fill_flush_list_func)(
void hyperv_vector_handler(struct pt_regs *regs);
+static inline unsigned char hv_get_nmi_reason(void)
+{
+ return 0;
+}
+
#if IS_ENABLED(CONFIG_HYPERV)
extern int hyperv_init_cpuhp;