Skip to content

Commit af130d0

Browse files
Alexandru EliseiMarc Zyngier
authored andcommitted
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 <alexandru.elisei@arm.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Reviewed-by: Andrew Jones <drjones@redhat.com> Link: https://lore.kernel.org/r/20200924123731.268177-2-alexandru.elisei@arm.com
1 parent 8be86a5 commit af130d0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Documentation/virt/kvm/devices/vcpu.rst‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Returns:
2525

2626
======= ========================================================
2727
-EBUSY The PMU overflow interrupt is already set
28+
-EFAULT Error reading interrupt number
2829
-ENXIO The overflow interrupt not set when attempting to get it
2930
-ENODEV PMUv3 not supported
3031
-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.
4546
Returns:
4647

4748
======= ======================================================
49+
-EEXIST Interrupt number already used
4850
-ENODEV PMUv3 not supported or GIC not initialized
4951
-ENXIO PMUv3 not properly configured or in-kernel irqchip not
5052
configured as required prior to calling this attribute

0 commit comments

Comments
 (0)