]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: simplify vgic_find_range() and callers
authorAndre Przywara <andre.przywara@arm.com>
Thu, 26 Mar 2015 14:39:33 +0000 (14:39 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 26 Mar 2015 21:43:14 +0000 (21:43 +0000)
commitfbf1d3276e8721637a86392107276f85e08c98fa
tree3152ce85a88129a5e29290aefdffc1772553e07d
parent82343e4025c0534082e4b6f40ab91dd83ae0ea7a
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>
virt/kvm/arm/vgic-v2-emul.c
virt/kvm/arm/vgic.c
virt/kvm/arm/vgic.h