aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hv/hyperv_vmbus.h
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2012-12-01 09:46:47 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-17 14:34:37 -0500
commit917ea427c78670958488f7f304e4629c325969a4 (patch)
tree06784d2cd61f6505b2222d2fdfbfeec2b3fb066a /drivers/hv/hyperv_vmbus.h
parent3be77774017fc3c7dd0b434265dfa417aac23545 (diff)
Drivers: hv: Setup a mapping for Hyper-V's notion cpu ID
On win8 (ws2012), incoming vmbus interrupt load can be spread across all available VCPUs in the guest. On a per-channel basis, the interrupts can be bound to specific CPUs. The Linux notion of cpu ID may be different from that of the hypervisor's. Setup a mapping structure. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/hyperv_vmbus.h')
-rw-r--r--drivers/hv/hyperv_vmbus.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h
index 1bc7500fb84c..6bbc197cbdfa 100644
--- a/drivers/hv/hyperv_vmbus.h
+++ b/drivers/hv/hyperv_vmbus.h
@@ -502,6 +502,16 @@ struct hv_context {
502 502
503 void *synic_message_page[NR_CPUS]; 503 void *synic_message_page[NR_CPUS];
504 void *synic_event_page[NR_CPUS]; 504 void *synic_event_page[NR_CPUS];
505 /*
506 * Hypervisor's notion of virtual processor ID is different from
507 * Linux' notion of CPU ID. This information can only be retrieved
508 * in the context of the calling CPU. Setup a map for easy access
509 * to this information:
510 *
511 * vp_index[a] is the Hyper-V's processor ID corresponding to
512 * Linux cpuid 'a'.
513 */
514 u32 vp_index[NR_CPUS];
505}; 515};
506 516
507extern struct hv_context hv_context; 517extern struct hv_context hv_context;