summaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorSunil Muthuswamy2018-07-28 23:58:47 +0200
committerGreg Kroah-Hartman2018-07-29 08:09:56 +0200
commit9d9c9656871cd9fc1d03a2b4f47a278d54c6d03d (patch)
treea6048c32f581e022c461ff470b5800a518149cd4 /arch/x86/include
parentDrivers: hv: vmbus: Fix the issue with freeing up hv_ctl_table_hdr (diff)
downloadkernel-qcow2-linux-9d9c9656871cd9fc1d03a2b4f47a278d54c6d03d.tar.gz
kernel-qcow2-linux-9d9c9656871cd9fc1d03a2b4f47a278d54c6d03d.tar.xz
kernel-qcow2-linux-9d9c9656871cd9fc1d03a2b4f47a278d54c6d03d.zip
Drivers: hv: vmbus: Get rid of MSR access from vmbus_drv.c
Get rid of ISA specific code from vmus_drv.c which is common code. Fixes: 81b18bce48af ("Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic") Signed-off-by: Sunil Muthuswamy <sunilmut@microsoft.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/mshyperv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/include/asm/mshyperv.h b/arch/x86/include/asm/mshyperv.h
index 406da8d159e3..4d82ad347b75 100644
--- a/arch/x86/include/asm/mshyperv.h
+++ b/arch/x86/include/asm/mshyperv.h
@@ -97,6 +97,9 @@ static inline void vmbus_signal_eom(struct hv_message *msg, u32 old_msg_type)
#define hv_set_synint_state(int_num, val) \
wrmsrl(HV_X64_MSR_SINT0 + int_num, val)
+#define hv_get_crash_ctl(val) \
+ rdmsrl(HV_X64_MSR_CRASH_CTL, val)
+
void hyperv_callback_vector(void);
void hyperv_reenlightenment_vector(void);
#ifdef CONFIG_TRACING