Skip to contentSkip to conversation

deprecation: x86 default machine types

PATCH In review Dr. David Alan Gilbert (git) 3 participants 6 messages Mar 1, 2022 – Mar 3, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 deprecation: x86 default machine types

From: "Dr. David Alan Gilbert" <[email protected]>

Declare the intent to require a machine type to be specified on x86 system emulation.

---
 docs/about/deprecated.rst | 8 ++++++++
 1 file changed, 8 insertions(+)
docs/about/deprecated.rst +8 -0
index 85773db631..143c60d105 100644
@@ -324,6 +324,14 @@ machine is hardly emulated at all (e.g. neither the LCD nor the USB part had
 been implemented), so there is not much value added by this board. Use the
 ``ref405ep`` machine instead.
 
+x86 default machine type
+''''''''''''''''''''''''
+
+x86 currently defaults to the ```pc``` machine type which is based on the very
+old ```i440fx``` chipset.  This default will be removed and the user will be
+required to specify a machine type explicitly using -M; users are encouraged to
+switch to the not quite as old ```q35``` machine types.
+
 Backend options
 ---------------
 
Signature · 1 line
2.35.1
#1 lore raw
Quoted 15 lines · Dr. David Alan Gilbert (git)

From: "Dr. David Alan Gilbert" <[email protected]>

Declare the intent to require a machine type to be specified on x86 system emulation.

---
 docs/about/deprecated.rst | 8 ++++++++
 1 file changed, 8 insertions(+)
docs/about/deprecated.rst +0 -0
index 85773db631..143c60d105 100644

docs/about/deprecated.rst machine is hardly emulated at all (e.g. neither the LCD nor the USB part had · line 333

Quoted 10 lines
docs/about/deprecated.rst +7 -0
@@ -324,6 +324,14 @@ machine is hardly emulated at all (e.g. neither the LCD nor the USB part had
 been implemented), so there is not much value added by this board. Use the
 ``ref405ep`` machine instead.
 
+x86 default machine type
+''''''''''''''''''''''''
+
+x86 currently defaults to the ```pc``` machine type which is based on the very
+old ```i440fx``` chipset.  This default will be removed and the user will be
+required to specify a machine type explicitly using -M; users are encouraged to
+switch to the not quite as old ```q35``` machine types.

This will have no impact on anyone using libvirt as a mgmt app, because it will explicitly set 'pc' if the user doesn't request a machine type.

It will, however, break a huge number of users who don't use libvirt or a similar mgmt app.

'q35' is not a drop in replacement for 'pc', and even though it is slightly newer, the features it brings are not likely to be important enough for most users who aren't using a mgmt app to care about switching.

In the ongoing work to introduce a completely new system emulator binary that is exclusively runtime QMP configured, the machine type will almost certainly be mandatory, without affecting existing users. That would also apply consistently across all target arches.

Overall I'm just not seeing enough benefit to justify the disruption we'll cause by making this change to existing system emulator binaries.

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 :|
#2 lore raw
Quoted 31 lines · * Daniel P. Berrangé ([email protected]) wrote:
Quoted 15 lines · Dr. David Alan Gilbert (git)

From: "Dr. David Alan Gilbert" <[email protected]>

Declare the intent to require a machine type to be specified on x86 system emulation.

---
 docs/about/deprecated.rst | 8 ++++++++
 1 file changed, 8 insertions(+)
docs/about/deprecated.rst +0 -0
index 85773db631..143c60d105 100644

docs/about/deprecated.rst machine is hardly emulated at all (e.g. neither the LCD nor the USB part had · line 333

Quoted 10 lines
docs/about/deprecated.rst +7 -0
@@ -324,6 +324,14 @@ machine is hardly emulated at all (e.g. neither the LCD nor the USB part had
 been implemented), so there is not much value added by this board. Use the
 ``ref405ep`` machine instead.
 
+x86 default machine type
+''''''''''''''''''''''''
+
+x86 currently defaults to the ```pc``` machine type which is based on the very
+old ```i440fx``` chipset.  This default will be removed and the user will be
+required to specify a machine type explicitly using -M; users are encouraged to
+switch to the not quite as old ```q35``` machine types.

This will have no impact on anyone using libvirt as a mgmt app, because it will explicitly set 'pc' if the user doesn't request a machine type.

Quoted 7 lines

It will, however, break a huge number of users who don't use libvirt or a similar mgmt app.

'q35' is not a drop in replacement for 'pc', and even though it is slightly newer, the features it brings are not likely to be important enough for most users who aren't using a mgmt app to care about switching.

I can see it having advantages for those who do things like PCIe pass through of graphics cards.
However, my main concern is that there's a split happening where downstream we're working primarily on q35 but a lot of people still use i440fx; eventually that split will mean the i440fx users will have a pretty bad experience instability/features.
So I'd like to encourage them onto a35.

Ideally I'd like to make that easy; e.g. auto creating some of the PCIe busses.

Quoted 5 lines

In the ongoing work to introduce a completely new system emulator binary that is exclusively runtime QMP configured, the machine type will almost certainly be mandatory, without affecting existing users. That would also apply consistently across all target arches.

I'm assuming that will also cause the disruption to those end users.

Dave

Quoted 11 lines

Overall I'm just not seeing enough benefit to justify the disruption we'll cause by making this change to existing system emulator binaries.

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 :|
Signature · 1 line
Dr. David Alan Gilbert / [email protected] / Manchester, UK
#3 lore raw
Quoted 40 lines · Dr. David Alan Gilbert
Quoted 31 lines · * Daniel P. Berrangé ([email protected]) wrote:
Quoted 15 lines · Dr. David Alan Gilbert (git)

From: "Dr. David Alan Gilbert" <[email protected]>

Declare the intent to require a machine type to be specified on x86 system emulation.

---
 docs/about/deprecated.rst | 8 ++++++++
 1 file changed, 8 insertions(+)
docs/about/deprecated.rst +0 -0
index 85773db631..143c60d105 100644

docs/about/deprecated.rst machine is hardly emulated at all (e.g. neither the LCD nor the USB part had · line 333

Quoted 10 lines
docs/about/deprecated.rst +7 -0
@@ -324,6 +324,14 @@ machine is hardly emulated at all (e.g. neither the LCD nor the USB part had
 been implemented), so there is not much value added by this board. Use the
 ``ref405ep`` machine instead.
 
+x86 default machine type
+''''''''''''''''''''''''
+
+x86 currently defaults to the ```pc``` machine type which is based on the very
+old ```i440fx``` chipset.  This default will be removed and the user will be
+required to specify a machine type explicitly using -M; users are encouraged to
+switch to the not quite as old ```q35``` machine types.

This will have no impact on anyone using libvirt as a mgmt app, because it will explicitly set 'pc' if the user doesn't request a machine type.

Quoted 7 lines

It will, however, break a huge number of users who don't use libvirt or a similar mgmt app.

'q35' is not a drop in replacement for 'pc', and even though it is slightly newer, the features it brings are not likely to be important enough for most users who aren't using a mgmt app to care about switching.

Quoted 7 lines

I can see it having advantages for those who do things like PCIe pass through of graphics cards.
However, my main concern is that there's a split happening where downstream we're working primarily on q35 but a lot of people still use i440fx; eventually that split will mean the i440fx users will have a pretty bad experience instability/features.
So I'd like to encourage them onto a35.

We've still got quite significant testing coverage of i440fx and outside of PCI-Express much logic is shared with q35. Right now at least i440fx feels mature and stable, while q35 is still showing significant instability with PCI-Express and hotplug in particular. I'd hoppe at least the combination of maturity of our plain PCI code and testing coverage would address risk of significant regressions in i440fx even when attention is on q35.

Quoted 7 lines
Quoted 5 lines

In the ongoing work to introduce a completely new system emulator binary that is exclusively runtime QMP configured, the machine type will almost certainly be mandatory, without affecting existing users. That would also apply consistently across all target arches.

I'm assuming that will also cause the disruption to those end users.

The difference is that people would opt-in to usage of the new system binaries. So existing users, scripts and documentation won't be impacted unless they decide to switch - at least as long as we keep the old system emulators around. If did eventually decide to remove the old binaries, then there would be disruption but that's more of a clean break with the past.

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 :|
#4 lore raw
Quoted 49 lines · * Daniel P. Berrangé ([email protected]) wrote:
Quoted 40 lines · Dr. David Alan Gilbert
Quoted 31 lines · * Daniel P. Berrangé ([email protected]) wrote:
Quoted 15 lines · Dr. David Alan Gilbert (git)

From: "Dr. David Alan Gilbert" <[email protected]>

Declare the intent to require a machine type to be specified on x86 system emulation.

---
 docs/about/deprecated.rst | 8 ++++++++
 1 file changed, 8 insertions(+)
docs/about/deprecated.rst +0 -0
index 85773db631..143c60d105 100644

docs/about/deprecated.rst machine is hardly emulated at all (e.g. neither the LCD nor the USB part had · line 333

Quoted 10 lines
docs/about/deprecated.rst +7 -0
@@ -324,6 +324,14 @@ machine is hardly emulated at all (e.g. neither the LCD nor the USB part had
 been implemented), so there is not much value added by this board. Use the
 ``ref405ep`` machine instead.
 
+x86 default machine type
+''''''''''''''''''''''''
+
+x86 currently defaults to the ```pc``` machine type which is based on the very
+old ```i440fx``` chipset.  This default will be removed and the user will be
+required to specify a machine type explicitly using -M; users are encouraged to
+switch to the not quite as old ```q35``` machine types.

This will have no impact on anyone using libvirt as a mgmt app, because it will explicitly set 'pc' if the user doesn't request a machine type.

Quoted 7 lines

It will, however, break a huge number of users who don't use libvirt or a similar mgmt app.

'q35' is not a drop in replacement for 'pc', and even though it is slightly newer, the features it brings are not likely to be important enough for most users who aren't using a mgmt app to care about switching.

Quoted 7 lines

I can see it having advantages for those who do things like PCIe pass through of graphics cards.
However, my main concern is that there's a split happening where downstream we're working primarily on q35 but a lot of people still use i440fx; eventually that split will mean the i440fx users will have a pretty bad experience instability/features.
So I'd like to encourage them onto a35.

Quoted 7 lines

We've still got quite significant testing coverage of i440fx and outside of PCI-Express much logic is shared with q35. Right now at least i440fx feels mature and stable, while q35 is still showing significant instability with PCI-Express and hotplug in particular. I'd hoppe at least the combination of maturity of our plain PCI code and testing coverage would address risk of significant regressions in i440fx even when attention is on q35.

OK, lets drop this for now.

Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

In the ongoing work to introduce a completely new system emulator binary that is exclusively runtime QMP configured, the machine type will almost certainly be mandatory, without affecting existing users. That would also apply consistently across all target arches.

Quoted 8 lines
Quoted 1 line

I'm assuming that will also cause the disruption to those end users.

The difference is that people would opt-in to usage of the new system binaries. So existing users, scripts and documentation won't be impacted unless they decide to switch - at least as long as we keep the old system emulators around. If did eventually decide to remove the old binaries, then there would be disruption but that's more of a clean break with the past.

So I guess that when this happens people will be pushed to the new binaries and the old ones will degrade reasonably fast.

Dave

Quoted 7 lines

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 :|
Signature · 1 line
Dr. David Alan Gilbert / [email protected] / Manchester, UK
#5 lore raw
In reply to Daniel P. Berrangé
Quoted 3 lines · Daniel P. Berrangé

Overall I'm just not seeing enough benefit to justify the disruption we'll cause by making this change to existing system emulator binaries.

I agree.

Paolo