Commit 51dd2eb9 authored by Alexandru Elisei's avatar Alexandru Elisei Committed by Marc Zyngier

KVM: arm64: Match PMU error code descriptions with error conditions

Update the description of the PMU KVM_{GET, SET}_DEVICE_ATTR error codes
to be a better match for the code that returns them.
Signed-off-by: default avatarAlexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Reviewed-by: default avatarAndrew Jones <drjones@redhat.com>
Link: https://lore.kernel.org/r/20200924123731.268177-3-alexandru.elisei@arm.com
parent af130d0a
...@@ -26,8 +26,9 @@ Returns: ...@@ -26,8 +26,9 @@ Returns:
======= ======================================================== ======= ========================================================
-EBUSY The PMU overflow interrupt is already set -EBUSY The PMU overflow interrupt is already set
-EFAULT Error reading interrupt number -EFAULT Error reading interrupt number
-ENXIO The overflow interrupt not set when attempting to get it -ENXIO PMUv3 not supported or the overflow interrupt not set
-ENODEV PMUv3 not supported when attempting to get it
-ENODEV KVM_ARM_VCPU_PMU_V3 feature missing from VCPU
-EINVAL Invalid PMU overflow interrupt number supplied or -EINVAL Invalid PMU overflow interrupt number supplied or
trying to set the IRQ number without using an in-kernel trying to set the IRQ number without using an in-kernel
irqchip. irqchip.
...@@ -48,8 +49,8 @@ Returns: ...@@ -48,8 +49,8 @@ Returns:
======= ====================================================== ======= ======================================================
-EEXIST Interrupt number already used -EEXIST Interrupt number already used
-ENODEV PMUv3 not supported or GIC not initialized -ENODEV PMUv3 not supported or GIC not initialized
-ENXIO PMUv3 not properly configured or in-kernel irqchip not -ENXIO PMUv3 not supported, missing VCPU feature or interrupt
configured as required prior to calling this attribute number not set
-EBUSY PMUv3 already initialized -EBUSY PMUv3 already initialized
======= ====================================================== ======= ======================================================
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment