aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/linux.c
diff options
context:
space:
mode:
authorJuergen Gross <[email protected]>2023-11-24 07:48:52 +0000
committerJuergen Gross <[email protected]>2023-11-28 11:47:11 +0000
commitdb2832309a82b9acc4b8cc33a1831d36507ec13e (patch)
tree372b03193c3333e5cef2b001c67adcca0944c189 /tools/testing/radix-tree/linux.c
parentarm/xen: fix xen_vcpu_info allocation alignment (diff)
downloadkernel-db2832309a82b9acc4b8cc33a1831d36507ec13e.tar.gz
kernel-db2832309a82b9acc4b8cc33a1831d36507ec13e.zip
x86/xen: fix percpu vcpu_info allocation
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 <[email protected]> Reviewed-by: Boris Ostrovsky <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Juergen Gross <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/linux.c')
0 files changed, 0 insertions, 0 deletions