Vitaly Kuznetsov 88e957d6e4 xen: introduce xen_vcpu_id mapping
It may happen that Xen's and Linux's ideas of vCPU id diverge. In
particular, when we crash on a secondary vCPU we may want to do kdump
and unlike plain kexec where we do migrate_to_reboot_cpu() we try
booting on the vCPU which crashed. This doesn't work very well for
PVHVM guests as we have a number of hypercalls where we pass vCPU id
as a parameter. These hypercalls either fail or do something
unexpected.

To solve the issue introduce percpu xen_vcpu_id mapping. ARM and PV
guests get direct mapping for now. Boot CPU for PVHVM guest gets its
id from CPUID. With secondary CPUs it is a bit more
trickier. Currently, we initialize IPI vectors before these CPUs boot
so we can't use CPUID. Use ACPI ids from MADT instead.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
2016-07-25 13:31:16 +01:00
..
2016-06-18 22:57:48 -07:00
2016-05-09 17:41:14 +09:30
2016-03-20 14:37:22 -07:00
2016-05-18 12:48:46 -07:00
2016-04-27 13:55:52 +02:00
2016-06-09 20:49:29 +08:00
2016-03-20 14:37:22 -07:00
2016-03-20 14:37:22 -07:00
2016-04-26 09:50:52 +02:00
2016-03-20 14:37:22 -07:00
2016-05-24 15:50:58 -07:00
2016-03-20 14:37:22 -07:00
2016-07-25 13:31:16 +01:00