]> git.baikalelectronics.ru Git - kernel.git/commit
x86/hyper-v: Fix the circular dependency in IPI enlightenment
authorK. Y. Srinivasan <kys@microsoft.com>
Tue, 3 Jul 2018 23:01:55 +0000 (16:01 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 6 Jul 2018 10:32:59 +0000 (12:32 +0200)
commit2979e5f2b33b4b032ec7935890474acb75a26ee7
tree6d652266f95cb7b09229ffe476a1572adf95a1f8
parent37000e74c0e0b1a45c0a00368f1c3e6240743245
x86/hyper-v: Fix the circular dependency in IPI enlightenment

The IPI hypercalls depend on being able to map the Linux notion of CPU ID
to the hypervisor's notion of the CPU ID. The array hv_vp_index[] provides
this mapping. Code for populating this array depends on the IPI functionality.
Break this circular dependency.

[ tglx: Use a proper define instead of '-1' with a u32 variable as pointed
   out by Vitaly ]

Fixes: a7fd7dec36b6 ("X86/Hyper-V: Enable IPI enlightenments")
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Michael Kelley <mikelley@microsoft.com>
Cc: gregkh@linuxfoundation.org
Cc: devel@linuxdriverproject.org
Cc: olaf@aepfle.de
Cc: apw@canonical.com
Cc: jasowang@redhat.com
Cc: hpa@zytor.com
Cc: sthemmin@microsoft.com
Cc: Michael.H.Kelley@microsoft.com
Cc: vkuznets@redhat.com
Link: https://lkml.kernel.org/r/20180703230155.15160-1-kys@linuxonhyperv.com
arch/x86/hyperv/hv_apic.c
arch/x86/hyperv/hv_init.c
arch/x86/include/asm/mshyperv.h