KVM: arm64: Use generated FGT RES0 bits instead of specifying them
authorFuad Tabba <tabba@google.com>
Thu, 14 Dec 2023 10:01:52 +0000 (10:01 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 18 Dec 2023 11:25:51 +0000 (11:25 +0000)
commit9ff67dd26a9eed9d73dc23aa63e87b16b3382184
tree50161275c8caa70b4d5ebd319a819057b7c1c145
parent6c4abbea6d9c09df448b43624074a208c38e68e0
KVM: arm64: Use generated FGT RES0 bits instead of specifying them

Now that all FGT fields are accounted for and represented, use
the generated value instead of manually specifying them.

For __HFGWTR_EL2_RES0, however, there is no generated value. Its
fields are subset of HFGRTR_EL2, with the remaining being RES0.
Therefore, add a mask that represents the HFGRTR_EL2 only bits
and define __HFGWTR_EL2_* using those and the __HFGRTR_EL2_*
fields.

No functional change intended.

Signed-off-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20231214100158.2305400-13-tabba@google.com
arch/arm64/include/asm/kvm_arm.h