Drivers: hv: Setup a mapping for Hyper-V's notion cpu ID
[profile/ivi/kernel-x86-ivi.git] / drivers / hv / hyperv_vmbus.h
index 1bc7500..6bbc197 100644 (file)
@@ -502,6 +502,16 @@ struct hv_context {
 
        void *synic_message_page[NR_CPUS];
        void *synic_event_page[NR_CPUS];
+       /*
+        * Hypervisor's notion of virtual processor ID is different from
+        * Linux' notion of CPU ID. This information can only be retrieved
+        * in the context of the calling CPU. Setup a map for easy access
+        * to this information:
+        *
+        * vp_index[a] is the Hyper-V's processor ID corresponding to
+        * Linux cpuid 'a'.
+        */
+       u32 vp_index[NR_CPUS];
 };
 
 extern struct hv_context hv_context;