hw/arm: Remove virt-2.6 up to virt-2.12 machines
v2 cover hw/arm: Remove virt-2.6 up to virt-2.12 machines
The versioned 'virt' machines up to 2.12 been marked as deprecated two releases ago, and are older than 6 years, so according to our support policy we can remove them. Remove associated dead code.
Since v1:
- Corrected disallow_affinity_adjustment removal (Thomas)
- Do not modify docs/about/removed-features.rst (Thomas & Daniel)
Philippe Mathieu-Daudé (13):
hw/arm/virt: Remove deprecated virt-2.6 machine hw/arm/virt: Remove VirtMachineClass::no_pmu field hw/arm/virt: Remove VirtMachineClass::disallow_affinity_adjustment hw/arm/virt: Remove deprecated virt-2.7 machine hw/arm/virt: Remove VirtMachineClass::no_its field hw/arm/virt: Remove deprecated virt-2.8 machine hw/arm/virt: Remove VirtMachineClass::claim_edge_triggered_timers
field
hw/arm/virt: Remove deprecated virt-2.9 machine hw/arm/virt: Remove deprecated virt-2.10 machine hw/arm/virt: Remove deprecated virt-2.11 machine hw/arm/virt: Remove VirtMachineClass::smbios_old_sys_ver field hw/arm/virt: Remove deprecated virt-2.12 machine hw/arm/virt: Remove VirtMachineClass::no_highmem_ecam field
include/hw/arm/virt.h | 6 -- hw/arm/virt-acpi-build.c | 10 +-- hw/arm/virt.c | 136 +++++++-------------------------------- 3 files changed, 26 insertions(+), 126 deletions(-)
Signature · 1 line
2.47.1
PATCH v2 1/13 hw/arm/virt: Remove deprecated virt-2.6 machine
This machine has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit ce80c4fa6ff "docs: document special exception for machine type deprecation & removal") it can now be removed.
--- hw/arm/virt.c | 12 ------------ 1 file changed, 12 deletions(-)
hw/arm/virt.c +0 -12
@@ -3606,15 +3606,3 @@ static void virt_machine_2_7_options(MachineClass *mc) mc->minimum_page_bits =0 ; }DEFINE_VIRT_MACHINE (2 ,7 ) - -static void virt_machine_2_6_options (MachineClass *mc) -{ -VirtMachineClass *vmc =VIRT_MACHINE_CLASS (OBJECT_CLASS (mc)); - -virt_machine_2_7_options (mc); -compat_props_add (mc->compat_props, hw_compat_2_6, hw_compat_2_6_len); - vmc->disallow_affinity_adjustment = true; -/* Disable PMU for 2.6 as PMU support was first introduced in 2.7 */ - vmc->no_pmu = true; -} -DEFINE_VIRT_MACHINE (2 ,6 )
Signature · 1 line
2.47.1
Re: [PATCH-for-10.1 v2 01/13] hw/arm/virt: Remove deprecated virt-2.6 machine
Quoted 21 lines · Philippe Mathieu-Daudé
This machine has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit
ce80c4fa6ff"docs: document special exception for machine type deprecation & removal") it can now be removed.Reviewed-by Thomas Huth <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/arm/virt.c | 12 ------------ 1 file changed, 12 deletions(-)hw/arm/virt.c +0
-2@@ -3606,15 +3606,3 @@ static void virt_machine_2_7_options(MachineClass *mc) mc->minimum_page_bits =0 ; }DEFINE_VIRT_MACHINE (2 ,7 ) - -static void virt_machine_2_6_options (MachineClass *mc)
hw/arm/virt.c static void virt_machine_2_7_options(MachineClass *mc) · line 3620
Quoted 10 lines
hw/arm/virt.c +0
-10-{ -VirtMachineClass *vmc =VIRT_MACHINE_CLASS (OBJECT_CLASS (mc)); - -virt_machine_2_7_options (mc); -compat_props_add (mc->compat_props, hw_compat_2_6, hw_compat_2_6_len); - vmc->disallow_affinity_adjustment = true; -/* Disable PMU for 2.6 as PMU support was first introduced in 2.7 */ - vmc->no_pmu = true; -} -DEFINE_VIRT_MACHINE (2 ,6 )
r~
PATCH v2 2/13 hw/arm/virt: Remove VirtMachineClass::no_pmu field
In reply to Philippe Mathieu-DaudéThe VirtMachineClass::no_pmu field was only used by virt-2.6 machine, which got removed. Remove it and simplify machvirt_init().
--- include/hw/arm/virt.h | 1 - hw/arm/virt.c | 4 ---- 2 files changed, 5 deletions(-)
include/hw/arm/virt.h +0 -1
@@ -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;
hw/arm/virt.c +0 -4
@@ -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 ); }
Signature · 1 line
2.47.1
Re: [PATCH-for-10.1 v2 02/13] hw/arm/virt: Remove VirtMachineClass::no_pmu field
Quoted 10 lines · Philippe Mathieu-Daudé
The
VirtMachineClass::no_pmufield was only used by virt-2.6 machine, which got removed. Remove it and simplifymachvirt_init().Signed-off-by Philippe Mathieu-Daudé <[email protected]>Reviewed-by Thomas Huth <[email protected]>--- include/hw/arm/virt.h | 1 - hw/arm/virt.c | 4 ---- 2 files changed, 5 deletions(-)
r~
PATCH v2 3/13 hw/arm/virt: Remove VirtMachineClass::disallow_affinity_adjustment
In reply to Philippe Mathieu-DaudéThe VirtMachineClass::disallow_affinity_adjustment field was only used by virt-2.6 machine, which got removed. Remove it and simplify virt_cpu_mp_affinity().
--- include/hw/arm/virt.h | 1 - hw/arm/virt.c | 30 +++++++++++++++--------------- 2 files changed, 15 insertions(+), 16 deletions(-)
include/hw/arm/virt.h +0 -1
@@ -117,7 +117,6 @@ typedef enum VirtGICType {struct VirtMachineClass {MachineClass parent; -bool disallow_affinity_adjustment;bool no_its;bool no_tcg_its;bool claim_edge_triggered_timers;
hw/arm/virt.c +15 -15
@@ -1759,24 +1759,24 @@ void virt_machine_done(Notifier *notifier, void *data)static uint64_t virt_cpu_mp_affinity (VirtMachineState *vms,int idx) { -uint8_t clustersz =ARM_DEFAULT_CPUS_PER_CLUSTER ; +uint8_t clustersz;VirtMachineClass *vmc =VIRT_MACHINE_GET_CLASS (vms); -if (!vmc->disallow_affinity_adjustment) { -/* Adjust MPIDR like 64-bit KVM hosts, which incorporate the -* GIC's target-list limitations. 32-bit KVM hosts currently -* always create clusters of 4 CPUs, but that is expected to -* change when they gain support for gicv3. When KVM is enabled -* it will override the changes we make here, therefore our -* purposes are to make TCG consistent (with 64-bit KVM hosts) -* and to improve SGI efficiency. -*/ -if (vms->gic_version ==VIRT_GIC_VERSION_2 ) { - clustersz =GIC_TARGETLIST_BITS ; - }else { - clustersz =GICV3_TARGETLIST_BITS ; - } +/* +* Adjust MPIDR like 64-bit KVM hosts, which incorporate the +* GIC's target-list limitations. 32-bit KVM hosts currently +* always create clusters of 4 CPUs, but that is expected to +* change when they gain support for gicv3. When KVM is enabled +* it will override the changes we make here, therefore our +* purposes are to make TCG consistent (with 64-bit KVM hosts) +* and to improve SGI efficiency. +*/ +if (vms->gic_version ==VIRT_GIC_VERSION_2 ) { + clustersz =GIC_TARGETLIST_BITS ; + }else { + clustersz =GICV3_TARGETLIST_BITS ; } +return arm_build_mp_affinity (idx, clustersz); }
Signature · 1 line
2.47.1
Re: [PATCH-for-10.1 v2 03/13] hw/arm/virt: Remove VirtMachineClass::disallow_affinity_adjustment
Quoted 46 lines · Philippe Mathieu-Daudé
The
VirtMachineClass::disallow_affinity_adjustmentfield was only used by virt-2.6 machine, which got removed. Remove it and simplifyvirt_cpu_mp_affinity().Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- include/hw/arm/virt.h | 1 - hw/arm/virt.c | 30 +++++++++++++++--------------- 2 files changed, 15 insertions(+), 16 deletions(-)include/hw/arm/virt.h +0
-1@@ -117,7 +117,6 @@ typedef enum VirtGICType {struct VirtMachineClass {MachineClass parent; -bool disallow_affinity_adjustment;bool no_its;bool no_tcg_its;bool claim_edge_triggered_timers;hw/arm/virt.c +1
-13@@ -1759,24 +1759,24 @@ void virt_machine_done(Notifier *notifier, void *data)static uint64_t virt_cpu_mp_affinity (VirtMachineState *vms,int idx) { -uint8_t clustersz =ARM_DEFAULT_CPUS_PER_CLUSTER ; +uint8_t clustersz;VirtMachineClass *vmc =VIRT_MACHINE_GET_CLASS (vms); -if (!vmc->disallow_affinity_adjustment) { -/* Adjust MPIDR like 64-bit KVM hosts, which incorporate the -* GIC's target-list limitations. 32-bit KVM hosts currently -* always create clusters of 4 CPUs, but that is expected to -* change when they gain support for gicv3. When KVM is enabled -* it will override the changes we make here, therefore our -* purposes are to make TCG consistent (with 64-bit KVM hosts) -* and to improve SGI efficiency. -*/ -if (vms->gic_version ==VIRT_GIC_VERSION_2 ) { - clustersz =GIC_TARGETLIST_BITS ; - }else {
hw/arm/virt.c void virt_machine_done(Notifier *notifier, void *data) · line 1772
Quoted 10 lines
hw/arm/virt.c +8
-2- clustersz =GICV3_TARGETLIST_BITS ; - } +/* +* Adjust MPIDR like 64-bit KVM hosts, which incorporate the +* GIC's target-list limitations. 32-bit KVM hosts currently +* always create clusters of 4 CPUs, but that is expected to +* change when they gain support for gicv3. When KVM is enabled +* it will override the changes we make here, therefore our +* purposes are to make TCG consistent (with 64-bit KVM hosts) +* and to improve SGI efficiency.
32-bit KVM hosts are dead a long time, so we could definitely trim this comment to at least remove those sentences. We'd also have to double check arm64 KVM to see if the comment is still accurate, since the comment is so old. Or, we could just delete the comment.
Thanks,
drew
Quoted 13 lines
hw/arm/virt.c +6
-0+*/ +if (vms->gic_version ==VIRT_GIC_VERSION_2 ) { + clustersz =GIC_TARGETLIST_BITS ; + }else { + clustersz =GICV3_TARGETLIST_BITS ; } +return arm_build_mp_affinity (idx, clustersz); }Signature · 1 line
2.47.1
Thomas Huth
Reviewed-byRe: [PATCH-for-10.1 v2 03/13] hw/arm/virt: Remove VirtMachineClass::disallow_affinity_adjustment
Quoted 54 lines · Andrew Jones
Quoted 53 lines · Philippe Mathieu-Daudé
The
VirtMachineClass::disallow_affinity_adjustmentfield was only used by virt-2.6 machine, which got removed. Remove it and simplifyvirt_cpu_mp_affinity().Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- include/hw/arm/virt.h | 1 - hw/arm/virt.c | 30 +++++++++++++++--------------- 2 files changed, 15 insertions(+), 16 deletions(-)include/hw/arm/virt.h +0
-1@@ -117,7 +117,6 @@ typedef enum VirtGICType {struct VirtMachineClass {MachineClass parent; -bool disallow_affinity_adjustment;bool no_its;bool no_tcg_its;bool claim_edge_triggered_timers;hw/arm/virt.c +6
-15@@ -1759,24 +1759,24 @@ void virt_machine_done(Notifier *notifier, void *data)static uint64_t virt_cpu_mp_affinity (VirtMachineState *vms,int idx) { -uint8_t clustersz =ARM_DEFAULT_CPUS_PER_CLUSTER ; +uint8_t clustersz;VirtMachineClass *vmc =VIRT_MACHINE_GET_CLASS (vms); -if (!vmc->disallow_affinity_adjustment) { -/* Adjust MPIDR like 64-bit KVM hosts, which incorporate the -* GIC's target-list limitations. 32-bit KVM hosts currently -* always create clusters of 4 CPUs, but that is expected to -* change when they gain support for gicv3. When KVM is enabled -* it will override the changes we make here, therefore our -* purposes are to make TCG consistent (with 64-bit KVM hosts) -* and to improve SGI efficiency. -*/ -if (vms->gic_version ==VIRT_GIC_VERSION_2 ) { - clustersz =GIC_TARGETLIST_BITS ; - }else { - clustersz =GICV3_TARGETLIST_BITS ; - } +/* +* Adjust MPIDR like 64-bit KVM hosts, which incorporate the +* GIC's target-list limitations. 32-bit KVM hosts currently +* always create clusters of 4 CPUs, but that is expected to +* change when they gain support for gicv3. When KVM is enabled
Quoted 8 lines
hw/arm/virt.c void virt_machine_done(Notifier *notifier, void *data) · line 1772
Quoted 3 lines
hw/arm/virt.c +3
-0+* it will override the changes we make here, therefore our +* purposes are to make TCG consistent (with 64-bit KVM hosts) +* and to improve SGI efficiency. 32-bit KVM hosts are dead a long time, so we could definitely trim this comment to at least remove those sentences. We'd also have to double check arm64 KVM to see if the comment is still accurate, since the comment is so old. Or, we could just delete the comment.
I agree that this comment needs an update, but it could also be done in a separate patch later, so from my side for this patch here:
Re: [PATCH-for-10.1 v2 03/13] hw/arm/virt: Remove VirtMachineClass::disallow_affinity_adjustment
In reply to Philippe Mathieu-DaudéQuoted 9 lines · Philippe Mathieu-Daudé
TheVirtMachineClass::disallow_affinity_adjustmentfield was only used by virt-2.6 machine, which got removed. Remove it and simplifyvirt_cpu_mp_affinity().Signed-off-by Philippe Mathieu-Daudé<[email protected]>--- include/hw/arm/virt.h | 1 - hw/arm/virt.c | 30 +++++++++++++++--------------- 2 files changed, 15 insertions(+), 16 deletions(-)
r~
Re: [PATCH-for-10.1 v2 03/13] hw/arm/virt: Remove VirtMachineClass::disallow_affinity_adjustment
In reply to Philippe Mathieu-DaudéQuoted 56 lines · Philippe Mathieu-Daudé
The
VirtMachineClass::disallow_affinity_adjustmentfield was only used by virt-2.6 machine, which got removed. Remove it and simplifyvirt_cpu_mp_affinity().Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- include/hw/arm/virt.h | 1 - hw/arm/virt.c | 30 +++++++++++++++--------------- 2 files changed, 15 insertions(+), 16 deletions(-)include/hw/arm/virt.h +0
-1@@ -117,7 +117,6 @@ typedef enum VirtGICType {struct VirtMachineClass {MachineClass parent; -bool disallow_affinity_adjustment;bool no_its;bool no_tcg_its;bool claim_edge_triggered_timers;hw/arm/virt.c +9
-15@@ -1759,24 +1759,24 @@ void virt_machine_done(Notifier *notifier, void *data)static uint64_t virt_cpu_mp_affinity (VirtMachineState *vms,int idx) { -uint8_t clustersz =ARM_DEFAULT_CPUS_PER_CLUSTER ; +uint8_t clustersz;VirtMachineClass *vmc =VIRT_MACHINE_GET_CLASS (vms); -if (!vmc->disallow_affinity_adjustment) { -/* Adjust MPIDR like 64-bit KVM hosts, which incorporate the -* GIC's target-list limitations. 32-bit KVM hosts currently -* always create clusters of 4 CPUs, but that is expected to -* change when they gain support for gicv3. When KVM is enabled -* it will override the changes we make here, therefore our -* purposes are to make TCG consistent (with 64-bit KVM hosts) -* and to improve SGI efficiency. -*/ -if (vms->gic_version ==VIRT_GIC_VERSION_2 ) { - clustersz =GIC_TARGETLIST_BITS ; - }else { - clustersz =GICV3_TARGETLIST_BITS ; - } +/* +* Adjust MPIDR like 64-bit KVM hosts, which incorporate the +* GIC's target-list limitations. 32-bit KVM hosts currently +* always create clusters of 4 CPUs, but that is expected to +* change when they gain support for gicv3. When KVM is enabled +* it will override the changes we make here, therefore our +* purposes are to make TCG consistent (with 64-bit KVM hosts) +* and to improve SGI efficiency.
hw/arm/virt.c void virt_machine_done(Notifier *notifier, void *data) · line 1782
Quoted 10 lines
hw/arm/virt.c +6
-0+*/ +if (vms->gic_version ==VIRT_GIC_VERSION_2 ) { + clustersz =GIC_TARGETLIST_BITS ; + }else { + clustersz =GICV3_TARGETLIST_BITS ; } +return arm_build_mp_affinity (idx, clustersz); }
Missing:
-- >8 --
hw/arm/virt.c +0 -2
@@ -1766,3 +1766,2 @@ static uint64_t virt_cpu_mp_affinity(VirtMachineState *vms, int idx)uint8_t clustersz; -VirtMachineClass *vmc =VIRT_MACHINE_GET_CLASS (vms); ---
PATCH v2 4/13 hw/arm/virt: Remove deprecated virt-2.7 machine
In reply to Philippe Mathieu-DaudéThis machine has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit ce80c4fa6ff "docs: document special exception for machine type deprecation & removal") it can now be removed.
--- hw/arm/virt.c | 13 ------------- 1 file changed, 13 deletions(-)
hw/arm/virt.c +0 -13
@@ -3589,16 +3589,3 @@ static void virt_machine_2_8_options(MachineClass *mc) vmc->claim_edge_triggered_timers = true; }DEFINE_VIRT_MACHINE (2 ,8 ) - -static void virt_machine_2_7_options (MachineClass *mc) -{ -VirtMachineClass *vmc =VIRT_MACHINE_CLASS (OBJECT_CLASS (mc)); - -virt_machine_2_8_options (mc); -compat_props_add (mc->compat_props, hw_compat_2_7, hw_compat_2_7_len); -/* ITS was introduced with 2.8 */ - vmc->no_its = true; -/* Stick with 1K pages for migration compatibility */ - mc->minimum_page_bits =0 ; -} -DEFINE_VIRT_MACHINE (2 ,7 )
Signature · 1 line
2.47.1
Re: [PATCH-for-10.1 v2 04/13] hw/arm/virt: Remove deprecated virt-2.7 machine
Quoted 21 lines · Philippe Mathieu-Daudé
This machine has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit
ce80c4fa6ff"docs: document special exception for machine type deprecation & removal") it can now be removed.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/arm/virt.c | 13 ------------- 1 file changed, 13 deletions(-)hw/arm/virt.c +0
-3@@ -3589,16 +3589,3 @@ static void virt_machine_2_8_options(MachineClass *mc) vmc->claim_edge_triggered_timers = true; }DEFINE_VIRT_MACHINE (2 ,8 ) - -static void virt_machine_2_7_options (MachineClass *mc) -{
hw/arm/virt.c static void virt_machine_2_8_options(MachineClass *mc) · line 3604
Quoted 10 lines
hw/arm/virt.c +0
-10-VirtMachineClass *vmc =VIRT_MACHINE_CLASS (OBJECT_CLASS (mc)); - -virt_machine_2_8_options (mc); -compat_props_add (mc->compat_props, hw_compat_2_7, hw_compat_2_7_len); -/* ITS was introduced with 2.8 */ - vmc->no_its = true; -/* Stick with 1K pages for migration compatibility */ - mc->minimum_page_bits =0 ; -} -DEFINE_VIRT_MACHINE (2 ,7 )
r~
Re: [PATCH-for-10.1 v2 04/13] hw/arm/virt: Remove deprecated virt-2.7 machine
In reply to Philippe Mathieu-DaudéQuoted 9 lines · Philippe Mathieu-Daudé
This machine has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit
ce80c4fa6ff"docs: document special exception for machine type deprecation & removal") it can now be removed.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/arm/virt.c | 13 ------------- 1 file changed, 13 deletions(-)
PATCH v2 5/13 hw/arm/virt: Remove VirtMachineClass::no_its field
In reply to Philippe Mathieu-Daudé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().
--- 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(-)
include/hw/arm/virt.h +0 -1
@@ -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;
hw/arm/virt-acpi-build.c +2 -3
@@ -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); }
hw/arm/virt.c +6 -10
@@ -3294,17 +3294,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 */
Signature · 1 line
2.47.1
Re: [PATCH-for-10.1 v2 05/13] hw/arm/virt: Remove VirtMachineClass::no_its field
Quoted 11 lines · Philippe Mathieu-Daudé
The
VirtMachineClass::no_itsfield was only used by virt-2.7 machine, which got removed. Remove it and simplifyvirt_instance_init()andvirt_acpi_build().Signed-off-by Philippe Mathieu-Daudé <[email protected]>Reviewed-by Thomas Huth <[email protected]>--- 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(-)
r~
PATCH v2 6/13 hw/arm/virt: Remove deprecated virt-2.8 machine
In reply to Philippe Mathieu-DaudéThis machine has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit ce80c4fa6ff "docs: document special exception for machine type deprecation & removal") it can now be removed.
--- hw/arm/virt.c | 13 ------------- 1 file changed, 13 deletions(-)
hw/arm/virt.c +0 -13
@@ -3572,16 +3572,3 @@ static void virt_machine_2_9_options(MachineClass *mc)compat_props_add (mc->compat_props, hw_compat_2_9, hw_compat_2_9_len); }DEFINE_VIRT_MACHINE (2 ,9 ) - -static void virt_machine_2_8_options (MachineClass *mc) -{ -VirtMachineClass *vmc =VIRT_MACHINE_CLASS (OBJECT_CLASS (mc)); - -virt_machine_2_9_options (mc); -compat_props_add (mc->compat_props, hw_compat_2_8, hw_compat_2_8_len); -/* For 2.8 and earlier we falsely claimed in the DT that -* our timers were edge-triggered, not level-triggered. -*/ - vmc->claim_edge_triggered_timers = true; -} -DEFINE_VIRT_MACHINE (2 ,8 )
Signature · 1 line
2.47.1
Re: [PATCH-for-10.1 v2 06/13] hw/arm/virt: Remove deprecated virt-2.8 machine
Quoted 21 lines · Philippe Mathieu-Daudé
This machine has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit
ce80c4fa6ff"docs: document special exception for machine type deprecation & removal") it can now be removed.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/arm/virt.c | 13 ------------- 1 file changed, 13 deletions(-)hw/arm/virt.c +0
-3@@ -3572,16 +3572,3 @@ static void virt_machine_2_9_options(MachineClass *mc)compat_props_add (mc->compat_props, hw_compat_2_9, hw_compat_2_9_len); }DEFINE_VIRT_MACHINE (2 ,9 ) - -static void virt_machine_2_8_options (MachineClass *mc) -{
hw/arm/virt.c static void virt_machine_2_9_options(MachineClass *mc) · line 3587
Quoted 10 lines
hw/arm/virt.c +0
-10-VirtMachineClass *vmc =VIRT_MACHINE_CLASS (OBJECT_CLASS (mc)); - -virt_machine_2_9_options (mc); -compat_props_add (mc->compat_props, hw_compat_2_8, hw_compat_2_8_len); -/* For 2.8 and earlier we falsely claimed in the DT that -* our timers were edge-triggered, not level-triggered. -*/ - vmc->claim_edge_triggered_timers = true; -} -DEFINE_VIRT_MACHINE (2 ,8 )
r~
Re: [PATCH-for-10.1 v2 06/13] hw/arm/virt: Remove deprecated virt-2.8 machine
In reply to Philippe Mathieu-DaudéQuoted 9 lines · Philippe Mathieu-Daudé
This machine has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit
ce80c4fa6ff"docs: document special exception for machine type deprecation & removal") it can now be removed.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/arm/virt.c | 13 ------------- 1 file changed, 13 deletions(-)
PATCH v2 7/13 hw/arm/virt: Remove VirtMachineClass::claim_edge_triggered_timers field
In reply to Philippe Mathieu-DaudéThe VirtMachineClass::claim_edge_triggered_timers field was only used by virt-2.8 machine, which got removed. Remove it and simplify fdt_add_timer_nodes() and build_gtdt().
--- include/hw/arm/virt.h | 1 - hw/arm/virt-acpi-build.c | 5 +---- hw/arm/virt.c | 5 ----- 3 files changed, 1 insertion(+), 10 deletions(-)
include/hw/arm/virt.h +0 -1
@@ -118,7 +118,6 @@ typedef enum VirtGICType {struct VirtMachineClass {MachineClass parent;bool no_tcg_its; -bool claim_edge_triggered_timers;bool smbios_old_sys_ver;bool no_highmem_compact;bool no_highmem_ecam;
hw/arm/virt-acpi-build.c +1 -4
@@ -537,15 +537,12 @@ build_srat(GArray *table_data, BIOSLinker *linker, VirtMachineState *vms)static void build_gtdt (GArray *table_data,BIOSLinker *linker,VirtMachineState *vms) { -VirtMachineClass *vmc =VIRT_MACHINE_GET_CLASS (vms);/* * Table 5-117 Flag Definitions * set only "Timer interrupt Mode" and assume "Timer Interrupt * polarity" bit as '0: Interrupt is Active high' */ -uint32_t irqflags = vmc->claim_edge_triggered_timers ? -1 :/* Interrupt is Edge triggered */ -0 ;/* Interrupt is Level triggered */ +const uint32_t irqflags =0 ;/* Interrupt is Level triggered */ AcpiTable table = { .sig ="GTDT" , .rev =3 , .oem_id = vms->oem_id, .oem_table_id = vms->oem_table_id };
hw/arm/virt.c +0 -5
@@ -361,14 +361,9 @@ static void fdt_add_timer_nodes(const VirtMachineState *vms)* the correct information. */ ARMCPU *armcpu; -VirtMachineClass *vmc =VIRT_MACHINE_GET_CLASS (vms);uint32_t irqflags =GIC_FDT_IRQ_FLAGS_LEVEL_HI ;MachineState *ms =MACHINE (vms); -if (vmc->claim_edge_triggered_timers) { - irqflags =GIC_FDT_IRQ_FLAGS_EDGE_LO_HI ; - } -if (vms->gic_version ==VIRT_GIC_VERSION_2 ) { irqflags = deposit32(irqflags, GIC_FDT_IRQ_PPI_CPU_START, GIC_FDT_IRQ_PPI_CPU_WIDTH,
Signature · 1 line
2.47.1
Re: [PATCH-for-10.1 v2 07/13] hw/arm/virt: Remove VirtMachineClass::claim_edge_triggered_timers field
Quoted 11 lines · Philippe Mathieu-Daudé
TheVirtMachineClass::claim_edge_triggered_timersfield was only used by virt-2.8 machine, which got removed. Remove it and simplifyfdt_add_timer_nodes()andbuild_gtdt().Signed-off-by Philippe Mathieu-Daudé<[email protected]>Reviewed-by Thomas Huth<[email protected]>--- include/hw/arm/virt.h | 1 - hw/arm/virt-acpi-build.c | 5 +---- hw/arm/virt.c | 5 ----- 3 files changed, 1 insertion(+), 10 deletions(-)
r~
PATCH v2 8/13 hw/arm/virt: Remove deprecated virt-2.9 machine
In reply to Philippe Mathieu-DaudéThis machine has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit ce80c4fa6ff "docs: document special exception for machine type deprecation & removal") it can now be removed.
--- hw/arm/virt.c | 7 ------- 1 file changed, 7 deletions(-)
hw/arm/virt.c +0 -7
@@ -3560,10 +3560,3 @@ static void virt_machine_2_10_options(MachineClass *mc) mc->ignore_memory_transaction_failures = true; }DEFINE_VIRT_MACHINE (2 ,10 ) - -static void virt_machine_2_9_options (MachineClass *mc) -{ -virt_machine_2_10_options (mc); -compat_props_add (mc->compat_props, hw_compat_2_9, hw_compat_2_9_len); -} -DEFINE_VIRT_MACHINE (2 ,9 )
Signature · 1 line
2.47.1
Re: [PATCH-for-10.1 v2 08/13] hw/arm/virt: Remove deprecated virt-2.9 machine
Quoted 15 lines · Philippe Mathieu-Daudé
This machine has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit
ce80c4fa6ff"docs: document special exception for machine type deprecation & removal") it can now be removed.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/arm/virt.c | 7 ------- 1 file changed, 7 deletions(-)hw/arm/virt.c +0
-0
hw/arm/virt.c static void virt_machine_2_10_options(MachineClass *mc) · line 3569
Quoted 10 lines
hw/arm/virt.c +0
-7@@ -3560,10 +3560,3 @@ static void virt_machine_2_10_options(MachineClass *mc) mc->ignore_memory_transaction_failures = true; }DEFINE_VIRT_MACHINE (2 ,10 ) - -static void virt_machine_2_9_options (MachineClass *mc) -{ -virt_machine_2_10_options (mc); -compat_props_add (mc->compat_props, hw_compat_2_9, hw_compat_2_9_len); -} -DEFINE_VIRT_MACHINE (2 ,9 )
r~
Re: [PATCH-for-10.1 v2 08/13] hw/arm/virt: Remove deprecated virt-2.9 machine
In reply to Philippe Mathieu-DaudéQuoted 9 lines · Philippe Mathieu-Daudé
This machine has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit
ce80c4fa6ff"docs: document special exception for machine type deprecation & removal") it can now be removed.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/arm/virt.c | 7 ------- 1 file changed, 7 deletions(-)
PATCH v2 9/13 hw/arm/virt: Remove deprecated virt-2.10 machine
In reply to Philippe Mathieu-DaudéThis machine has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit ce80c4fa6ff "docs: document special exception for machine type deprecation & removal") it can now be removed.
--- hw/arm/virt.c | 9 --------- 1 file changed, 9 deletions(-)
hw/arm/virt.c +0 -9
@@ -3551,12 +3551,3 @@ static void virt_machine_2_11_options(MachineClass *mc) vmc->smbios_old_sys_ver = true; }DEFINE_VIRT_MACHINE (2 ,11 ) - -static void virt_machine_2_10_options (MachineClass *mc) -{ -virt_machine_2_11_options (mc); -compat_props_add (mc->compat_props, hw_compat_2_10, hw_compat_2_10_len); -/* before 2.11 we never faulted accesses to bad addresses */ - mc->ignore_memory_transaction_failures = true; -} -DEFINE_VIRT_MACHINE (2 ,10 )
Signature · 1 line
2.47.1
Re: [PATCH-for-10.1 v2 09/13] hw/arm/virt: Remove deprecated virt-2.10 machine
Quoted 17 lines · Philippe Mathieu-Daudé
This machine has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit
ce80c4fa6ff"docs: document special exception for machine type deprecation & removal") it can now be removed.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/arm/virt.c | 9 --------- 1 file changed, 9 deletions(-)hw/arm/virt.c +0
-0@@ -3551,12 +3551,3 @@ static void virt_machine_2_11_options(MachineClass *mc) vmc->smbios_old_sys_ver = true; }
hw/arm/virt.c static void virt_machine_2_11_options(MachineClass *mc) · line 3562
Quoted 10 lines
hw/arm/virt.c +0
-9DEFINE_VIRT_MACHINE (2 ,11 ) - -static void virt_machine_2_10_options (MachineClass *mc) -{ -virt_machine_2_11_options (mc); -compat_props_add (mc->compat_props, hw_compat_2_10, hw_compat_2_10_len); -/* before 2.11 we never faulted accesses to bad addresses */ - mc->ignore_memory_transaction_failures = true; -} -DEFINE_VIRT_MACHINE (2 ,10 )
r~
Re: [PATCH-for-10.1 v2 09/13] hw/arm/virt: Remove deprecated virt-2.10 machine
In reply to Philippe Mathieu-DaudéQuoted 9 lines · Philippe Mathieu-Daudé
This machine has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit
ce80c4fa6ff"docs: document special exception for machine type deprecation & removal") it can now be removed.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/arm/virt.c | 9 --------- 1 file changed, 9 deletions(-)
PATCH v2 10/13 hw/arm/virt: Remove deprecated virt-2.11 machine
In reply to Philippe Mathieu-DaudéThis machine has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit ce80c4fa6ff "docs: document special exception for machine type deprecation & removal") it can now be removed.
--- hw/arm/virt.c | 10 ---------- 1 file changed, 10 deletions(-)
hw/arm/virt.c +0 -10
@@ -3541,13 +3541,3 @@ static void virt_machine_2_12_options(MachineClass *mc) mc->max_cpus =255 ; }DEFINE_VIRT_MACHINE (2 ,12 ) - -static void virt_machine_2_11_options (MachineClass *mc) -{ -VirtMachineClass *vmc =VIRT_MACHINE_CLASS (OBJECT_CLASS (mc)); - -virt_machine_2_12_options (mc); -compat_props_add (mc->compat_props, hw_compat_2_11, hw_compat_2_11_len); - vmc->smbios_old_sys_ver = true; -} -DEFINE_VIRT_MACHINE (2 ,11 )
Signature · 1 line
2.47.1
Re: [PATCH-for-10.1 v2 10/13] hw/arm/virt: Remove deprecated virt-2.11 machine
Quoted 18 lines · Philippe Mathieu-Daudé
This machine has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit
ce80c4fa6ff"docs: document special exception for machine type deprecation & removal") it can now be removed.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/arm/virt.c | 10 ---------- 1 file changed, 10 deletions(-)hw/arm/virt.c +0
-0@@ -3541,13 +3541,3 @@ static void virt_machine_2_12_options(MachineClass *mc) mc->max_cpus =255 ; }DEFINE_VIRT_MACHINE (2 ,12 )
hw/arm/virt.c static void virt_machine_2_12_options(MachineClass *mc) · line 3553
Quoted 10 lines
hw/arm/virt.c +0
-10- -static void virt_machine_2_11_options (MachineClass *mc) -{ -VirtMachineClass *vmc =VIRT_MACHINE_CLASS (OBJECT_CLASS (mc)); - -virt_machine_2_12_options (mc); -compat_props_add (mc->compat_props, hw_compat_2_11, hw_compat_2_11_len); - vmc->smbios_old_sys_ver = true; -} -DEFINE_VIRT_MACHINE (2 ,11 )
r~
Re: [PATCH-for-10.1 v2 10/13] hw/arm/virt: Remove deprecated virt-2.11 machine
In reply to Philippe Mathieu-DaudéQuoted 9 lines · Philippe Mathieu-Daudé
This machine has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit
ce80c4fa6ff"docs: document special exception for machine type deprecation & removal") it can now be removed.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/arm/virt.c | 10 ---------- 1 file changed, 10 deletions(-)
PATCH v2 11/13 hw/arm/virt: Remove VirtMachineClass::smbios_old_sys_ver field
In reply to Philippe Mathieu-DaudéThe VirtMachineClass::smbios_old_sys_ver field was only used by virt-2.11 machine, which got removed. Remove it and simplify virt_build_smbios().
--- include/hw/arm/virt.h | 1 - hw/arm/virt.c | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-)
include/hw/arm/virt.h +0 -1
@@ -118,7 +118,6 @@ typedef enum VirtGICType {struct VirtMachineClass {MachineClass parent;bool no_tcg_its; -bool smbios_old_sys_ver;bool no_highmem_compact;bool no_highmem_ecam;bool no_ged;/* Machines < 4.2 have no support for ACPI GED device */
hw/arm/virt.c +1 -3
@@ -1688,7 +1688,6 @@ static void virt_build_smbios(VirtMachineState *vms) {MachineClass *mc =MACHINE_GET_CLASS (vms);MachineState *ms =MACHINE (vms); -VirtMachineClass *vmc =VIRT_MACHINE_GET_CLASS (vms);uint8_t *smbios_tables, *smbios_anchor;size_t smbios_tables_len, smbios_anchor_len;struct smbios_phys_mem_area mem_array;
@@ -1698,8 +1697,7 @@ static void virt_build_smbios(VirtMachineState *vms) product ="KVM Virtual Machine" ; } -smbios_set_defaults ("QEMU" , product, - vmc->smbios_old_sys_ver ?"1.0" : mc->name); +smbios_set_defaults ("QEMU" , product, mc->name);/* build the array of physical mem area from base_memmap */ mem_array.address = vms->memmap[VIRT_MEM ].base;
Signature · 1 line
2.47.1
Re: [PATCH-for-10.1 v2 11/13] hw/arm/virt: Remove VirtMachineClass::smbios_old_sys_ver field
Quoted 10 lines · Philippe Mathieu-Daudé
The
VirtMachineClass::smbios_old_sys_verfield was only used by virt-2.11 machine, which got removed. Remove it and simplifyvirt_build_smbios().Signed-off-by Philippe Mathieu-Daudé <[email protected]>Reviewed-by Thomas Huth <[email protected]>--- include/hw/arm/virt.h | 1 - hw/arm/virt.c | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-)
r~
PATCH v2 12/13 hw/arm/virt: Remove deprecated virt-2.12 machine
In reply to Philippe Mathieu-DaudéThis machine has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit ce80c4fa6ff "docs: document special exception for machine type deprecation & removal") it can now be removed.
--- hw/arm/virt.c | 11 ----------- 1 file changed, 11 deletions(-)
hw/arm/virt.c +0 -11
@@ -3528,14 +3528,3 @@ static void virt_machine_3_0_options(MachineClass *mc)compat_props_add (mc->compat_props, hw_compat_3_0, hw_compat_3_0_len); }DEFINE_VIRT_MACHINE (3 ,0 ) - -static void virt_machine_2_12_options (MachineClass *mc) -{ -VirtMachineClass *vmc =VIRT_MACHINE_CLASS (OBJECT_CLASS (mc)); - -virt_machine_3_0_options (mc); -compat_props_add (mc->compat_props, hw_compat_2_12, hw_compat_2_12_len); - vmc->no_highmem_ecam = true; - mc->max_cpus =255 ; -} -DEFINE_VIRT_MACHINE (2 ,12 )
Signature · 1 line
2.47.1
Re: [PATCH-for-10.1 v2 12/13] hw/arm/virt: Remove deprecated virt-2.12 machine
Quoted 19 lines · Philippe Mathieu-Daudé
This machine has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit
ce80c4fa6ff"docs: document special exception for machine type deprecation & removal") it can now be removed.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/arm/virt.c | 11 ----------- 1 file changed, 11 deletions(-)hw/arm/virt.c +0
-1@@ -3528,14 +3528,3 @@ static void virt_machine_3_0_options(MachineClass *mc)compat_props_add (mc->compat_props, hw_compat_3_0, hw_compat_3_0_len); }DEFINE_VIRT_MACHINE (3 ,0 ) -
hw/arm/virt.c static void virt_machine_3_0_options(MachineClass *mc) · line 3541
Quoted 10 lines
hw/arm/virt.c +0
-10-static void virt_machine_2_12_options (MachineClass *mc) -{ -VirtMachineClass *vmc =VIRT_MACHINE_CLASS (OBJECT_CLASS (mc)); - -virt_machine_3_0_options (mc); -compat_props_add (mc->compat_props, hw_compat_2_12, hw_compat_2_12_len); - vmc->no_highmem_ecam = true; - mc->max_cpus =255 ; -} -DEFINE_VIRT_MACHINE (2 ,12 )
r~
Re: [PATCH-for-10.1 v2 12/13] hw/arm/virt: Remove deprecated virt-2.12 machine
In reply to Philippe Mathieu-DaudéQuoted 9 lines · Philippe Mathieu-Daudé
This machine has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit
ce80c4fa6ff"docs: document special exception for machine type deprecation & removal") it can now be removed.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/arm/virt.c | 11 ----------- 1 file changed, 11 deletions(-)
PATCH v2 13/13 hw/arm/virt: Remove VirtMachineClass::no_highmem_ecam field
In reply to Philippe Mathieu-DaudéThe VirtMachineClass::no_highmem_ecam field was only used by virt-2.12 machine, which got removed. Remove it and simplify virt_instance_init().
--- include/hw/arm/virt.h | 1 - hw/arm/virt.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-)
include/hw/arm/virt.h +0 -1
@@ -119,7 +119,6 @@ struct VirtMachineClass {MachineClass parent;bool no_tcg_its;bool no_highmem_compact; -bool no_highmem_ecam;bool no_ged;/* Machines < 4.2 have no support for ACPI GED device */ bool kvm_no_adjvtime;bool no_kvm_steal_time;
hw/arm/virt.c +1 -1
@@ -3283,7 +3283,7 @@ static void virt_instance_init(Object *obj) vms->highmem_compact = !vmc->no_highmem_compact; vms->gic_version =VIRT_GIC_VERSION_NOSEL ; - vms->highmem_ecam = !vmc->no_highmem_ecam; + vms->highmem_ecam = true; vms->highmem_mmio = true; vms->highmem_redists = true;
Signature · 1 line
2.47.1
Re: [PATCH-for-10.1 v2 13/13] hw/arm/virt: Remove VirtMachineClass::no_highmem_ecam field
Quoted 10 lines · Philippe Mathieu-Daudé
The
VirtMachineClass::no_highmem_ecamfield was only used by virt-2.12 machine, which got removed. Remove it and simplifyvirt_instance_init().Signed-off-by Philippe Mathieu-Daudé <[email protected]>Reviewed-by Thomas Huth <[email protected]>--- include/hw/arm/virt.h | 1 - hw/arm/virt.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-)
r~
Hi Peter,
Quoted 4 lines · Philippe Mathieu-Daudé
The versioned 'virt' machines up to 2.12 been marked as deprecated two releases ago, and are older than 6 years, so according to our support policy we can remove them. Remove associated dead code.
Quoted 15 lines
Philippe Mathieu-Daudé (13):
hw/arm/virt: Remove deprecated virt-2.6 machine hw/arm/virt: RemoveVirtMachineClass::no_pmufield hw/arm/virt: RemoveVirtMachineClass::disallow_affinity_adjustmenthw/arm/virt: Remove deprecated virt-2.7 machine hw/arm/virt: RemoveVirtMachineClass::no_itsfield hw/arm/virt: Remove deprecated virt-2.8 machine hw/arm/virt: RemoveVirtMachineClass::claim_edge_triggered_timers
field
hw/arm/virt: Remove deprecated virt-2.9 machine hw/arm/virt: Remove deprecated virt-2.10 machine hw/arm/virt: Remove deprecated virt-2.11 machine hw/arm/virt: RemoveVirtMachineClass::smbios_old_sys_verfield hw/arm/virt: Remove deprecated virt-2.12 machine hw/arm/virt: RemoveVirtMachineClass::no_highmem_ecamfield
Please ignore this (reviewed) series for now. I'll rebase it and repost after the 10.0 release.
Thanks,
Phil.
Quoted 23 lines · Philippe Mathieu-Daudé
Hi Peter,
Quoted 4 lines · Philippe Mathieu-Daudé
The versioned 'virt' machines up to 2.12 been marked as deprecated two releases ago, and are older than 6 years, so according to our support policy we can remove them. Remove associated dead code.
Quoted 15 lines
Philippe Mathieu-Daudé (13):
hw/arm/virt: Remove deprecated virt-2.6 machine hw/arm/virt: RemoveVirtMachineClass::no_pmufield hw/arm/virt: RemoveVirtMachineClass::disallow_affinity_adjustmenthw/arm/virt: Remove deprecated virt-2.7 machine hw/arm/virt: RemoveVirtMachineClass::no_itsfield hw/arm/virt: Remove deprecated virt-2.8 machine hw/arm/virt: RemoveVirtMachineClass::claim_edge_triggered_timersfield
hw/arm/virt: Remove deprecated virt-2.9 machine hw/arm/virt: Remove deprecated virt-2.10 machine hw/arm/virt: Remove deprecated virt-2.11 machine hw/arm/virt: RemoveVirtMachineClass::smbios_old_sys_verfield hw/arm/virt: Remove deprecated virt-2.12 machine hw/arm/virt: RemoveVirtMachineClass::no_highmem_ecamfield
Quoted 2 lines
Please ignore this (reviewed) series for now. I'll rebase it and repost after the 10.0 release.
Why? IMHO it should be ok to include them now already. While Daniel's macro only starts the automatic disablement for 10.1, it should be ok to remove them now already according to our normal deprecation policy: The machines have been marked as deprecated in the 9.1 release already (via commit https://gitlab.com/qemu-project/qemu/-/commit/ce80c4fa6ff ), and thus they have been deprecated since two releases already. So it should be fine to remove them now, shouldn't it?
Thomas
Quoted 27 lines · Thomas Huth
Quoted 23 lines · Philippe Mathieu-Daudé
Hi Peter,
Quoted 4 lines · Philippe Mathieu-Daudé
The versioned 'virt' machines up to 2.12 been marked as deprecated two releases ago, and are older than 6 years, so according to our support policy we can remove them. Remove associated dead code.
Quoted 15 lines
Philippe Mathieu-Daudé (13):
hw/arm/virt: Remove deprecated virt-2.6 machine hw/arm/virt: RemoveVirtMachineClass::no_pmufield hw/arm/virt: RemoveVirtMachineClass::disallow_affinity_adjustmenthw/arm/virt: Remove deprecated virt-2.7 machine hw/arm/virt: RemoveVirtMachineClass::no_itsfield hw/arm/virt: Remove deprecated virt-2.8 machine hw/arm/virt: RemoveVirtMachineClass::claim_edge_triggered_timersfield
hw/arm/virt: Remove deprecated virt-2.9 machine hw/arm/virt: Remove deprecated virt-2.10 machine hw/arm/virt: Remove deprecated virt-2.11 machine hw/arm/virt: RemoveVirtMachineClass::smbios_old_sys_verfield hw/arm/virt: Remove deprecated virt-2.12 machine hw/arm/virt: RemoveVirtMachineClass::no_highmem_ecamfieldQuoted 2 lines
Please ignore this (reviewed) series for now. I'll rebase it and repost after the 10.0 release.
Quoted 7 lines
Why? IMHO it should be ok to include them now already. While Daniel's macro only starts the automatic disablement for 10.1, it should be ok to remove them now already according to our normal deprecation policy: The machines have been marked as deprecated in the 9.1 release already (via commit
https://gitlab.com/qemu-project/qemu/-/commit/ce80c4fa6ff ), and thus they have been deprecated since two releases already. So it should be fine to remove them now, shouldn't it?
No, because as of 9.1.0 we documented that machine types are under the new policy, and these were only deprecated in 9.1.0, hence the new policy applies to them.
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Quoted 36 lines · Daniel P. Berrangé
Quoted 27 lines · Thomas Huth
Quoted 23 lines · Philippe Mathieu-Daudé
Hi Peter,
Quoted 4 lines · Philippe Mathieu-Daudé
The versioned 'virt' machines up to 2.12 been marked as deprecated two releases ago, and are older than 6 years, so according to our support policy we can remove them. Remove associated dead code.
Quoted 15 lines
Philippe Mathieu-Daudé (13):
hw/arm/virt: Remove deprecated virt-2.6 machine hw/arm/virt: RemoveVirtMachineClass::no_pmufield hw/arm/virt: RemoveVirtMachineClass::disallow_affinity_adjustmenthw/arm/virt: Remove deprecated virt-2.7 machine hw/arm/virt: RemoveVirtMachineClass::no_itsfield hw/arm/virt: Remove deprecated virt-2.8 machine hw/arm/virt: RemoveVirtMachineClass::claim_edge_triggered_timersfield
hw/arm/virt: Remove deprecated virt-2.9 machine hw/arm/virt: Remove deprecated virt-2.10 machine hw/arm/virt: Remove deprecated virt-2.11 machine hw/arm/virt: RemoveVirtMachineClass::smbios_old_sys_verfield hw/arm/virt: Remove deprecated virt-2.12 machine hw/arm/virt: RemoveVirtMachineClass::no_highmem_ecamfieldQuoted 2 lines
Please ignore this (reviewed) series for now. I'll rebase it and repost after the 10.0 release.
Quoted 7 lines
Why? IMHO it should be ok to include them now already. While Daniel's macro only starts the automatic disablement for 10.1, it should be ok to remove them now already according to our normal deprecation policy: The machines have been marked as deprecated in the 9.1 release already (via commit
https://gitlab.com/qemu-project/qemu/-/commit/ce80c4fa6ff ), and thus they have been deprecated since two releases already. So it should be fine to remove them now, shouldn't it?
Quoted 3 lines
No, because as of 9.1.0 we documented that machine types are under the new policy, and these were only deprecated in 9.1.0, hence the new policy applies to them.
Hm, I guess we could argue now about the wording (I don't see a spot in ce80c4fa6ff that says that this only happens starting with 10.1), but in the long run, it doesn't really matter much whether we remove these machines with 10.0 already or just with 10.1, so let's go with 10.1 instead.
Thomas
Daniel P. Berrangé
Reviewed-by Thomas HuthQuoted 37 lines · Thomas Huth
Quoted 36 lines · Daniel P. Berrangé
Quoted 34 lines · Thomas Huth
Quoted 23 lines · Philippe Mathieu-Daudé
Hi Peter,
Quoted 4 lines · Philippe Mathieu-Daudé
The versioned 'virt' machines up to 2.12 been marked as deprecated two releases ago, and are older than 6 years, so according to our support policy we can remove them. Remove associated dead code.
Quoted 15 lines
Philippe Mathieu-Daudé (13):
hw/arm/virt: Remove deprecated virt-2.6 machine hw/arm/virt: RemoveVirtMachineClass::no_pmufield hw/arm/virt: RemoveVirtMachineClass::disallow_affinity_adjustmenthw/arm/virt: Remove deprecated virt-2.7 machine hw/arm/virt: RemoveVirtMachineClass::no_itsfield hw/arm/virt: Remove deprecated virt-2.8 machine hw/arm/virt: RemoveVirtMachineClass::claim_edge_triggered_timersfield
hw/arm/virt: Remove deprecated virt-2.9 machine hw/arm/virt: Remove deprecated virt-2.10 machine hw/arm/virt: Remove deprecated virt-2.11 machine hw/arm/virt: RemoveVirtMachineClass::smbios_old_sys_verfield hw/arm/virt: Remove deprecated virt-2.12 machine hw/arm/virt: RemoveVirtMachineClass::no_highmem_ecamfieldQuoted 2 lines
Please ignore this (reviewed) series for now. I'll rebase it and repost after the 10.0 release.
Why? IMHO it should be ok to include them now already. While Daniel's macro only starts the automatic disablement for 10.1, it should be ok to remove them now already according to our normal deprecation policy: The machines have been marked as deprecated in the 9.1 release already (via commit
https://gitlab.com/qemu-project/qemu/-/commit/ce80c4fa6ff ), and thus they have been deprecated since two releases already. So it should be fine to remove them now, shouldn't it?
Quoted 8 lines
Quoted 3 lines
No, because as of 9.1.0 we documented that machine types are under the new policy, and these were only deprecated in 9.1.0, hence the new policy applies to them.
Hm, I guess we could argue now about the wording (I don't see a spot in
ce80c4fa6ffthat says that this only happens starting with 10.1), but in the long run, it doesn't really matter much whether we remove these machines with 10.0 already or just with 10.1, so let's go with 10.1 instead.
That's the wrong commit - I documented the delayed impl of deletion in a separate commit, so that we could just revert that part on its own in 10.1 dev:
commit c9fd2d9a48ee3c195cf83cc611b87b09f02f0013
Author: Daniel P. Berrangé <[email protected]>
Date: Thu Jun 20 17:57:37 2024 +0100
include/hw: temporarily disable deletion of versioned machine types
The new deprecation and deletion policy for versioned machine types is being introduced in QEMU 9.1.0.
Under the new policy a number of old machine types (any prior to 2.12) would be liable for immediate deletion which would be a violation of our historical deprecation and removal policy
Thus automatic deletions (by skipping QOM registration) are temporarily gated on existance of the env variable "QEMU_DELETE_MACHINES" / QEMU version number >= 10.1.0. This allows opt-in testing of the automatic deletion logic, while activating it fully in QEMU >= 10.1.0.
This whole commit should be reverted in the 10.1.0 dev cycle or shortly thereafter.
Message-ID: <[email protected]>
If a machine type was deprected *before* the 9.1 release cycle, I think it is fair game to delete it under the historical deprecation rules.
If a machine type was deprecated in 9.1, or later cycles, I think that deletion is gated until 10.1.0 under the policy applied by that commit above.
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Quoted 21 lines · Daniel P. Berrangé
Quoted 12 lines · Thomas Huth
Quoted 10 lines · Philippe Mathieu-Daudé
Hi Peter,
Quoted 3 lines · Philippe Mathieu-Daudé
The versioned 'virt' machines up to 2.12 been marked as deprecated two releases ago, and are older than 6 years, so according to our support policy we can remove them. Remove associated dead code.
Please ignore this (reviewed) series for now. I'll rebase it and repost after the 10.0 release.
Quoted 7 lines
Why? IMHO it should be ok to include them now already. While Daniel's macro only starts the automatic disablement for 10.1, it should be ok to remove them now already according to our normal deprecation policy: The machines have been marked as deprecated in the 9.1 release already (via commit
https://gitlab.com/qemu-project/qemu/-/commit/ce80c4fa6ff ), and thus they have been deprecated since two releases already. So it should be fine to remove them now, shouldn't it?
Quoted 3 lines
No, because as of 9.1.0 we documented that machine types are under the new policy, and these were only deprecated in 9.1.0, hence the new policy applies to them.
Thomas, see Daniel's larger explanation:
https://lore.kernel.org/qemu-devel/[email protected]/
Peter Maydell
AppliedQuoted 9 lines · Philippe Mathieu-Daudé
The versioned 'virt' machines up to 2.12 been marked as deprecated two releases ago, and are older than 6 years, so according to our support policy we can remove them. Remove associated dead code.
Since v1:
- Correcteddisallow_affinity_adjustmentremoval (Thomas)
- Do not modifydocs/about/removed-features.rst(Thomas & Daniel)
Quoted 15 lines
Philippe Mathieu-Daudé (13):
hw/arm/virt: Remove deprecated virt-2.6 machine hw/arm/virt: RemoveVirtMachineClass::no_pmufield hw/arm/virt: RemoveVirtMachineClass::disallow_affinity_adjustmenthw/arm/virt: Remove deprecated virt-2.7 machine hw/arm/virt: RemoveVirtMachineClass::no_itsfield hw/arm/virt: Remove deprecated virt-2.8 machine hw/arm/virt: RemoveVirtMachineClass::claim_edge_triggered_timers
field
hw/arm/virt: Remove deprecated virt-2.9 machine hw/arm/virt: Remove deprecated virt-2.10 machine hw/arm/virt: Remove deprecated virt-2.11 machine hw/arm/virt: RemoveVirtMachineClass::smbios_old_sys_verfield hw/arm/virt: Remove deprecated virt-2.12 machine hw/arm/virt: RemoveVirtMachineClass::no_highmem_ecamfield
Applied to target-arm.next, thanks (with the tweak RTH points out to avoid a compilation failure in patch 3).
-- PMM
Quoted 26 lines · Peter Maydell
Quoted 9 lines · Philippe Mathieu-Daudé
The versioned 'virt' machines up to 2.12 been marked as deprecated two releases ago, and are older than 6 years, so according to our support policy we can remove them. Remove associated dead code.
Since v1:
- Correcteddisallow_affinity_adjustmentremoval (Thomas)
- Do not modifydocs/about/removed-features.rst(Thomas & Daniel)Quoted 15 lines
Philippe Mathieu-Daudé (13):
hw/arm/virt: Remove deprecated virt-2.6 machine hw/arm/virt: RemoveVirtMachineClass::no_pmufield hw/arm/virt: RemoveVirtMachineClass::disallow_affinity_adjustmenthw/arm/virt: Remove deprecated virt-2.7 machine hw/arm/virt: RemoveVirtMachineClass::no_itsfield hw/arm/virt: Remove deprecated virt-2.8 machine hw/arm/virt: RemoveVirtMachineClass::claim_edge_triggered_timers
field
hw/arm/virt: Remove deprecated virt-2.9 machine hw/arm/virt: Remove deprecated virt-2.10 machine hw/arm/virt: Remove deprecated virt-2.11 machine hw/arm/virt: RemoveVirtMachineClass::smbios_old_sys_verfield hw/arm/virt: Remove deprecated virt-2.12 machine hw/arm/virt: RemoveVirtMachineClass::no_highmem_ecamfield
Quoted 2 lines
Applied to target-arm.next, thanks (with the tweak RTH points out to avoid a compilation failure in patch 3).
Thank you for tweaking :)