summaryrefslogtreecommitdiff
path: root/Documentation/virtual/kvm/devices/vcpu.txt
diff options
context:
space:
mode:
authorChristoffer Dall <christoffer.dall@linaro.org>2016-09-27 04:51:47 +0300
committerChristoffer Dall <christoffer.dall@linaro.org>2016-09-27 19:57:07 +0300
commit6fe407f2d18a4f94216263f91cb7d1f08fa5887c (patch)
tree7dbeb6562c31a5a2ec73bae880966bdbd115c1c0 /Documentation/virtual/kvm/devices/vcpu.txt
parent3d9cd95f90b2987ef95182a4340a9150e06c4253 (diff)
downloadlinux-6fe407f2d18a4f94216263f91cb7d1f08fa5887c.tar.xz
KVM: arm64: Require in-kernel irqchip for PMU support
If userspace creates a PMU for the VCPU, but doesn't create an in-kernel irqchip, then we end up in a nasty path where we try to take an uninitialized spinlock, which can lead to all sorts of breakages. Luckily, QEMU always creates the VGIC before the PMU, so we can establish this as ABI and check for the VGIC in the PMU init stage. This can be relaxed at a later time if we want to support PMU with a userspace irqchip. Cc: stable@vger.kernel.org Cc: Shannon Zhao <shannon.zhao@linaro.org> Acked-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'Documentation/virtual/kvm/devices/vcpu.txt')
-rw-r--r--Documentation/virtual/kvm/devices/vcpu.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/virtual/kvm/devices/vcpu.txt b/Documentation/virtual/kvm/devices/vcpu.txt
index c04165868faf..02f50686c418 100644
--- a/Documentation/virtual/kvm/devices/vcpu.txt
+++ b/Documentation/virtual/kvm/devices/vcpu.txt
@@ -30,4 +30,6 @@ Returns: -ENODEV: PMUv3 not supported
attribute
-EBUSY: PMUv3 already initialized
-Request the initialization of the PMUv3.
+Request the initialization of the PMUv3. This must be done after creating the
+in-kernel irqchip. Creating a PMU with a userspace irqchip is currently not
+supported.