diff options
author | Marc Zyngier <maz@kernel.org> | 2019-12-13 13:25:25 +0000 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2020-01-23 10:38:14 +0000 |
commit | 0e20f5e25556c00ee813469d373b00abcf298708 (patch) | |
tree | 3503fff95c58e755c203374e037fc445f1c678cf /virt/kvm/arm/mmu.c | |
parent | KVM: arm/arm64: vgic: Drop the kvm_vgic_register_mmio_region() (diff) | |
download | linux-dev-0e20f5e25556c00ee813469d373b00abcf298708.tar.xz linux-dev-0e20f5e25556c00ee813469d373b00abcf298708.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | virt/kvm/arm/mmu.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/virt/kvm/arm/mmu.c b/virt/kvm/arm/mmu.c index e3ad95013192..a4fa81d75e84 100644 --- a/virt/kvm/arm/mmu.c +++ b/virt/kvm/arm/mmu.c @@ -14,7 +14,6 @@ #include <asm/cacheflush.h> #include <asm/kvm_arm.h> #include <asm/kvm_mmu.h> -#include <asm/kvm_mmio.h> #include <asm/kvm_ras.h> #include <asm/kvm_asm.h> #include <asm/kvm_emulate.h> |