mbox series

[0/5] KVM: arm64: Remove the target table

Message ID 20200622113317.20477-1-james.morse@arm.com (mailing list archive)
Headers show
Series KVM: arm64: Remove the target table | expand

Message

James Morse June 22, 2020, 11:33 a.m. UTC
Hi guys,

KVM's target_table indirection is a relic from 32bit where different
CPUs had different reset values for ACTLR. All 64bit CPUs have the
same behaviour here, but we support different targets, that all map
to the same behaviour.

This series removes the indirection and the fiddly handling of two
tables.

We still need to offer user-space the preferred target, and check
it selects a supported target, but we no longer do anything with
the information.

This series based on v5.8-rc1, and can be retrieved from:
git://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git kvm-arm64/kill_target_table/v1


Thanks,

James Morse (5):
  KVM: arm64: Drop the target_table[] indirection
  KVM: arm64: Tolerate an empty target_table list
  KVM: arm64: Move ACTLR_EL1 emulation to the sys_reg_descs array
  KVM: arm64: Remove target_table from exit handlers
  KVM: arm64: Remove the target table

 arch/arm64/include/asm/kvm_coproc.h  |   8 --
 arch/arm64/kvm/Makefile              |   2 +-
 arch/arm64/kvm/sys_regs.c            | 177 +++++++++------------------
 arch/arm64/kvm/sys_regs_generic_v8.c |  96 ---------------
 4 files changed, 56 insertions(+), 227 deletions(-)
 delete mode 100644 arch/arm64/kvm/sys_regs_generic_v8.c

Comments

Marc Zyngier July 5, 2020, 5:51 p.m. UTC | #1
On Mon, 22 Jun 2020 11:33:12 +0000, James Morse wrote:
> KVM's target_table indirection is a relic from 32bit where different
> CPUs had different reset values for ACTLR. All 64bit CPUs have the
> same behaviour here, but we support different targets, that all map
> to the same behaviour.
> 
> This series removes the indirection and the fiddly handling of two
> tables.
> 
> [...]

Applied to kvm-arm64/next-5.9, thanks!

[1/5] KVM: arm64: Drop the target_table[] indirection
      commit: 6b33e0d64f8501b51d32069e08d3ed68c58c25b4
[2/5] KVM: arm64: Tolerate an empty target_table list
      commit: 04343ae312ef0d80d601ea1b784b6b039ae9c82a
[3/5] KVM: arm64: Move ACTLR_EL1 emulation to the sys_reg_descs array
      commit: af4738290d9dfe3787f60e40f709a4f78a115943
[4/5] KVM: arm64: Remove target_table from exit handlers
      commit: dcaffa7bf911578a6d69165d712501996c587fbe
[5/5] KVM: arm64: Remove the target table
      commit: 750ed56693803e992ed09ac9c46e07226dd4d350

Cheers,

	M.