Juergen Gross 602aa0efcf x86/xen: fix percpu vcpu_info allocation
[ Upstream commit db2832309a82b9acc4b8cc33a1831d36507ec13e ]

Today the percpu struct vcpu_info is allocated via DEFINE_PER_CPU(),
meaning that it could cross a page boundary. In this case registering
it with the hypervisor will fail, resulting in a panic().

This can easily be fixed by using DEFINE_PER_CPU_ALIGNED() instead,
as struct vcpu_info is guaranteed to have a size of 64 bytes, matching
the cache line size of x86 64-bit processors (Xen doesn't support
32-bit processors).

Fixes: 5ead97c84fa7 ("xen: Core Xen implementation")
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.con>
Link: https://lore.kernel.org/r/20231124074852.25161-1-jgross@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-12-08 08:52:25 +01:00
..
2023-08-09 12:00:46 -07:00
2023-09-19 07:04:49 +02:00
2023-09-19 07:04:49 +02:00
2023-09-19 07:04:49 +02:00
2022-03-25 14:22:53 -05:00
2023-08-29 20:32:10 -07:00
2023-06-26 07:47:11 +02:00
2023-06-05 21:11:08 +02:00
2023-03-14 15:20:51 +01:00
2023-07-04 06:57:38 +02:00