Deprecate support for 32-bit x86 and arm hosts
v2 cover Deprecate support for 32-bit x86 and arm hosts
We're struggling quite badly with our CI minutes on the shared gitlab runners, so we urgently need to think of ways to cut down our supported build and target environments. qemu-system-i386 and qemu-system-arm are not really required anymore, since nobody uses KVM on the corresponding systems for production anymore, and the -x86_64 and -arch64 variants are a proper superset of those binaries. So it's time to deprecate them and the corresponding 32-bit host environments now.
This is a follow-up patch series from the previous discussion here:
https://lore.kernel.org/qemu-devel/[email protected]/
where people still mentioned that there is still interest in certain support for 32-bit host hardware. But as far as I could see, there is no real need for 32-bit x86 host support and for system emulation on 32-bit arm hosts anymore, so it should be fine if we drop these host environments soon (these are also the two architectures that contribute the most to the long test times in our CI, so we would benefit a lot by dropping those).
v2:
- Split binary and host deprecation into separate patches
- Added patches to immediately drop the jobs from the CI
Thomas Huth (6):
docs/about/deprecated: Deprecate the qemu-system-i386 binary docs/about/deprecated: Deprecate 32-bit x86 hosts gitlab-ci.d/crossbuilds: Drop the i386 jobs docs/about/deprecated: Deprecate the qemu-system-arm binary docs/about/deprecated: Deprecate 32-bit arm hosts gitlab-ci.d/crossbuilds: Drop the 32-bit arm system emulation jobs
docs/about/deprecated.rst | 43 ++++++++++++++++++++++++++++++++++++ .gitlab-ci.d/crossbuilds.yml | 30 ------------------------- 2 files changed, 43 insertions(+), 30 deletions(-)
Signature · 1 line
2.31.1
PATCH v2 1/6 docs/about/deprecated: Deprecate the qemu-system-i386 binary
Hardly anybody really requires the i386 binary anymore, since the qemu-system-x86_64 binary is a proper superset. So let's deprecate the 32-bit variant now, so that we can finally stop wasting our time and CI minutes with this.
With regards to 32-bit KVM support in the x86 Linux kernel, the developers confirmed that they do not need a recent qemu-system-i386 binary here:
https://lore.kernel.org/kvm/Y%[email protected]/
--- docs/about/deprecated.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+)
docs/about/deprecated.rst +12 -0
@@ -34,6 +34,18 @@ deprecating the build option and no longer defend it in CI. The ``--enable-gcov`` build option remains for analysis test case coverage. +``qemu-system-i386`` binary (since 8.0) +''''''''''''''''''''''''''''''''''''''' + +The ``qemu-system-i386`` binary was mainly useful for running with KVM +on 32-bit x86 hosts, but most Linux distributions already removed their +support for 32-bit x86 kernels, so hardly anybody still needs this. The +``qemu-system-x86_64`` binary is a proper superset and can be used to +run 32-bit guests by selecting a 32-bit CPU model, including KVM support +on x86_64 hosts. Thus users are recommended to reconfigure their systems +to use the ``qemu-system-x86_64`` binary instead. + + System emulator command line arguments --------------------------------------
Signature · 1 line
2.31.1
Re: [PATCH v2 1/6] docs/about/deprecated: Deprecate the qemu-system-i386 binary
Quoted 4 lines · Thomas Huth
Hardly anybody really requires the i386 binary anymore, since the qemu-system-x86_64 binary is a proper superset. So let's deprecate the 32-bit variant now, so that we can finally stop wasting our time and CI minutes with this.
The first sentence isn't quite true wrt to KVM. Change slightly to:
Aside from not supporting KVM on 32-bit hosts, the qemu-system-x86_64 binary is a proper superset of the qemu-system-i386 binary. With the 32-bit host support being deprecated, it is now also possible to deprecate the qemu-system-i386 binary.
Quoted 10 lines
With regards to 32-bit KVM support in the x86 Linux kernel, the developers confirmed that they do not need a recent qemu-system-i386 binary here:
https://lore.kernel.org/kvm/Y%[email protected]/
Signed-off-by Thomas Huth <[email protected]>--- docs/about/deprecated.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+)
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 :|
Wilfred Mallawa
Reviewed-byRe: [PATCH v2 1/6] docs/about/deprecated: Deprecate the qemu-system-i386 binary
Quoted 7 lines · Daniel P. Berrangé
Quoted 5 lines · Thomas Huth
Hardly anybody really requires the i386 binary anymore, since the qemu-system-x86_64 binary is a proper superset. So let's deprecate the 32-bit variant now, so that we can finally stop wasting our time
and CI minutes with this.
Quoted 7 lines
The first sentence isn't quite true wrt to KVM. Change slightly to:
Aside from not supporting KVM on 32-bit hosts, the qemu-system-x86_64 binary is a proper superset of the qemu-system-i386 binary. With the 32-bit host support being deprecated, it is now also possible to deprecate the qemu-system-i386 binary.
+1
Quoted 4 lines
Quoted 4 lines
With regards to 32-bit KVM support in the x86 Linux kernel, the developers confirmed that they do not need a recent qemu-system-i386 binary here:
Quoted 8 lines
Quoted 6 lines
https://lore.kernel.org/kvm/Y%[email protected]/
Signed-off-by Thomas Huth <[email protected]>---
docs/about/deprecated.rst | 12 ++++++++++++1 file changed, 12 insertions(+)Reviewed-by Daniel P. Berrangé <[email protected]>
Quoted 4 lines
With regards,
Daniel
PATCH v2 2/6 docs/about/deprecated: Deprecate 32-bit x86 hosts
In reply to Thomas HuthHardly anybody still uses 32-bit x86 hosts today, so we should start deprecating them to stop wasting our time and CI minutes here. For example, there are also still some unresolved problems with these:
When emulating 64-bit binaries in user mode, TCG does not honor atomicity for 64-bit accesses, which is "perhaps worse than not working at all" (quoting Richard). Let's simply make it clear that people should use 64-bit x86 hosts nowadays and we do not intend to fix/maintain the old 32-bit stuff.
--- docs/about/deprecated.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+)
docs/about/deprecated.rst +12 -0
@@ -208,6 +208,18 @@ CI coverage support may bitrot away before the deprecation process completes. The little endian variants of MIPS (both 32 and 64 bit) are still a supported host architecture. +32-bit x86 hosts (since 8.0) +'''''''''''''''''''''''''''' + +Support for 32-bit x86 host deployments is increasingly uncommon in +mainstream OS distributions given the widespread availability of 64-bit +x86 hardware. The QEMU project no longer considers 32-bit x86 support +to be an effective use of its limited resources, and thus intends to +discontinue it. Since all recent x86 hardware from the past >10 years +is capable of the 64-bit x86 extensions, a corresponding 64-bit OS +should be used instead. + + QEMU API (QAPI) events ----------------------
Signature · 1 line
2.31.1
Re: [PATCH v2 2/6] docs/about/deprecated: Deprecate 32-bit x86 hosts
Quoted 9 lines · Thomas Huth
Hardly anybody still uses 32-bit x86 hosts today, so we should start deprecating them to stop wasting our time and CI minutes here. For example, there are also still some unresolved problems with these:
When emulating 64-bit binaries in user mode, TCG does not honor atomicity for 64-bit accesses, which is "perhaps worse than not working at all" (quoting Richard). Let's simply make it clear that people should use 64-bit x86 hosts nowadays and we do not intend to fix/maintain the old 32-bit stuff.
Quoted 4 lines
Signed-off-by Thomas Huth <[email protected]>--- docs/about/deprecated.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+)
Quoted 27 lines
docs/about/deprecated.rst +12
-0@@ -208,6 +208,18 @@ CI coverage support may bitrot away before the deprecation process completes. The little endian variants of MIPS (both 32 and 64 bit) are still a supported host architecture. +32-bit x86 hosts (since 8.0) +'''''''''''''''''''''''''''' + +Support for 32-bit x86 host deployments is increasingly uncommon in +mainstream OS distributions given the widespread availability of 64-bit +x86 hardware. The QEMU project no longer considers 32-bit x86 support +to be an effective use of its limited resources, and thus intends to +discontinue it. Since all recent x86 hardware from the past >10 years +is capable of the 64-bit x86 extensions, a corresponding 64-bit OS +should be used instead. + + QEMU API (QAPI) events ----------------------Signature · 1 line
2.31.1
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 :|
Re: [PATCH v2 2/6] docs/about/deprecated: Deprecate 32-bit x86 hosts
In reply to Thomas HuthQuoted 12 lines · Thomas Huth
Hardly anybody still uses 32-bit x86 hosts today, so we should start deprecating them to stop wasting our time and CI minutes here. For example, there are also still some unresolved problems with these:
When emulating 64-bit binaries in user mode, TCG does not honor atomicity
for 64-bit accesses, which is "perhaps worse than not working at all" (quoting Richard). Let's simply make it clear that people should use 64-bit x86 hosts nowadays and we do not intend to fix/maintain the old
32-bit stuff.
Quoted 4 lines
Signed-off-by Thomas Huth <[email protected]>---
docs/about/deprecated.rst | 12 ++++++++++++1 file changed, 12 insertions(+)
Quoted 29 lines
docs/about/deprecated.rst +0
-0@@ -208,6 +208,18 @@ CI coverage support may bitrot away before thedeprecation process
completes. The little endian variants of MIPS (both 32 and 64 bit) are
still a supported host architecture.
+32-bit x86 hosts (since 8.0) +''''''''''''''''''''''''''''docs/about/deprecated.rst +3
-0+ +Support for 32-bit x86 host deployments is increasingly uncommon in +mainstream OS distributions given the widespread availability of 64-bit
+x86 hardware. The QEMU project no longer considers 32-bit x86 supportdocs/about/deprecated.rst +2
-0+to be an effective use of its limited resources, and thus intends to +discontinue it. Since all recent x86 hardware from the past >10years
docs/about/deprecated.rst +4
-0+is capable of the 64-bit x86 extensions, a corresponding 64-bit OS +should be used instead. + +QEMU API (QAPI) events
----------------------
PATCH v2 3/6 gitlab-ci.d/crossbuilds: Drop the i386 jobs
In reply to Thomas HuthHardly anybody still uses 32-bit x86 environments for running QEMU, so let's stop wasting our scarce CI minutes with these jobs.
--- .gitlab-ci.d/crossbuilds.yml | 16 ---------------- 1 file changed, 16 deletions(-)
.gitlab-ci.d/crossbuilds.yml +0 -16
@@ -43,22 +43,6 @@ cross-arm64-user: variables: IMAGE: debian-arm64-cross -cross-i386-system: - extends: .cross_system_build_job - needs: - job: i386-fedora-cross-container - variables: - IMAGE: fedora-i386-cross - MAKE_CHECK_ARGS: check-qtest - -cross-i386-user: - extends: .cross_user_build_job - needs: - job: i386-fedora-cross-container - variables: - IMAGE: fedora-i386-cross - MAKE_CHECK_ARGS: check - cross-i386-tci: extends: .cross_accel_build_job timeout: 60m
Signature · 1 line
2.31.1
Re: [PATCH v2 3/6] gitlab-ci.d/crossbuilds: Drop the i386 jobs
Quoted 7 lines · Thomas Huth
Hardly anybody still uses 32-bit x86 environments for running QEMU, so let's stop wasting our scarce CI minutes with these jobs.
Signed-off-by Thomas Huth <[email protected]>--- .gitlab-ci.d/crossbuilds.yml | 16 ---------------- 1 file changed, 16 deletions(-)
There's still the mingw 32-bit x86 build, but probably wolrth keeping that until we actually stop 32-bit from a technical POV, because Stefan still publishes the 32-bit windows installers currently
Similarly the dockerfile can stay in case someone wants to reproduce a flaw locally
Quoted 30 lines
.gitlab-ci.d/crossbuilds.yml +0
-16@@ -43,22 +43,6 @@ cross-arm64-user: variables: IMAGE: debian-arm64-cross -cross-i386-system: - extends: .cross_system_build_job - needs: - job: i386-fedora-cross-container - variables: - IMAGE: fedora-i386-cross - MAKE_CHECK_ARGS: check-qtest - -cross-i386-user: - extends: .cross_user_build_job - needs: - job: i386-fedora-cross-container - variables: - IMAGE: fedora-i386-cross - MAKE_CHECK_ARGS: check - cross-i386-tci: extends: .cross_accel_build_job timeout: 60mSignature · 1 line
2.31.1
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 :|
Re: [PATCH v2 3/6] gitlab-ci.d/crossbuilds: Drop the i386 jobs
In reply to Thomas HuthQuoted 7 lines · Thomas Huth
Hardly anybody still uses 32-bit x86 environments for running QEMU, so let's stop wasting our scarce CI minutes with these jobs.
Signed-off-by Thomas Huth <[email protected]>---
.gitlab-ci.d/crossbuilds.yml | 16 ----------------1 file changed, 16 deletions(-)
Quoted 29 lines
.gitlab- renamed from .gitlab-ci.d/crossbuilds.yml +0
-0
ci.d/crossbuilds.yml
index101416080c..3ce51adf77100644.gitlab-ci.d/crossbuilds.yml +0
-0@@ -43,22 +43,6 @@ cross-arm64-user:variables:
IMAGE: debian-arm64-cross.gitlab-ci.d/crossbuilds.yml +0
-16-cross-i386-system: - extends: .cross_system_build_job - needs: - job: i386-fedora-cross-container - variables: - IMAGE: fedora-i386-cross - MAKE_CHECK_ARGS: check-qtest - -cross-i386-user: - extends: .cross_user_build_job - needs: - job: i386-fedora-cross-container - variables: - IMAGE: fedora-i386-cross - MAKE_CHECK_ARGS: check -cross-i386-tci:
extends: .cross_accel_build_job
timeout: 60m
PATCH v2 4/6 docs/about/deprecated: Deprecate the qemu-system-arm binary
In reply to Thomas Huthqemu-system-aarch64 is a proper superset of qemu-system-arm, and the latter was mainly still required for 32-bit KVM support. But this 32-bit KVM arm support has been dropped in the Linux kernel a couple of years ago already, so we don't really need qemu-system-arm anymore, thus deprecated it now.
--- docs/about/deprecated.rst | 10 ++++++++++ 1 file changed, 10 insertions(+)
docs/about/deprecated.rst +10 -0
@@ -45,6 +45,16 @@ run 32-bit guests by selecting a 32-bit CPU model, including KVM support on x86_64 hosts. Thus users are recommended to reconfigure their systems to use the ``qemu-system-x86_64`` binary instead. +``qemu-system-arm`` binary (since 8.0) +'''''''''''''''''''''''''''''''''''''' + +``qemu-system-aarch64`` is a proper superset of ``qemu-system-arm``. The +latter was mainly a requirement for running KVM on 32-bit arm hosts, but +this 32-bit KVM support has been removed some years ago already (see: +https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=541ad0150ca4 +). Thus the QEMU project will drop the ``qemu-system-arm`` binary in a +future release. Use ``qemu-system-aarch64`` instead. + System emulator command line arguments --------------------------------------
Signature · 1 line
2.31.1
Re: [PATCH v2 4/6] docs/about/deprecated: Deprecate the qemu-system-arm binary
Quoted 10 lines · Thomas Huth
qemu-system-aarch64 is a proper superset of qemu-system-arm, and the latter was mainly still required for 32-bit KVM support. But this 32-bit KVM arm support has been dropped in the Linux kernel a couple of years ago already, so we don't really need qemu-system-arm anymore, thus deprecated it now.
Signed-off-by Thomas Huth <[email protected]>--- docs/about/deprecated.rst | 10 ++++++++++ 1 file changed, 10 insertions(+)
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 :|
Re: [PATCH v2 4/6] docs/about/deprecated: Deprecate the qemu-system-arm binary
In reply to Thomas HuthQuoted 16 lines · Thomas Huth
qemu-system-aarch64 is a proper superset of qemu-system-arm, and the latter was mainly still required for 32-bit KVM support. But this 32-bit KVM arm support has been dropped in the Linux kernel a couple of years ago already, so we don't really need qemu-system-arm anymore, thus deprecated it now.
Signed-off-by Thomas Huth <[email protected]>--- docs/about/deprecated.rst | 10 ++++++++++ 1 file changed, 10 insertions(+)docs/about/deprecated.rst +0
-0
docs/about/deprecated.rst run 32-bit guests by selecting a 32-bit CPU model, including KVM support · line 53
Quoted 9 lines
docs/about/deprecated.rst +6
-0@@ -45,6 +45,16 @@ run 32-bit guests by selecting a 32-bit CPU model, including KVM support on x86_64 hosts. Thus users are recommended to reconfigure their systems to use the ``qemu-system-x86_64`` binary instead. +``qemu-system-arm`` binary (since 8.0) +'''''''''''''''''''''''''''''''''''''' + +``qemu-system-aarch64`` is a proper superset of ``qemu-system-arm``. The +latter was mainly a requirement for running KVM on 32-bit arm hosts, but +this 32-bit KVM support has been removed some years ago already (see:
s/some/few/?
docs/about/deprecated.rst run 32-bit guests by selecting a 32-bit CPU model, including KVM support · line 56
Quoted 3 lines
docs/about/deprecated.rst +3
-0+https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=541ad0150ca4 +). Thus the QEMU project will drop the ``qemu-system-arm`` binary in a +future release. Use ``qemu-system-aarch64`` instead.
If we unify, wouldn't it be simpler to name the single qemu-system binary emulating various ARM architectures as 'qemu-system-arm'?
Re: [PATCH v2 4/6] docs/about/deprecated: Deprecate the qemu-system-arm binary
Quoted 12 lines · Philippe Mathieu-Daudé
Quoted 11 lines · Thomas Huth
qemu-system-aarch64 is a proper superset of qemu-system-arm, and the latter was mainly still required for 32-bit KVM support. But this 32-bit KVM arm support has been dropped in the Linux kernel a couple of years ago already, so we don't really need qemu-system-arm anymore, thus deprecated it now.
Signed-off-by Thomas Huth <[email protected]>---
docs/about/deprecated.rst| 10 ++++++++++1 file changed, 10 insertions(+)
Quoted 16 lines
Quoted 10 lines
docs/about/deprecated.rst +0
-0@@ -45,6 +45,16 @@ run 32-bit guests by selecting a 32-bit CPU model,including KVM support
onx86_64hosts. Thus users are recommended to reconfigure their systems to use the ``qemu-system-x86_64`` binary instead. +``qemu-system-arm`` binary (since 8.0) +''''''''''''''''''''''''''''''''''''''docs/about/deprecated.rst run 32-bit guests by selecting a 32-bit CPU model, including KVM support · line 53
Quoted 4 lines
docs/about/deprecated.rst +4
-0+ +``qemu-system-aarch64`` is a proper superset of ``qemu-system-arm``. The +latter was mainly a requirement for running KVM on 32-bit arm hosts, but +this 32-bit KVM support has been removed some years ago already (see:s/some/few/?
I can also use "three years ago" since the patch had been merged in March 2020.
Quoted 7 lines
docs/about/deprecated.rst run 32-bit guests by selecting a 32-bit CPU model, including KVM support · line 56
Quoted 4 lines
docs/about/deprecated.rst +3
-0+https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=541ad0150ca4 +). Thus the QEMU project will drop the ``qemu-system-arm`` binary in a +future release. Use ``qemu-system-aarch64`` instead.If we unify, wouldn't it be simpler to name the single qemu-system binary emulating various ARM architectures as 'qemu-system-arm'?
That would be more intuitive for people who are completely new to QEMU, but I guess it will cause a lot of "you broke my script that uses the -aarch64 binary" troubles again. So I think it's likely better to not go down that road.
Thomas
Re: [PATCH v2 4/6] docs/about/deprecated: Deprecate the qemu-system-arm binary
In reply to Thomas HuthQuoted 10 lines · Thomas Huth
qemu-system-aarch64 is a proper superset of qemu-system-arm, and the latter was mainly still required for 32-bit KVM support. But this 32-bit KVM arm support has been dropped in the Linux kernel a couple of years ago already, so we don't really need qemu-system-arm anymore, thus deprecated it now.
Signed-off-by Thomas Huth <[email protected]>---
docs/about/deprecated.rst | 10 ++++++++++1 file changed, 10 insertions(+)
Quoted 30 lines
docs/about/deprecated.rst +0
-0@@ -45,6 +45,16 @@ run 32-bit guests by selecting a 32-bit CPU model,including KVM support
onx86_64hosts. Thus users are recommended to reconfigure their systems
to use the ``qemu-system-x86_64`` binary instead.
+``qemu-system-arm`` binary (since 8.0) +''''''''''''''''''''''''''''''''''''''
+
+``qemu-system-aarch64`` is a proper superset of ``qemu-system-arm``. The
+latter was mainly a requirement for running KVM on 32-bit arm hosts, but
+this 32-bit KVM support has been removed some years ago already (see:
+
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/com
mit/?id=541ad0150ca4
+). Thus the QEMU project will drop the ``qemu-system-arm`` binary in adocs/about/deprecated.rst +2
-0+future release. Use ``qemu-system-aarch64`` instead. +
System emulator command line arguments
--------------------------------------
Re: [PATCH v2 4/6] docs/about/deprecated: Deprecate the qemu-system-arm binary
In reply to Thomas HuthQuoted 17 lines · Thomas Huth
qemu-system-aarch64 is a proper superset of qemu-system-arm, and the latter was mainly still required for 32-bit KVM support. But this 32-bit KVM arm support has been dropped in the Linux kernel a couple of years ago already, so we don't really need qemu-system-arm anymore, thus deprecated it now.
Signed-off-by Thomas Huth <[email protected]>--- docs/about/deprecated.rst | 10 ++++++++++ 1 file changed, 10 insertions(+)docs/about/deprecated.rst +0
-0
docs/about/deprecated.rst run 32-bit guests by selecting a 32-bit CPU model, including KVM support · line 51
Quoted 7 lines
docs/about/deprecated.rst +4
-0@@ -45,6 +45,16 @@ run 32-bit guests by selecting a 32-bit CPU model, including KVM support on x86_64 hosts. Thus users are recommended to reconfigure their systems to use the ``qemu-system-x86_64`` binary instead. +``qemu-system-arm`` binary (since 8.0) +'''''''''''''''''''''''''''''''''''''' + +``qemu-system-aarch64`` is a proper superset of ``qemu-system-arm``.
I think this is not quite true -- at the moment if you want "every feature we implement, 32-bit" the only way to get that is 'qemu-system-arm -cpu max'. The '-cpu max' on qemu-system-aarch64 is 64-bit, and we don't implement for TCG the "-cpu max,aarch64=off" syntax that we do for KVM that would let the user say "no 64-bit support".
thanks
-- PMM
Re: [PATCH v2 4/6] docs/about/deprecated: Deprecate the qemu-system-arm binary
Quoted 21 lines · Peter Maydell
Quoted 20 lines · Thomas Huth
qemu-system-aarch64 is a proper superset of qemu-system-arm, and the latter was mainly still required for 32-bit KVM support. But this 32-bit KVM arm support has been dropped in the Linux kernel a couple of years ago already, so we don't really need qemu-system-arm anymore, thus deprecated it now.
Signed-off-by Thomas Huth <[email protected]>--- docs/about/deprecated.rst | 10 ++++++++++ 1 file changed, 10 insertions(+)docs/about/deprecated.rst +0
-0@@ -45,6 +45,16 @@ run 32-bit guests by selecting a 32-bit CPU model, including KVM support on x86_64 hosts. Thus users are recommended to reconfigure their systems to use the ``qemu-system-x86_64`` binary instead.
Quoted 11 lines
docs/about/deprecated.rst run 32-bit guests by selecting a 32-bit CPU model, including KVM support
Quoted 4 lines
docs/about/deprecated.rst +4
-0+``qemu-system-arm`` binary (since 8.0) +'''''''''''''''''''''''''''''''''''''' + +``qemu-system-aarch64`` is a proper superset of ``qemu-system-arm``.I think this is not quite true -- at the moment if you want "every feature we implement, 32-bit" the only way to get that is 'qemu-system-arm -cpu max'. The '-cpu max' on qemu-system-aarch64 is 64-bit, and we don't implement for TCG the "-cpu max,aarch64=off" syntax that we do for KVM that would let the user say "no 64-bit support".
Ok ... so what does that mean now? ... can we continue with this patch, e.g. after rephrasing the text a little bit, or do we need to implement "-cpu max,aarch64=off" for TCG first?
Thomas
Re: [PATCH v2 4/6] docs/about/deprecated: Deprecate the qemu-system-arm binary
Quoted 34 lines · Thomas Huth
Quoted 21 lines · Peter Maydell
Quoted 20 lines · Thomas Huth
qemu-system-aarch64 is a proper superset of qemu-system-arm, and the latter was mainly still required for 32-bit KVM support. But this 32-bit KVM arm support has been dropped in the Linux kernel a couple of years ago already, so we don't really need qemu-system-arm anymore, thus deprecated it now.
Signed-off-by Thomas Huth <[email protected]>--- docs/about/deprecated.rst | 10 ++++++++++ 1 file changed, 10 insertions(+)docs/about/deprecated.rst +0
-0@@ -45,6 +45,16 @@ run 32-bit guests by selecting a 32-bit CPU model, including KVM support on x86_64 hosts. Thus users are recommended to reconfigure their systems to use the ``qemu-system-x86_64`` binary instead.Quoted 11 lines
docs/about/deprecated.rst run 32-bit guests by selecting a 32-bit CPU model, including KVM support
Quoted 4 lines
docs/about/deprecated.rst +4
-0+``qemu-system-arm`` binary (since 8.0) +'''''''''''''''''''''''''''''''''''''' + +``qemu-system-aarch64`` is a proper superset of ``qemu-system-arm``.I think this is not quite true -- at the moment if you want "every feature we implement, 32-bit" the only way to get that is 'qemu-system-arm -cpu max'. The '-cpu max' on qemu-system-aarch64 is 64-bit, and we don't implement for TCG the "-cpu max,aarch64=off" syntax that we do for KVM that would let the user say "no 64-bit support".
Quoted 3 lines
Ok ... so what does that mean now? ... can we continue with this patch, e.g. after rephrasing the text a little bit, or do we need to implement "-cpu max,aarch64=off" for TCG first?
I think we need to have a way to request the max 32-bit CPU before we deprecate, because deprecation has to tell people what they should use instead.
For qemu-system-i686 -cpu max, I guess we have lm=off to hide the 64-bit support, so that's OK from QEMU POV, but will need libvirt enhancement as I don't think we've taken that into account.
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 :|
PATCH v2 5/6 docs/about/deprecated: Deprecate 32-bit arm hosts
In reply to Thomas HuthFor running QEMU in system emulation mode, the user needs a rather strong host system, i.e. not only an embedded low-frequency controller. All recent beefy arm host machines should support 64-bit now, it's unlikely that anybody is still seriously using QEMU on a 32-bit arm CPU, so we deprecate the 32-bit arm hosts here to finally save use some time and precious CI minutes.
--- docs/about/deprecated.rst | 9 +++++++++ 1 file changed, 9 insertions(+)
docs/about/deprecated.rst +9 -0
@@ -229,6 +229,15 @@ discontinue it. Since all recent x86 hardware from the past >10 years is capable of the 64-bit x86 extensions, a corresponding 64-bit OS should be used instead. +System emulation on 32-bit arm hosts (since 8.0) +'''''''''''''''''''''''''''''''''''''''''''''''' + +Since QEMU needs a strong host machine for running full system emulation, and +all recent powerful arm hosts support 64-bit, the QEMU project deprecates the +support for running any system emulation on 32-bit arm hosts in general. Use +64-bit arm hosts for system emulation instead. (Note: "user" mode emulation +continuous to be supported on 32-bit arm hosts, too) + QEMU API (QAPI) events ----------------------
Signature · 1 line
2.31.1
Re: [PATCH v2 5/6] docs/about/deprecated: Deprecate 32-bit arm hosts
Quoted 11 lines · Thomas Huth
For running QEMU in system emulation mode, the user needs a rather strong host system, i.e. not only an embedded low-frequency controller. All recent beefy arm host machines should support 64-bit now, it's unlikely that anybody is still seriously using QEMU on a 32-bit arm CPU, so we deprecate the 32-bit arm hosts here to finally save use some time and precious CI minutes.
Signed-off-by Thomas Huth <[email protected]>--- docs/about/deprecated.rst | 9 +++++++++ 1 file changed, 9 insertions(+)
Quoted 6 lines
docs/about/deprecated.rst +0
-0@@ -229,6 +229,15 @@ discontinue it. Since all recent x86 hardware from the past >10 years is capable of the 64-bit x86 extensions, a corresponding 64-bit OS
docs/about/deprecated.rst discontinue it. Since all recent x86 hardware from the past >10 years · line 239
Quoted 10 lines
docs/about/deprecated.rst +8
-0should be used instead. +System emulation on 32-bit arm hosts (since 8.0) +'''''''''''''''''''''''''''''''''''''''''''''''' + +Since QEMU needs a strong host machine for running full system emulation, and +all recent powerful arm hosts support 64-bit, the QEMU project deprecates the +support for running any system emulation on 32-bit arm hosts in general. Use +64-bit arm hosts for system emulation instead. (Note: "user" mode emulation +continuous to be supported on 32-bit arm hosts, too)
s/continuous/continues/
s/,too/, as well as command line tools like qemu-img, qemu-nbd, etc/
Quoted 7 lines
docs/about/deprecated.rst +1
-0+ QEMU API (QAPI) events ----------------------Signature · 1 line
2.31.1
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 :|
Re: [PATCH v2 5/6] docs/about/deprecated: Deprecate 32-bit arm hosts
In reply to Thomas HuthQuoted 8 lines · Thomas Huth
For running QEMU in system emulation mode, the user needs a rather strong host system, i.e. not only an embedded low-frequency controller.
All recent beefy arm host machines should support 64-bit now, it's unlikely that anybody is still seriously using QEMU on a 32-bit arm CPU, so we deprecate the 32-bit arm hosts here to finally save use some time and precious CI minutes.
Quoted 4 lines
Signed-off-by Thomas Huth <[email protected]>---
docs/about/deprecated.rst | 9 +++++++++1 file changed, 9 insertions(+)
Quoted 26 lines
docs/about/deprecated.rst +0
-0@@ -229,6 +229,15 @@ discontinue it. Since all recent x86 hardwarefrom the past >10 years
is capable of the 64-bit x86 extensions, a corresponding 64-bit OS should be used instead.docs/about/deprecated.rst +4
-0+System emulation on 32-bit arm hosts (since 8.0) +'''''''''''''''''''''''''''''''''''''''''''''''' + +Since QEMU needs a strong host machine for running full systememulation, and
+all recent powerful arm hosts support 64-bit, the QEMU project deprecates the
+support for running any system emulation on 32-bit arm hosts in general. Use
+64-bit arm hosts for system emulation instead. (Note: "user" mode emulationdocs/about/deprecated.rst +2
-0+continuous to be supported on 32-bit arm hosts, too) +
QEMU API (QAPI) events
----------------------
PATCH v2 6/6 gitlab-ci.d/crossbuilds: Drop the 32-bit arm system emulation jobs
In reply to Thomas HuthHardly anybody still uses 32-bit arm environments for running QEMU, so let's stop wasting our scarce CI minutes with these jobs.
--- .gitlab-ci.d/crossbuilds.yml | 14 -------------- 1 file changed, 14 deletions(-)
.gitlab-ci.d/crossbuilds.yml +0 -14
@@ -1,13 +1,6 @@ include: - local: '/.gitlab-ci.d/crossbuild-template.yml' -cross-armel-system: - extends: .cross_system_build_job - needs: - job: armel-debian-cross-container - variables: - IMAGE: debian-armel-cross - cross-armel-user: extends: .cross_user_build_job needs:
@@ -15,13 +8,6 @@ cross-armel-user: variables: IMAGE: debian-armel-cross -cross-armhf-system: - extends: .cross_system_build_job - needs: - job: armhf-debian-cross-container - variables: - IMAGE: debian-armhf-cross - cross-armhf-user: extends: .cross_user_build_job needs:
Signature · 1 line
2.31.1
Re: [PATCH v2 6/6] gitlab-ci.d/crossbuilds: Drop the 32-bit arm system emulation jobs
Quoted 7 lines · Thomas Huth
Hardly anybody still uses 32-bit arm environments for running QEMU, so let's stop wasting our scarce CI minutes with these jobs.
Signed-off-by Thomas Huth <[email protected]>--- .gitlab-ci.d/crossbuilds.yml | 14 -------------- 1 file changed, 14 deletions(-)
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 :|
Re: [PATCH v2 6/6] gitlab-ci.d/crossbuilds: Drop the 32-bit arm system emulation jobs
In reply to Thomas HuthQuoted 7 lines · Thomas Huth
Hardly anybody still uses 32-bit arm environments for running QEMU, so let's stop wasting our scarce CI minutes with these jobs.
Signed-off-by Thomas Huth <[email protected]>--- .gitlab-ci.d/crossbuilds.yml | 14 -------------- 1 file changed, 14 deletions(-)
Re: [PATCH v2 6/6] gitlab-ci.d/crossbuilds: Drop the 32-bit arm system emulation jobs
In reply to Thomas HuthQuoted 7 lines · Thomas Huth
Hardly anybody still uses 32-bit arm environments for running QEMU, so let's stop wasting our scarce CI minutes with these jobs.
Signed-off-by Thomas Huth <[email protected]>---
.gitlab-ci.d/crossbuilds.yml | 14 --------------1 file changed, 14 deletions(-)
Quoted 34 lines
.gitlab- renamed from .gitlab-ci.d/crossbuilds.yml +0
-0
ci.d/crossbuilds.yml
index3ce51adf77..419b0c2fe1100644.gitlab-ci.d/crossbuilds.yml +0
-0@@ -1,13 +1,6 @@include:
- local: '/.gitlab-ci.d/crossbuild-template.yml'.gitlab-ci.d/crossbuilds.yml +0
-7-cross-armel-system: - extends: .cross_system_build_job - needs: - job: armel-debian-cross-container - variables: - IMAGE: debian-armel-cross -cross-armel-user:
extends: .cross_user_build_job
needs:.gitlab-ci.d/crossbuilds.yml +0
-0@@ -15,13 +8,6 @@ cross-armel-user:variables:
IMAGE: debian-armel-cross.gitlab-ci.d/crossbuilds.yml +0
-7-cross-armhf-system: - extends: .cross_system_build_job - needs: - job: armhf-debian-cross-container - variables: - IMAGE: debian-armhf-cross -cross-armhf-user:
extends: .cross_user_build_job
needs:
Quoted 13 lines · Thomas Huth
We're struggling quite badly with our CI minutes on the shared gitlab runners, so we urgently need to think of ways to cut down our supported build and target environments. qemu-system-i386 and qemu-system-arm are not really required anymore, since nobody uses KVM on the corresponding systems for production anymore, and the -x86_64 and -arch64 variants are a proper superset of those binaries. So it's time to deprecate them and the corresponding 32-bit host environments now.
This is a follow-up patch series from the previous discussion here:
Quoted 7 lines
where people still mentioned that there is still interest in certain support for 32-bit host hardware. But as far as I could see, there is no real need for 32-bit x86 host support and for system emulation on 32-bit arm hosts anymore, so it should be fine if we drop these host environments soon (these are also the two architectures that contribute the most to the long test times in our CI, so we would benefit a lot by dropping those).
It is not clear from your cover that the deprecation only concern system emulation on these hosts, not user emulation.
I wonder about tools. Apparently they depend on sysemu now. I was building a 'configure --enable-tools --disable-system' but now it is empty.
Quoted 23 lines · Philippe Mathieu-Daudé
Quoted 14 lines · Thomas Huth
We're struggling quite badly with our CI minutes on the shared gitlab runners, so we urgently need to think of ways to cut down our supported build and target environments. qemu-system-i386 and qemu-system-arm are not really required anymore, since nobody uses KVM on the corresponding systems for production anymore, and the -x86_64 and -arch64 variants are a proper superset of those binaries. So it's time to deprecate them and the corresponding 32-bit host environments now.
This is a follow-up patch series from the previous discussion here:
Quoted 7 lines
where people still mentioned that there is still interest in certain support for 32-bit host hardware. But as far as I could see, there is no real need for 32-bit x86 host support and for system emulation on 32-bit arm hosts anymore, so it should be fine if we drop these host environments soon (these are also the two architectures that contribute the most to the long test times in our CI, so we would benefit a lot by dropping those).
Quoted 2 lines
It is not clear from your cover that the deprecation only concern system emulation on these hosts, not user emulation.
x86 ==> deprecate both, user and system emulation support on
32-bit hosts
arm ==> deprecate only system emulation on 32-bit hosts.
I tried to say it with the sentence "there is no real need for 32-bit x86 host support and for system emulation on 32-bit arm hosts anymore, so it should be fine if we drop these host environments soon" ... not sure why it's unclear, but if you have some better sentences, I'm open for suggestions.
Quoted 3 lines
I wonder about tools. Apparently they depend on sysemu now. I was building a 'configure --enable-tools --disable-system' but now it is empty.
I just did a try in a fresh build directory, and for me it was working: it builds qemu-img, qemu-io, qemu-edid etc. just fine.
What was missing in your case?
Thomas
Hello!
Quoted 3 lines · Thomas Huth
x86 ==> deprecate both, user and system emulation support on
32-bit hosts
arm ==> deprecate only system emulation on 32-bit hosts.
I would recommend against dropping support for 32-bit hosts for qemu-user as there are some cases where the emulation of 32-bit user code on 64-bit hosts does not work properly [1].
Adrian
Quoted 1 line
Signature · 4 lines
.''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Quoted 7 lines · John Paul Adrian Glaubitz
Hello!
Quoted 3 lines · Thomas Huth
x86 ==> deprecate both, user and system emulation support on
32-bit hosts
arm ==> deprecate only system emulation on 32-bit hosts.
Quoted 7 lines
I would recommend against dropping support for 32-bit hosts for qemu-user as there are some cases where the emulation of 32-bit user code on 64-bit hosts does not work properly [1].
Adrian
Quoted 1 line
The ticket is very long and hard to read, but ... oh my, does that mean you need to compile qemu-user in 32-bit mode on a 64-bit x86 host to properly run 32-bit binaries from other architectures? ... uh, that's ugly ... and sounds like bug in QEMU's user mode emulation ... and what if you're running a distro (or different 64-bit host architecutre) that does not support 32-bit userspace libraries anymore? Then you're lost?
Thomas
Hi Thomas!
Quoted 6 lines · Thomas Huth
The ticket is very long and hard to read, but ... oh my, does that mean you need to compile qemu-user in 32-bit mode on a 64-bit x86 host to properly run 32-bit binaries from other architectures? ... uh, that's ugly ... and sounds like bug in QEMU's user mode emulation ... and what if you're running a distro (or different 64-bit host architecutre) that does not support 32-bit userspace libraries anymore? Then you're lost?
Perhaps the explanation here by Florian Weimer is a bit easier to understand:
Quoted 1 line
Adrian
Signature · 4 lines
.''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Quoted 8 lines · John Paul Adrian Glaubitz
Hello!
Quoted 3 lines · Thomas Huth
x86 ==> deprecate both, user and system emulation support on
32-bit hosts
arm ==> deprecate only system emulation on 32-bit hosts.
Quoted 7 lines
I would recommend against dropping support for 32-bit hosts for qemu-user as there are some cases where the emulation of 32-bit user code on 64-bit hosts does not work properly [1].
Adrian
Quoted 1 line
I failed entirely to get any traction with persuading the kernel folks to provide an API to let QEMU work in that "32-bit guest wants a 32-bit dirent but the kernel is providing a 64-bit hash value as a dirent" case. Somebody kindly wrote some kernel patches but they went absolutely nowhere.
It seems to only happen for certain kinds of 32-bit guest, where the guest libc is not also using 64-bit dirents. So at least as far as Arm guests are concerned the effective result was "the older arm binaries that were built to need a 32-bit dirent are just not around any more, so very few people run into the problem". You can also work around it by using a different host filesystem type, I think.
thanks
-- PMM