Skip to content

Commit 4530256

Browse files
dwmw2oupton
authored andcommitted
KVM: arm64: vgic-its: Return -ENXIO to invalid KVM_DEV_ARM_VGIC_GRP_CTRL attrs
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 <[email protected]> Reviewed-by: Eric Auger <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Oliver Upton <[email protected]>
1 parent 86731a2 commit 4530256

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/arm64/kvm/vgic/vgic-its.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2694,6 +2694,9 @@ static int vgic_its_ctrl(struct kvm *kvm, struct vgic_its *its, u64 attr)
26942694
case KVM_DEV_ARM_ITS_RESTORE_TABLES:
26952695
ret = abi->restore_tables(its);
26962696
break;
2697+
default:
2698+
ret = -ENXIO;
2699+
break;
26972700
}
26982701

26992702
mutex_unlock(&its->its_lock);

0 commit comments

Comments
 (0)