]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
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)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 29 Feb 2016 16:00:16 +0000 (09:00 -0700)
commit05fe60cc9b8b71d3d0d5b8402ae6236995c25338
treeeb87c143446da934330fe09a244bac8b652a9400
parent7acc0f5307a1aba0dcd3d0dbd7a923e0e9714695
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>
(cherry picked from commit 619848bd074343ff2bdeeafca0be39748f6da372)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/hv/vmbus_drv.c
include/linux/hyperv.h