]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/x86/xen/enlighten.c
xen/smp/pvhvm: Don't point per_cpu(xen_vpcu, 33 and larger) to shared_info
[karo-tx-linux.git] / arch / x86 / xen / enlighten.c
index a2babdb13a266c2203f734559f45392d3b9c355e..31e19f97fb5aed87e56f41f86ec98b7552bc0b6b 100644 (file)
@@ -1646,6 +1646,9 @@ void __ref xen_hvm_init_shared_info(void)
         * online but xen_hvm_init_shared_info is run at resume time too and
         * in that case multiple vcpus might be online. */
        for_each_online_cpu(cpu) {
+               /* Leave it to be NULL. */
+               if (cpu >= MAX_VIRT_CPUS)
+                       continue;
                per_cpu(xen_vcpu, cpu) = &HYPERVISOR_shared_info->vcpu_info[cpu];
        }
 }