KVM: arm64: vgic-v3: Use u32 to manage the line level from userspace
authorMarc Zyngier <maz@kernel.org>
Tue, 5 Jul 2022 09:16:44 +0000 (10:16 +0100)
committerMarc Zyngier <maz@kernel.org>
Sun, 17 Jul 2022 10:55:33 +0000 (11:55 +0100)
commit38cf0bb7625a58625efeef9ec944671464ff7430
tree0eee5bb5ce8d55f30863acc1ff43093f98fa082e
parent71c3c7753c722b8b10566dcdf1ff0a2eaf33a9c1
KVM: arm64: vgic-v3: Use u32 to manage the line level from userspace

Despite the userspace ABI clearly defining the bits dealt with by
KVM_DEV_ARM_VGIC_GRP_LEVEL_INFO as a __u32, the kernel uses a u64.

Use a u32 to match the userspace ABI, which will subsequently lead
to some simplifications.

Reviewed-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/vgic/vgic-kvm-device.c
arch/arm64/kvm/vgic/vgic-mmio-v3.c
arch/arm64/kvm/vgic/vgic-mmio.c
arch/arm64/kvm/vgic/vgic-mmio.h
arch/arm64/kvm/vgic/vgic.h