]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
KVM: arm64: Fix KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION read
authorEric Auger <eric.auger@redhat.com>
Mon, 5 Apr 2021 16:39:34 +0000 (18:39 +0200)
committerMarc Zyngier <maz@kernel.org>
Tue, 6 Apr 2021 13:51:37 +0000 (14:51 +0100)
commit53b16dd6ba5cf64ed147ac3523ec34651d553cb0
treef5775a0bf65e90793d09f511fe3e2f2433154bcd
parentd9b201e99c616001b4a51627820377b293479384
KVM: arm64: Fix KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION read

The doc says:
"The characteristics of a specific redistributor region can
 be read by presetting the index field in the attr data.
 Only valid for KVM_DEV_TYPE_ARM_VGIC_V3"

Unfortunately the existing code fails to read the input attr data.

Fixes: 04c110932225 ("KVM: arm/arm64: Implement KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION")
Cc: stable@vger.kernel.org#v4.17+
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210405163941.510258-3-eric.auger@redhat.com
arch/arm64/kvm/vgic/vgic-kvm-device.c