Skip to contentSkip to conversation

docs/about: Mark the old pc-i440fx-2.0 - 2.3 machine types as deprecated

PATCH In review Thomas Huth 3 participants 5 messages Oct 6, 2023 – Dec 25, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs/about: Mark the old pc-i440fx-2.0 - 2.3 machine types as deprecated

As we've seen in the past, it's useful for deprecating old machine types to finally be able to get of legacy code or do other clean-ups (see e.g. commit ea985d235b868047 that was used to drop the PCI code in the 128k bios binaries to free some precious space in those binaries).

So let's continue deprecating the oldest pc machine types. QEMU 2.3 has been released 8 years ago, so that's plenty of time since such machine types have been used by default, thus deprecating pc-i440fx-2.0 up to pc-i440fx-2.3 should be fine nowadays.

---
 docs/about/deprecated.rst | 8 ++++++++
 hw/i386/pc_piix.c         | 1 +
 2 files changed, 9 insertions(+)
docs/about/deprecated.rst +8 -0
index e43de9c183..c016bb9b20 100644
@@ -277,6 +277,14 @@ deprecated; use the new name ``dtb-randomness`` instead. The new name
 better reflects the way this property affects all random data within
 the device tree blob, not just the ``kaslr-seed`` node.
 
+``pc-i440fx-2.0`` up to ``pc-i440fx-2.3`` (since 8.2)
+'''''''''''''''''''''''''''''''''''''''''''''''''''''
+
+These old machine types are quite neglected nowadays and thus might have
+various pitfalls with regards to live migration. Use a newer machine type
+instead.
+
+
 Backend options
 ---------------
 
hw/i386/pc_piix.c +1 -0
index ff8654ecda..9789e9e75c 100644
@@ -784,6 +784,7 @@ static void pc_i440fx_2_3_machine_options(MachineClass *m)
 {
     pc_i440fx_2_4_machine_options(m);
     m->hw_version = "2.3.0";
+    m->deprecation_reason = "old and unattended - use a newer version instead";
     compat_props_add(m->compat_props, hw_compat_2_3, hw_compat_2_3_len);
     compat_props_add(m->compat_props, pc_compat_2_3, pc_compat_2_3_len);
 }
Signature · 1 line
2.41.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Thomas Huth

As we've seen in the past, it's useful for deprecating old machine types to finally be able to get of legacy code or do other clean-ups (see e.g. commit ea985d235b868047 that was used to drop the PCI code in the 128k bios binaries to free some precious space in those binaries).

So let's continue deprecating the oldest pc machine types. QEMU 2.3 has been released 8 years ago, so that's plenty of time since such machine types have been used by default, thus deprecating pc-i440fx-2.0 up to pc-i440fx-2.3 should be fine nowadays.

Quoted 5 lines
---
  docs/about/deprecated.rst | 8 ++++++++
  hw/i386/pc_piix.c         | 1 +
  2 files changed, 9 insertions(+)
#2 lore raw
In reply to Thomas Huth
Quoted 24 lines · Thomas Huth

As we've seen in the past, it's useful for deprecating old machine types to finally be able to get of legacy code or do other clean-ups (see e.g. commit ea985d235b868047 that was used to drop the PCI code in the 128k bios binaries to free some precious space in those binaries).

So let's continue deprecating the oldest pc machine types. QEMU 2.3 has been released 8 years ago, so that's plenty of time since such machine types have been used by default, thus deprecating pc-i440fx-2.0 up to pc-i440fx-2.3 should be fine nowadays.

---
 docs/about/deprecated.rst | 8 ++++++++
 hw/i386/pc_piix.c         | 1 +
 2 files changed, 9 insertions(+)
docs/about/deprecated.rst +0 -0
index e43de9c183..c016bb9b20 100644
@@ -277,6 +277,14 @@ deprecated; use the new name ``dtb-randomness`` instead. The new name
 better reflects the way this property affects all random data within
 the device tree blob, not just the ``kaslr-seed`` node.
 

docs/about/deprecated.rst deprecated; use the new name ``dtb-randomness`` instead. The new name · line 289

Quoted 10 lines
docs/about/deprecated.rst +8 -0
+``pc-i440fx-2.0`` up to ``pc-i440fx-2.3`` (since 8.2)
+'''''''''''''''''''''''''''''''''''''''''''''''''''''
+
+These old machine types are quite neglected nowadays and thus might have
+various pitfalls with regards to live migration. Use a newer machine type
+instead.
+
+
 Backend options
 ---------------

Wait a sec. Which tree is this against?
I don't see this context ever since:

commit f59fb1889f480b0324a7ed0404a68ad5a0ad4f6c

Author: Thomas Huth <[email protected]>
Date:   Mon Jan 17 20:16:39 2022 +0100

hw/i386/pc_piix: Mark the machine types from version 1.4 to 1.7 as deprecated

Also, do we intentionally keep 1.8 and 1.9 as not deprecated?

Quoted 14 lines
hw/i386/pc_piix.c +1 -0
index ff8654ecda..9789e9e75c 100644
@@ -784,6 +784,7 @@ static void pc_i440fx_2_3_machine_options(MachineClass *m)
 {
     pc_i440fx_2_4_machine_options(m);
     m->hw_version = "2.3.0";
+    m->deprecation_reason = "old and unattended - use a newer version instead";
     compat_props_add(m->compat_props, hw_compat_2_3, hw_compat_2_3_len);
     compat_props_add(m->compat_props, pc_compat_2_3, pc_compat_2_3_len);
 }
Signature · 1 line
2.41.0
#3 lore raw
Quoted 25 lines · Michael S. Tsirkin
Quoted 24 lines · Thomas Huth

As we've seen in the past, it's useful for deprecating old machine types to finally be able to get of legacy code or do other clean-ups (see e.g. commit ea985d235b868047 that was used to drop the PCI code in the 128k bios binaries to free some precious space in those binaries).

So let's continue deprecating the oldest pc machine types. QEMU 2.3 has been released 8 years ago, so that's plenty of time since such machine types have been used by default, thus deprecating pc-i440fx-2.0 up to pc-i440fx-2.3 should be fine nowadays.

---
  docs/about/deprecated.rst | 8 ++++++++
  hw/i386/pc_piix.c         | 1 +
  2 files changed, 9 insertions(+)
docs/about/deprecated.rst +0 -0
index e43de9c183..c016bb9b20 100644
@@ -277,6 +277,14 @@ deprecated; use the new name ``dtb-randomness`` instead. The new name
  better reflects the way this property affects all random data within
  the device tree blob, not just the ``kaslr-seed`` node.
 
Quoted 12 lines

docs/about/deprecated.rst deprecated; use the new name ``dtb-randomness`` instead. The new name · line 289

Quoted 10 lines
docs/about/deprecated.rst +8 -0
+``pc-i440fx-2.0`` up to ``pc-i440fx-2.3`` (since 8.2)
+'''''''''''''''''''''''''''''''''''''''''''''''''''''
+
+These old machine types are quite neglected nowadays and thus might have
+various pitfalls with regards to live migration. Use a newer machine type
+instead.
+
+
  Backend options
  ---------------

Wait a sec. Which tree is this against?

It should be against master. The patch still applies cleanly for me... could you please double-check whether your master branch is up to date?

Quoted 7 lines

I don't see this context ever since:

commit f59fb1889f480b0324a7ed0404a68ad5a0ad4f6c

Author: Thomas Huth <[email protected]>
Date:   Mon Jan 17 20:16:39 2022 +0100

hw/i386/pc_piix: Mark the machine types from version 1.4 to 1.7 as deprecated

It's the context that has been left after Paolo moved the previous entries from deprecated.rst to removed-features.rst:

https://gitlab.com/thuth/qemu/-/commit/ea985d235b868047cb4d8cb5657bc

Quoted 1 line

Also, do we intentionally keep 1.8 and 1.9 as not deprecated?

There never was a QEMU version 1.8 or 1.9, so there were never such machine types.

Thomas

#4 lore raw
Quoted 38 lines · Thomas Huth
Quoted 28 lines · Michael S. Tsirkin
Quoted 27 lines · Thomas Huth

As we've seen in the past, it's useful for deprecating old machine types to finally be able to get of legacy code or do other clean-ups (see e.g. commit ea985d235b868047 that was used to drop the PCI code in the 128k bios binaries to free some precious space in those binaries).

So let's continue deprecating the oldest pc machine types. QEMU 2.3 has been released 8 years ago, so that's plenty of time since such machine types have been used by default, thus deprecating pc-i440fx-2.0 up to pc-i440fx-2.3 should be fine nowadays.

---
  docs/about/deprecated.rst | 8 ++++++++
  hw/i386/pc_piix.c         | 1 +
  2 files changed, 9 insertions(+)
docs/about/deprecated.rst +4 -0
index e43de9c183..c016bb9b20 100644
@@ -277,6 +277,14 @@ deprecated; use the new name ``dtb-randomness`` instead. The new name
  better reflects the way this property affects all random data within
  the device tree blob, not just the ``kaslr-seed`` node.
+``pc-i440fx-2.0`` up to ``pc-i440fx-2.3`` (since 8.2)
+'''''''''''''''''''''''''''''''''''''''''''''''''''''
+
+These old machine types are quite neglected nowadays and thus might have
Quoted 8 lines

docs/about/deprecated.rst deprecated; use the new name ``dtb-randomness`` instead. The new name · line 289

Quoted 6 lines
docs/about/deprecated.rst +4 -0
+various pitfalls with regards to live migration. Use a newer machine type
+instead.
+
+
  Backend options
  ---------------

Wait a sec. Which tree is this against?

Quoted 2 lines

It should be against master. The patch still applies cleanly for me... could you please double-check whether your master branch is up to date?

It is ... can you rebase on latest and repost?

Quoted 20 lines
Quoted 7 lines

I don't see this context ever since:

commit f59fb1889f480b0324a7ed0404a68ad5a0ad4f6c

Author: Thomas Huth <[email protected]>
Date:   Mon Jan 17 20:16:39 2022 +0100

hw/i386/pc_piix: Mark the machine types from version 1.4 to 1.7 as deprecated

It's the context that has been left after Paolo moved the previous entries from deprecated.rst to removed-features.rst:

https://gitlab.com/thuth/qemu/-/commit/ea985d235b868047cb4d8cb5657bc

Quoted 1 line

Also, do we intentionally keep 1.8 and 1.9 as not deprecated?

There never was a QEMU version 1.8 or 1.9, so there were never such machine types.

Thomas