]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
KVM: arm64: vgic-its: Return -ENXIO to invalid KVM_DEV_ARM_VGIC_GRP_CTRL attrs
authorDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 23 Jun 2025 13:22:52 +0000 (15:22 +0200)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 24 Jul 2025 06:33:52 +0000 (23:33 -0700)
A preliminary version of a hack to invoke unmap_all_vpes() from an ioctl
didn't work very well. We eventually determined this was because we were
invoking it on the wrong file descriptor, but not getting an error.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Link: https://lore.kernel.org/r/bbbddd56135399baf699bc46ffb6e7f08d9f8c9f.camel@infradead.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/vgic/vgic-its.c

index 534049c7c94b26b80d0ff349a5486cd0d1f560f0..b34f8976c9cc5fd965298252539b70ab7a5607c3 100644 (file)
@@ -2694,6 +2694,9 @@ static int vgic_its_ctrl(struct kvm *kvm, struct vgic_its *its, u64 attr)
        case KVM_DEV_ARM_ITS_RESTORE_TABLES:
                ret = abi->restore_tables(its);
                break;
+       default:
+               ret = -ENXIO;
+               break;
        }
 
        mutex_unlock(&its->its_lock);