summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/mshyperv.h
diff options
context:
space:
mode:
authorK. Y. Srinivasan2017-01-19 19:51:57 +0100
committerGreg Kroah-Hartman2017-01-20 14:52:48 +0100
commit7297ff0ca9db7e2d830841035b95d8b94b529142 (patch)
treeda73c22e337d06e906c74374a9c63f7b987adb29 /arch/x86/include/asm/mshyperv.h
parentDrivers: hv: vmbus: Define APIs to manipulate the synthetic interrupt controller (diff)
downloadkernel-qcow2-linux-7297ff0ca9db7e2d830841035b95d8b94b529142.tar.gz
kernel-qcow2-linux-7297ff0ca9db7e2d830841035b95d8b94b529142.tar.xz
kernel-qcow2-linux-7297ff0ca9db7e2d830841035b95d8b94b529142.zip
Drivers: hv: vmbus: Define an API to retrieve virtual processor index
As part of cleaning up architecture specific code, define an API to retrieve the virtual procesor index. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/include/asm/mshyperv.h')
-rw-r--r--arch/x86/include/asm/mshyperv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/mshyperv.h b/arch/x86/include/asm/mshyperv.h
index 1ea19a57cf4c..2d40bfc57e7a 100644
--- a/arch/x86/include/asm/mshyperv.h
+++ b/arch/x86/include/asm/mshyperv.h
@@ -149,6 +149,8 @@ static inline void vmbus_signal_eom(struct hv_message *msg, u32 old_msg_type)
#define hv_get_synic_state(val) rdmsrl(HV_X64_MSR_SCONTROL, val)
#define hv_set_synic_state(val) wrmsrl(HV_X64_MSR_SCONTROL, val)
+#define hv_get_vp_index(index) rdmsrl(HV_X64_MSR_VP_INDEX, index)
+
void hyperv_callback_vector(void);
#ifdef CONFIG_TRACING
#define trace_hyperv_callback_vector hyperv_callback_vector