KVM: arm64: Simplify argument passing to vgic_uaccess_[read|write]
authorEric Auger <eric.auger@redhat.com>
Mon, 5 Apr 2021 16:39:38 +0000 (18:39 +0200)
committerMarc Zyngier <maz@kernel.org>
Tue, 6 Apr 2021 13:51:38 +0000 (14:51 +0100)
commitda3853097679022e14a2d125983f11a67fd2f96a
tree85ecadc19feec8380e5d5d9252403a044fcd644c
parent298c41b8fa1e02c5a35e2263d138583220ab6094
KVM: arm64: Simplify argument passing to vgic_uaccess_[read|write]

vgic_uaccess() takes a struct vgic_io_device argument, converts it
to a struct kvm_io_device and passes it to the read/write accessor
functions, which convert it back to a struct vgic_io_device.
Avoid the indirection by passing the struct vgic_io_device argument
directly to vgic_uaccess_{read,write}.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210405163941.510258-7-eric.auger@redhat.com
arch/arm64/kvm/vgic/vgic-mmio.c