aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Elisei <[email protected]>2020-09-24 13:37:30 +0100
committerMarc Zyngier <[email protected]>2020-09-29 14:26:38 +0100
commitaf130d0adc8e48c73030c0d71a59ce1f7809a8fa (patch)
tree3c9035d684fe79dbf318475356aaae2a318c6730
parent8be86a5eec046cb8bd06b4393d373cd433a32cba (diff)
KVM: arm64: Add undocumented return values for PMU device control group
KVM_ARM_VCPU_PMU_V3_IRQ returns -EFAULT if get_user() fails when reading the interrupt number from kvm_device_attr.addr. KVM_ARM_VCPU_PMU_V3_INIT returns the error value from kvm_vgic_set_owner(). kvm_arm_pmu_v3_init() checks that the vgic has been initialized and the interrupt number is valid, but kvm_vgic_set_owner() can still return the error code -EEXIST if another device has already claimed the interrupt. Signed-off-by: Alexandru Elisei <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected]
-rw-r--r--Documentation/virt/kvm/devices/vcpu.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/virt/kvm/devices/vcpu.rst b/Documentation/virt/kvm/devices/vcpu.rst
index c8b707afca6e..1da576a4b767 100644
--- a/Documentation/virt/kvm/devices/vcpu.rst
+++ b/Documentation/virt/kvm/devices/vcpu.rst
@@ -25,6 +25,7 @@ Returns:
======= ========================================================
-EBUSY The PMU overflow interrupt is already set
+ -EFAULT Error reading interrupt number
-ENXIO The overflow interrupt not set when attempting to get it
-ENODEV PMUv3 not supported
-EINVAL Invalid PMU overflow interrupt number supplied or
@@ -45,6 +46,7 @@ all vcpus, while as an SPI it must be a separate number per vcpu.
Returns:
======= ======================================================
+ -EEXIST Interrupt number already used
-ENODEV PMUv3 not supported or GIC not initialized
-ENXIO PMUv3 not properly configured or in-kernel irqchip not
configured as required prior to calling this attribute