OSDN Git Service

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)
commit0e20f5e25556c00ee813469d373b00abcf298708
tree3503fff95c58e755c203374e037fc445f1c678cf
parent31a9b0b11b1c5264433a4fa1e1e1e8aa03954b1c
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