Commit 5ab6dce3 authored by Fuad Tabba's avatar Fuad Tabba Committed by Will Deacon
Browse files

UPSTREAM: KVM: arm64: Advertise ID_AA64PFR0_EL1.CSV2/3 to protected VMs



[ Upstream commit e8162521 ]

The existing pKVM code attempts to advertise CSV2/3 using values
initialized to 0, but never set. To advertise CSV2/3 to protected
guests, pass the CSV2/3 values to hyp when initializing hyp's
view of guests' ID_AA64PFR0_EL1.

Similar to non-protected KVM, these are system-wide, rather than
per cpu, for simplicity.

Fixes: 6c30bfb1 ("KVM: arm64: Add handlers for protected VM System Registers")
Signed-off-by: default avatarFuad Tabba <tabba@google.com>
Link: https://lore.kernel.org/r/20230404152321.413064-1-tabba@google.com


Signed-off-by: default avatarOliver Upton <oliver.upton@linux.dev>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
(cherry picked from commit 24da5765)
Signed-off-by: default avatarWill Deacon <willdeacon@google.com>
Bug: 278750296
Change-Id: I7dae6e4daed6bc04097b6ea182647e790fa55ca2
parent 096d4582
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment