target/arm/kvm: pmu: split init and set-irq stages
commit3f07cb2aabdfcc27ee30cf85c39619a82d364f83
authorAndrew Jones <drjones@redhat.com>
Mon, 4 Sep 2017 14:21:54 +0000 (4 15:21 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 4 Sep 2017 14:21:54 +0000 (4 15:21 +0100)
treec62d128a9af401a6f2e40359f4a1b032967ea909
parent07f48730bc4ec99f128901705336eb455f674694
target/arm/kvm: pmu: split init and set-irq stages

When adding a PMU with a userspace irqchip we skip the set-irq
stage of device creation. Split the 'create' function into two
functions 'init' and 'set-irq' so they may be called separately.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Christoffer Dall <cdall@linaro.org>
Message-id: 1500471597-2517-3-git-send-email-drjones@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt.c
target/arm/kvm32.c
target/arm/kvm64.c
target/arm/kvm_arm.h