]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drivers:hv: Export a function that maps Linux CPU num onto Hyper-V proc num
authorNick Meier <nmeier@microsoft.com>
Tue, 15 Dec 2015 00:01:39 +0000 (16:01 -0800)
committerDhaval Giani <dhaval.giani@oracle.com>
Tue, 7 Mar 2017 23:44:18 +0000 (18:44 -0500)
commite41949b8d26aec931c18450723b782b4fd433c1c
tree6544ec422a0c0904fc9bc42e49eed06674d3f583
parentc0c9d5e2afad8ff121882055c5f8cc7968c82206
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>
Orabug: 25507635
(cherry picked from commit 619848bd074343ff2bdeeafca0be39748f6da372)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/hv/vmbus_drv.c
include/linux/hyperv.h