qemu-system-amd64 max cpus is too low for latest processors
Bug #2012763 reported by
Jeff Lane
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
qemu (Ubuntu) | Status tracked in Mantic | |||||
Jammy |
New
|
Undecided
|
Sergio Durigan Junior | |||
Lunar |
New
|
Undecided
|
Sergio Durigan Junior | |||
Mantic |
Confirmed
|
Critical
|
Sergio Durigan Junior |
Bug Description
During testing of an AMD Genoa CPU, it was discovered that qemu-system-amd64 doesn't support enough cpus.
The specific error the tester received was:
qemu-system-x86_64: Invalid SMP CPUs 384. The max supported by machine 'pc-q35-7.1' is 288
Looking at the sournce that seems to be an easy fix at first glance:
https:/
372 machine_
373 m->max_cpus = 288;
Related branches
~sergiodj/ubuntu/+source/qemu:max-cpu-too-low-jammy
Ready for review
for merging
into
ubuntu/+source/qemu:ubuntu/jammy-devel
- Christian Ehrhardt : Pending requested
- Canonical Server Reporter: Pending requested
-
Diff: 89 lines (+67/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/series (+1/-0)
debian/patches/ubuntu/lp2012763-maxcpus-too-low.patch (+59/-0)
To post a comment you must log in.
Hi Jeff,
thanks for the request, that is a known limit that is being worked on by various upstream projects.
The limit of 288 [1] was deliberately chosen for being the limits of testing at the time and limits of xapic [2].
There recently ~5.15 (which is jammy and later) has been a lift of thelimit on the kernel side [3][4], but that is only the first step.
You also need other components to be ready, like the smbios 3.0 entry point which is in seabios 1.16 (Kinetic and later) and edk2 (there it is rather old and should be ok for longer).
The work / discussions in qemu is ongoing as you might see in [5], but those haven't completed or landed yet - it is work in progress that has to complete and stabilize. You see here that would be a post 7.2 change anyway.
There are more things in the stack which might need patching e.g. in libvirt or even higher parts, I haven't checked those yet - but overall this isn't a "change a number and done" change :-/
I hope that the upstream projects can continue their great work and complete it all, but right now despite looking like a simple number there is not enough confidence for all the implications yet to just bump up that number.
[1]: https:/ /gitlab. com/qemu- project/ qemu/-/ commit/ 00d0f9fd6602a27 b204f672ef5bc8e 69736c7ff1 /lists. gnu.org/ archive/ html/qemu- devel/2016- 11/msg02266. html /git.kernel. org/pub/ scm/linux/ kernel/ git/torvalds/ linux.git/ commit/ ?id=074c82c8f7c f8a46c3b81965f1 22599e3a133450 /git.kernel. org/pub/ scm/linux/ kernel/ git/torvalds/ linux.git/ commit/ ?id=da1bfd52b93 0726288d58f066b d668df9ce15260
[2]: https:/
[3]: https:/
[4]: https:/
[5]: https://<email address hidden>/