All pKVM core patches destined for upstream and based on Linux 6.4
KVM: arm64: Fix sparse __percpu warning

Force the cast to silence the warning.

We don't have a proper way to dynamically allocate memory at EL2,
and hence no proper way to dynamically allocate percpu fields.
Instead, we rely on memory donated from the host and index it by

Reported-by: Todd Kjos <>
Change-Id: Ib8b0565ba9550b3f6d8932b24f8f9f69de9168d5
Signed-off-by: Fuad Tabba <>
2 files changed