KVM: arm64: vgic-its: Return -ENXIO to invalid KVM_DEV_ARM_VGIC_GRP_CTRL attrs
David Woodhouse
dwmw2 at infradead.org
Tue Jun 24 02:01:38 PDT 2025
On Tue, 2025-06-24 at 09:25 +0200, Eric Auger wrote:
> Hi David,
>
> On 6/23/25 3:22 PM, David Woodhouse wrote:
> > From: David Woodhouse <dwmw at amazon.co.uk>
> >
> > 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 at amazon.co.uk>
>
> In the corresponding doc (virt/kvm/devices/arm-vgic-its.rst)
> it is said about possible returned values:
> -ENXIO ITS not properly configured as required prior to setting
> this attribute
> which does not exactly match your situation. Shouldn't we also update
> the doc or change the returned value?
Hi Eric, thanks for looking at this.
I think this is OK because the -ENXIO return is covered by the high-
level description of KVM_[GS]ET_DEVICE_ATTR in virt/kvm/api.rst:
Errors:
===== =============================================================
ENXIO The group or attribute is unknown/unsupported for this device
or hardware support is missing.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5069 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20250624/f264918c/attachment.p7s>
More information about the linux-arm-kernel
mailing list