KVM: arm64: switch HCRX_EL2 between host and guest
authorKristina Martsenko <kristina.martsenko@arm.com>
Tue, 9 May 2023 14:22:27 +0000 (15:22 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 5 Jun 2023 16:05:26 +0000 (17:05 +0100)
commit306b4c9f7120c485607cbbfa1ac3ecec005d8231
tree2f90c27214cd967e44fefac756bb179658eefe54
parentb0c756fe996ac930033882ca56410639e5cad1ec
KVM: arm64: switch HCRX_EL2 between host and guest

Switch the HCRX_EL2 register between host and guest configurations, in
order to enable different features in the host and guest.

Now that there are separate guest flags, we can also remove SMPME from
the host flags, as SMPME is used for virtualizing SME priorities and has
no use in the host.

Signed-off-by: Kristina Martsenko <kristina.martsenko@arm.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Acked-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20230509142235.3284028-4-kristina.martsenko@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/kvm_arm.h
arch/arm64/kvm/hyp/include/hyp/switch.h