diff options
author | Andre Przywara <andre.przywara@arm.com> | 2015-03-26 17:39:33 +0300 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2015-03-27 00:43:14 +0300 |
commit | 9f199d0a0eeb8efb564ff41a6b9f819c4c0285ea (patch) | |
tree | 3152ce85a88129a5e29290aefdffc1772553e07d /virt/kvm/arm/vgic-v2-emul.c | |
parent | cf50a1eb43b98daa181714e40e22c8e5ad5007d6 (diff) | |
download | linux-9f199d0a0eeb8efb564ff41a6b9f819c4c0285ea.tar.xz |
KVM: arm/arm64: simplify vgic_find_range() and callers
The vgic_find_range() function in vgic.c takes a struct kvm_exit_mmio
argument, but actually only used the length field in there. Since we
need to get rid of that structure in that part of the code anyway,
let's rework the function (and it's callers) to pass the length
argument to the function directly.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'virt/kvm/arm/vgic-v2-emul.c')
-rw-r--r-- | virt/kvm/arm/vgic-v2-emul.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/arm/vgic-v2-emul.c b/virt/kvm/arm/vgic-v2-emul.c index ddb3135363d8..1dd183ecf96f 100644 --- a/virt/kvm/arm/vgic-v2-emul.c +++ b/virt/kvm/arm/vgic-v2-emul.c @@ -715,7 +715,7 @@ static int vgic_attr_regs_access(struct kvm_device *dev, default: BUG(); } - r = vgic_find_range(ranges, &mmio, offset); + r = vgic_find_range(ranges, 4, offset); if (unlikely(!r || !r->handle_mmio)) { ret = -ENXIO; |