[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 05/13] hw/arm/virt: Remove VirtMachineClass::no_its field
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 05/13] hw/arm/virt: Remove VirtMachineClass::no_its field |
Date: |
Wed, 15 Jan 2025 18:10:01 +0100 |
The VirtMachineClass::no_its field was only used by
virt-2.7 machine, which got removed. Remove it and
simplify virt_instance_init() and virt_acpi_build().
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
include/hw/arm/virt.h | 1 -
hw/arm/virt-acpi-build.c | 5 ++---
hw/arm/virt.c | 16 ++++++----------
3 files changed, 8 insertions(+), 14 deletions(-)
diff --git a/include/hw/arm/virt.h b/include/hw/arm/virt.h
index 5d3b25509ff..463ac09615e 100644
--- a/include/hw/arm/virt.h
+++ b/include/hw/arm/virt.h
@@ -117,7 +117,6 @@ typedef enum VirtGICType {
struct VirtMachineClass {
MachineClass parent;
- bool no_its;
bool no_tcg_its;
bool claim_edge_triggered_timers;
bool smbios_old_sys_ver;
diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c
index c9b13057a34..ccecea9e09b 100644
--- a/hw/arm/virt-acpi-build.c
+++ b/hw/arm/virt-acpi-build.c
@@ -670,7 +670,6 @@ static void
build_madt(GArray *table_data, BIOSLinker *linker, VirtMachineState *vms)
{
int i;
- VirtMachineClass *vmc = VIRT_MACHINE_GET_CLASS(vms);
const MemMapEntry *memmap = vms->memmap;
AcpiTable table = { .sig = "APIC", .rev = 4, .oem_id = vms->oem_id,
.oem_table_id = vms->oem_table_id };
@@ -741,7 +740,7 @@ build_madt(GArray *table_data, BIOSLinker *linker,
VirtMachineState *vms)
memmap[VIRT_HIGH_GIC_REDIST2].size);
}
- if (its_class_name() && !vmc->no_its) {
+ if (its_class_name()) {
/*
* ACPI spec, Revision 6.0 Errata A
* (original 6.0 definition has invalid Length)
@@ -974,7 +973,7 @@ void virt_acpi_build(VirtMachineState *vms, AcpiBuildTables
*tables)
vms->oem_table_id);
}
- if (its_class_name() && !vmc->no_its) {
+ if (its_class_name()) {
acpi_add_table(table_offsets, tables_blob);
build_iort(tables_blob, tables->linker, vms);
}
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 7747dae4dc7..d7a7cee79df 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -3278,17 +3278,13 @@ static void virt_instance_init(Object *obj)
vms->highmem_mmio = true;
vms->highmem_redists = true;
- if (vmc->no_its) {
- vms->its = false;
- } else {
- /* Default allows ITS instantiation */
- vms->its = true;
+ /* Default allows ITS instantiation */
+ vms->its = true;
- if (vmc->no_tcg_its) {
- vms->tcg_its = false;
- } else {
- vms->tcg_its = true;
- }
+ if (vmc->no_tcg_its) {
+ vms->tcg_its = false;
+ } else {
+ vms->tcg_its = true;
}
/* Default disallows iommu instantiation */
--
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é, 2025/01/15
- [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é <=
- [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
- [PATCH 11/13] hw/arm/virt: Remove VirtMachineClass::smbios_old_sys_ver field, Philippe Mathieu-Daudé, 2025/01/15
- [PATCH 12/13] hw/arm/virt: Remove deprecated virt-2.12 machine, Philippe Mathieu-Daudé, 2025/01/15