KVM: arm64: Move vcpu PC/Exception flags to the input flag set
authorMarc Zyngier <maz@kernel.org>
Sat, 28 May 2022 11:38:18 +0000 (12:38 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 10 Jun 2022 08:54:34 +0000 (09:54 +0100)
commit699bb2e0c6f3796549dabac329501df7ffd99439
tree9d95b4a64ab124d14f768fbf1da97c02d6f3f94f
parent4c0680d394d8a77868049931101e4a59372346b5
KVM: arm64: Move vcpu PC/Exception flags to the input flag set

The PC update flags (which also deal with exception injection)
is one of the most complicated use of the flag we have. Make it
more fool prof by:

- moving it over to the new accessors and assign it to the
  input flag set

- turn the combination of generic ELx flags with another flag
  indicating the target EL itself into an explicit set of
  flags for each EL and vector combination

- add a new accessor to pend the exception

This is otherwise a pretty straightformward conversion.

Reviewed-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_emulate.h
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/arm.c
arch/arm64/kvm/hyp/exception.c
arch/arm64/kvm/hyp/nvhe/sys_regs.c
arch/arm64/kvm/inject_fault.c