]> Git Repo - linux.git/commitdiff
x86/hyper-v: Fix wrong merge conflict resolution
authorK. Y. Srinivasan <[email protected]>
Fri, 20 Jul 2018 03:50:09 +0000 (03:50 +0000)
committerThomas Gleixner <[email protected]>
Fri, 20 Jul 2018 04:56:23 +0000 (06:56 +0200)
When the mapping betwween the Linux notion of CPU ID to the hypervisor's
notion of CPU ID is not initialized, IPI must fall back to the
non-enlightened path.

The recent merge of upstream changes into the hyperv branch resolved a
merge conflict wronly by returning success in that case, which results in
the IPI not being sent at all. Fix it up.

Fixes: 8f63e9230dec ("Merge branch 'x86/urgent' into x86/hyperv")
Reported-by: Michael Kelley <[email protected]>
Signed-off-by: K. Y. Srinivasan <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
arch/x86/hyperv/hv_apic.c

index 0c3c9f8fee77bbeaf2db91072b32b3c70d9205ee..5b0f613428c252291379e9bbb7cc664c929ce07f 100644 (file)
@@ -168,7 +168,7 @@ static bool __send_ipi_mask(const struct cpumask *mask, int vector)
        for_each_cpu(cur_cpu, mask) {
                vcpu = hv_cpu_number_to_vp_number(cur_cpu);
                if (vcpu == VP_INVAL)
-                       return true;
+                       return false;
 
                /*
                 * This particular version of the IPI hypercall can
This page took 0.053519 seconds and 4 git commands to generate.