Skip to contentSkip to conversation

hw/arm: Remove deprecated virt-3.0 up to virt-4.0 machines

PATCH Applied Philippe Mathieu-Daudé 3 participants 7 messages Apr 29, 2025 – May 6, 2025

lore
Share & tools
lore
#0 lore raw

cover hw/arm: Remove deprecated virt-3.0 up to virt-4.0 machines

The versioned 'virt' machines up to 4.0 been marked as deprecated two releases ago, and are older than 6 years, so according to our support policy we can remove them.

Based-on: <[email protected]>

          "hw/arm: Remove virt-2.6 up to virt-2.12 machines"

Philippe Mathieu-Daudé (4):
hw/arm/virt: Update comment about Multiprocessor Affinity Register hw/arm/virt: Remove deprecated virt-3.0 machine hw/arm/virt: Remove deprecated virt-3.1 machine hw/arm/virt: Remove deprecated virt-4.0 machine

 hw/arm/virt.c | 28 +---------------------------
 1 file changed, 1 insertion(+), 27 deletions(-)
Signature · 1 line
2.47.1
#1 lore raw

PATCH 1/4 hw/arm/virt: Update comment about Multiprocessor Affinity Register

Support on ARMv7 has been dropped in commit 82bf7ae84ce ("target/arm: Remove KVM support for 32-bit Arm hosts"). Update the comment in virt_cpu_mp_affinity() to avoid mentioning it.

---
 hw/arm/virt.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
hw/arm/virt.c +1 -6
index 7e3933066f2..83bd1152804 100644
@@ -1767,12 +1767,7 @@ static uint64_t virt_cpu_mp_affinity(VirtMachineState *vms, int idx)
     VirtMachineClass *vmc = VIRT_MACHINE_GET_CLASS(vms);
 
     /*
-     * 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)
+     * Adjust MPIDR to make TCG consistent (with 64-bit KVM hosts)
      * and to improve SGI efficiency.
      */
     if (vms->gic_version == VIRT_GIC_VERSION_2) {
Signature · 1 line
2.47.1
#2 lore raw

PATCH 2/4 hw/arm/virt: Remove deprecated virt-3.0 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
index 83bd1152804..f70d90d12eb 100644
@@ -3577,10 +3577,3 @@ static void virt_machine_3_1_options(MachineClass *mc)
     compat_props_add(mc->compat_props, hw_compat_3_1, hw_compat_3_1_len);
 }
 DEFINE_VIRT_MACHINE(3, 1)
-
-static void virt_machine_3_0_options(MachineClass *mc)
-{
-    virt_machine_3_1_options(mc);
-    compat_props_add(mc->compat_props, hw_compat_3_0, hw_compat_3_0_len);
-}
-DEFINE_VIRT_MACHINE(3, 0)
Signature · 1 line
2.47.1
#3 lore raw

PATCH 3/4 hw/arm/virt: Remove deprecated virt-3.1 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
index f70d90d12eb..bccbc54073e 100644
@@ -3570,10 +3570,3 @@ static void virt_machine_4_0_options(MachineClass *mc)
     compat_props_add(mc->compat_props, hw_compat_4_0, hw_compat_4_0_len);
 }
 DEFINE_VIRT_MACHINE(4, 0)
-
-static void virt_machine_3_1_options(MachineClass *mc)
-{
-    virt_machine_4_0_options(mc);
-    compat_props_add(mc->compat_props, hw_compat_3_1, hw_compat_3_1_len);
-}
-DEFINE_VIRT_MACHINE(3, 1)
Signature · 1 line
2.47.1
#4 lore raw

PATCH 4/4 hw/arm/virt: Remove deprecated virt-4.0 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
index bccbc54073e..f4e5a93f0c5 100644
@@ -3563,10 +3563,3 @@ static void virt_machine_4_1_options(MachineClass *mc)
     mc->auto_enable_numa_with_memhp = false;
 }
 DEFINE_VIRT_MACHINE(4, 1)
-
-static void virt_machine_4_0_options(MachineClass *mc)
-{
-    virt_machine_4_1_options(mc);
-    compat_props_add(mc->compat_props, hw_compat_4_0, hw_compat_4_0_len);
-}
-DEFINE_VIRT_MACHINE(4, 0)
Signature · 1 line
2.47.1
#6 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 5 lines · Philippe Mathieu-Daudé

The versioned 'virt' machines up to 4.0 been marked as deprecated two releases ago, and are older than 6 years, so according to our support policy we can remove them.

Quoted 9 lines

Based-on: <[email protected]>

          "hw/arm: Remove virt-2.6 up to virt-2.12 machines"

Philippe Mathieu-Daudé (4):
hw/arm/virt: Update comment about Multiprocessor Affinity Register hw/arm/virt: Remove deprecated virt-3.0 machine hw/arm/virt: Remove deprecated virt-3.1 machine hw/arm/virt: Remove deprecated virt-4.0 machine

Applied to target-arm.next, thanks.

-- PMM