]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: Cleanup MMIO handling
authorMarc Zyngier <maz@kernel.org>
Fri, 13 Dec 2019 13:25:25 +0000 (13:25 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 23 Jan 2020 10:38:14 +0000 (10:38 +0000)
commit878d2d55883a30402e145a928179a72144d20f7e
tree3503fff95c58e755c203374e037fc445f1c678cf
parentbc95674434895bc40a71dbdb0f1f6c53935b439f
KVM: arm/arm64: Cleanup MMIO handling

Our MMIO handling is a bit odd, in the sense that it uses an
intermediate per-vcpu structure to store the various decoded
information that describe the access.

But the same information is readily available in the HSR/ESR_EL2
field, and we actually use this field to populate the structure.

Let's simplify the whole thing by getting rid of the superfluous
structure and save a (tiny) bit of space in the vcpu structure.

[32bit fix courtesy of Olof Johansson <olof@lixom.net>]
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm/include/asm/kvm_emulate.h
arch/arm/include/asm/kvm_host.h
arch/arm/include/asm/kvm_hyp.h
arch/arm/include/asm/kvm_mmio.h [deleted file]
arch/arm64/include/asm/kvm_emulate.h
arch/arm64/include/asm/kvm_host.h
arch/arm64/include/asm/kvm_mmio.h [deleted file]
virt/kvm/arm/mmio.c
virt/kvm/arm/mmu.c