KVM: arm64: Use the appropriate feature trap register for SVE at EL2 setup
authorFuad Tabba <tabba@google.com>
Mon, 24 Jul 2023 12:38:24 +0000 (13:38 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Wed, 26 Jul 2023 17:08:29 +0000 (17:08 +0000)
commit45a3681a10ff1732fcd7a177fbf1f9ceeaffd7c9
tree2f5ae5caa2ae02768460d1c0c89dacb7c1ba4f22
parentce92232614a5fb16992de8eb85bba7cb90772a1f
KVM: arm64: Use the appropriate feature trap register for SVE at EL2 setup

Use the architectural feature trap/control register that
corresponds to the current KVM mode, i.e., CPTR_EL2 or CPACR_EL1,
when setting up SVE feature traps.

Signed-off-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230724123829.2929609-4-tabba@google.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/el2_setup.h