]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd8d5894884f331a9396e485cccf35ba6c96829eb
tree9d95b4a64ab124d14f768fbf1da97c02d6f3f94f
parent6e9d14fcf0f6b3a9bac195af01ee0799dca5a843
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