Commit 73e072e8 authored by Fuad Tabba's avatar Fuad Tabba Committed by Will Deacon
Browse files

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



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>
(cherry picked from commit e8162521)
[willdeacon@: fixed_config.h has been moved into kvm_pkvm.h]
Signed-off-by: default avatarWill Deacon <willdeacon@google.com>
Bug: 278750073
Change-Id: I27821a28bcde0dbce3d45bac6cf4de20dcf299f9
parent 15e99e4b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment