diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2014-07-08 07:09:07 -0400 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2014-09-18 21:48:58 -0400 |
commit | a98f26f183801685ef57333de4bafd4bbc692c7c (patch) | |
tree | 8b33a5d7d13d8c2f507223b548b766ba16d559b1 /Documentation/virtual | |
parent | 4956f2bc1fdee4bc336532f3f34635a8534cedfd (diff) |
arm/arm64: KVM: vgic: make number of irqs a configurable attribute
In order to make the number of interrupts configurable, use the new
fancy device management API to add KVM_DEV_ARM_VGIC_GRP_NR_IRQS as
a VGIC configurable attribute.
Userspace can now specify the exact size of the GIC (by increments
of 32 interrupts).
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'Documentation/virtual')
-rw-r--r-- | Documentation/virtual/kvm/devices/arm-vgic.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/virtual/kvm/devices/arm-vgic.txt b/Documentation/virtual/kvm/devices/arm-vgic.txt index 7f4e91b1316b..df8b0c7540b6 100644 --- a/Documentation/virtual/kvm/devices/arm-vgic.txt +++ b/Documentation/virtual/kvm/devices/arm-vgic.txt | |||
@@ -71,3 +71,13 @@ Groups: | |||
71 | Errors: | 71 | Errors: |
72 | -ENODEV: Getting or setting this register is not yet supported | 72 | -ENODEV: Getting or setting this register is not yet supported |
73 | -EBUSY: One or more VCPUs are running | 73 | -EBUSY: One or more VCPUs are running |
74 | |||
75 | KVM_DEV_ARM_VGIC_GRP_NR_IRQS | ||
76 | Attributes: | ||
77 | A value describing the number of interrupts (SGI, PPI and SPI) for | ||
78 | this GIC instance, ranging from 64 to 1024, in increments of 32. | ||
79 | |||
80 | Errors: | ||
81 | -EINVAL: Value set is out of the expected range | ||
82 | -EBUSY: Value has already be set, or GIC has already been initialized | ||
83 | with default values. | ||