Commit d4474bdd authored by Fuad Tabba's avatar Fuad Tabba
Browse files

ANDROID: KVM: arm64: Consolidate allowed and restricted guest cpu feature checks



The definitions for allowed and restricted cpu features for
protected guests, which are based on feature registers were
defined and checked for separately. This resulted in an
inconsistency when checking if pointer authentication is allowed,
which resulted in trapping it for protected guests despite it
being allowed.

To avoid this happening in the future, consolidate the
definitions into one. Use that new definition to construct the
guest view of the feature registers for consistency.

Bug: 278749606
Change-Id: Ia290b98a44ca533578add5ab4ca06888eb62e507
Fixes: 6c30bfb1 ("KVM: arm64: Add handlers for protected VM System Registers")
Reported-by: default avatarMostafa Saleh <smostafa@google.com>
Signed-off-by: default avatarFuad Tabba <tabba@google.com>
parent c7b8a41d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment