drivers:hv: Export a function that maps Linux CPU num onto Hyper-V proc num
authorJake Oshins <jakeo@microsoft.com>
Tue, 15 Dec 2015 00:01:39 +0000 (16:01 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Dec 2015 03:12:21 +0000 (19:12 -0800)
commit619848bd074343ff2bdeeafca0be39748f6da372
tree1859ac19a893f8db5910b3219a4ffe66e8f5de40
parent17efbee8ba02ef00d3b270998978f8a1a90f1d92
drivers:hv: Export a function that maps Linux CPU num onto Hyper-V proc num

This patch exposes the mapping between Linux CPU number and Hyper-V virtual
processor number.  This is necessary because the hypervisor needs to know which
virtual processors to target when making a mapping in the Interrupt Redirection
Table in the I/O MMU.

Signed-off-by: Jake Oshins <jakeo@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/vmbus_drv.c
include/linux/hyperv.h