hw/arm/virt: Move kvm pmu setup to virt_cpu_post_init
commit946f1bb18c342fa548f9c0f52f64836ff49d99c8
authorAndrew Jones <drjones@redhat.com>
Thu, 1 Oct 2020 06:17:16 +0000 (1 08:17 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 8 Oct 2020 14:24:32 +0000 (8 15:24 +0100)
treec6fd1948814033518e3fc4ec4b67e22087682ba3
parentfe11f058c5fda70360f810e7bddd4b6d69f76230
hw/arm/virt: Move kvm pmu setup to virt_cpu_post_init

Move the KVM PMU setup part of fdt_add_pmu_nodes() to
virt_cpu_post_init(), which is a more appropriate location. Now
fdt_add_pmu_nodes() is also named more appropriately, because it
no longer does anything but fdt node creation.

No functional change intended.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Andrew Jones <drjones@redhat.com>
Message-id: 20201001061718.101915-5-drjones@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt.c