[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/13] hw/arm/virt: Remove VirtMachineClass::no_pmu field
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 02/13] hw/arm/virt: Remove VirtMachineClass::no_pmu field |
Date: |
Wed, 15 Jan 2025 18:09:58 +0100 |
The VirtMachineClass::no_pmu field was only used by
virt-2.6 machine, which got removed. Remove it and
simplify machvirt_init().
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
include/hw/arm/virt.h | 1 -
hw/arm/virt.c | 4 ----
2 files changed, 5 deletions(-)
diff --git a/include/hw/arm/virt.h b/include/hw/arm/virt.h
index c8e94e6aedc..27c5bb585cb 100644
--- a/include/hw/arm/virt.h
+++ b/include/hw/arm/virt.h
@@ -120,7 +120,6 @@ struct VirtMachineClass {
bool disallow_affinity_adjustment;
bool no_its;
bool no_tcg_its;
- bool no_pmu;
bool claim_edge_triggered_timers;
bool smbios_old_sys_ver;
bool no_highmem_compact;
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 3bb8a9c7bd6..0080577e1a9 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -2262,10 +2262,6 @@ static void machvirt_init(MachineState *machine)
object_property_set_bool(cpuobj, "kvm-steal-time", false, NULL);
}
- if (vmc->no_pmu && object_property_find(cpuobj, "pmu")) {
- object_property_set_bool(cpuobj, "pmu", false, NULL);
- }
-
if (vmc->no_tcg_lpa2 && object_property_find(cpuobj, "lpa2")) {
object_property_set_bool(cpuobj, "lpa2", false, NULL);
}
--
2.47.1
- [PATCH 00/13] hw/arm: Remove virt-2.6 up to virt-2.12 machines, Philippe Mathieu-Daudé, 2025/01/15
- [PATCH 01/13] hw/arm/virt: Remove deprecated virt-2.6 machine, Philippe Mathieu-Daudé, 2025/01/15
- [PATCH 03/13] hw/arm/virt: Remove VirtMachineClass::disallow_affinity_adjustment, Philippe Mathieu-Daudé, 2025/01/15
- [PATCH 02/13] hw/arm/virt: Remove VirtMachineClass::no_pmu field,
Philippe Mathieu-Daudé <=
- [PATCH 04/13] hw/arm/virt: Remove deprecated virt-2.7 machine, Philippe Mathieu-Daudé, 2025/01/15
- [PATCH 05/13] hw/arm/virt: Remove VirtMachineClass::no_its field, Philippe Mathieu-Daudé, 2025/01/15
- [PATCH 06/13] hw/arm/virt: Remove deprecated virt-2.8 machine, Philippe Mathieu-Daudé, 2025/01/15
- [PATCH 07/13] hw/arm/virt: Remove VirtMachineClass::claim_edge_triggered_timers field, Philippe Mathieu-Daudé, 2025/01/15
- [PATCH 08/13] hw/arm/virt: Remove deprecated virt-2.9 machine, Philippe Mathieu-Daudé, 2025/01/15
- [PATCH 09/13] hw/arm/virt: Remove deprecated virt-2.10 machine, Philippe Mathieu-Daudé, 2025/01/15
- [PATCH 10/13] hw/arm/virt: Remove deprecated virt-2.11 machine, Philippe Mathieu-Daudé, 2025/01/15