mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
hw/arm/virt: allow pmu instantiation with userspace irqchip
Move the in-kernel-irqchip test to only guard the set-irq stage, not the init stage of the PMU. Also add the PMU to the KVM device irq line synchronization to enable its use. Signed-off-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Christoffer Dall <cdall@linaro.org> Message-id: 1500471597-2517-4-git-send-email-drjones@redhat.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
3f07cb2aab
commit
b16595275b
3 changed files with 8 additions and 4 deletions
|
@ -496,7 +496,8 @@ static void fdt_add_pmu_nodes(const VirtMachineState *vms)
|
|||
return;
|
||||
}
|
||||
if (kvm_enabled()) {
|
||||
if (!kvm_arm_pmu_set_irq(cpu, PPI(VIRTUAL_PMU_IRQ))) {
|
||||
if (kvm_irqchip_in_kernel() &&
|
||||
!kvm_arm_pmu_set_irq(cpu, PPI(VIRTUAL_PMU_IRQ))) {
|
||||
return;
|
||||
}
|
||||
if (!kvm_arm_pmu_init(cpu)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue