diff options
author | Christoffer Dall <christoffer.dall@linaro.org> | 2016-09-26 18:51:47 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-10-16 17:50:37 +0200 |
commit | 6b30b92d592f7da0e1a653dc951479cff43fd82b (patch) | |
tree | ecb5d5ec9e04a402e9fc074220c1ac4790b67c22 /Documentation | |
parent | 7398f669a4a0c912dc9951e2f914707e1ac87e53 (diff) | |
download | linux-stable-6b30b92d592f7da0e1a653dc951479cff43fd82b.tar.gz linux-stable-6b30b92d592f7da0e1a653dc951479cff43fd82b.tar.bz2 linux-stable-6b30b92d592f7da0e1a653dc951479cff43fd82b.zip |
KVM: arm64: Require in-kernel irqchip for PMU support
commit 6fe407f2d18a4f94216263f91cb7d1f08fa5887c upstream.
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: Shannon Zhao <shannon.zhao@linaro.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/virtual/kvm/devices/vcpu.txt | 4 |
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. |