docs: i386: pc: Update maximum CPU numbers for PC Q35
From: Zhao Liu <[email protected]>
Commit e4e98c7eebfa ("pc: q35: Bump max_cpus to 4096 vcpus") increases the supported CPUs for PC Q35 machine.
Update maximum CPU numbers for PC Q35 in the document.
--- docs/system/target-i386-desc.rst.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
docs/system/target-i386-desc.rst.inc +1 -1
@@ -36,7 +36,7 @@ The QEMU PC System emulator simulates the following peripherals: - PCI UHCI, OHCI, EHCI or XHCI USB controller and a virtual USB-1.1 hub. -SMP is supported with up to 255 CPUs. +SMP is supported with up to 255 CPUs (and 4096 CPUs for PC Q35 machine). QEMU uses the PC BIOS from the Seabios project and the Plex86/Bochs LGPL VGA BIOS.
Signature · 1 line
2.34.1
Hi Zhao,
Quoted 17 lines · Zhao Liu
From: Zhao Liu <[email protected]>
Commit
e4e98c7eebfa("pc: q35: Bumpmax_cpusto 4096 vcpus") increases the supported CPUs for PC Q35 machine.Update maximum CPU numbers for PC Q35 in the document.
Signed-off-by Zhao Liu <[email protected]>--- docs/system/target-i386-desc.rst.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)docs/system/target-i386-desc.rst.inc +0
-0
docs/system/target-i386-desc.rst.inc The QEMU PC System emulator simulates the following peripherals: · line 39
Quoted 5 lines
docs/system/target-i386-desc.rst.inc +1
-1@@ -36,7 +36,7 @@ The QEMU PC System emulator simulates the following peripherals: - PCI UHCI, OHCI, EHCI or XHCI USB controller and a virtual USB-1.1 hub. -SMP is supported with up to 255 CPUs. +SMP is supported with up to 255 CPUs (and 4096 CPUs for PC Q35 machine).
This comment is not accurate since a while, IIUC:
Up to q35-2.7: 255
q35-2.8: 288
q35-8.0+: 1024
q35-9.0: 4096
Quoted 2 lines
docs/system/target-i386-desc.rst.inc +0
-0QEMU uses the PC BIOS from the Seabios project and the Plex86/Bochs LGPL VGA BIOS.
Hi Philippe,
Quoted 10 lines · Philippe Mathieu-Daudé
Date: Fri, 12 Apr 2024 11:57:35 +0200
From: Philippe Mathieu-Daudé <[email protected]>
Subject: Re: [PATCH-for-9.0?] docs: i386: pc: Update maximum CPU numbers
for PC Q35docs/system/target-i386-desc.rst.inc The QEMU PC System emulator simulates the following peripherals: · line 39
Quoted 2 lines
docs/system/target-i386-desc.rst.inc +1
-1-SMP is supported with up to 255 CPUs. +SMP is supported with up to 255 CPUs (and 4096 CPUs for PC Q35 machine).This comment is not accurate since a while, IIUC:
Quoted 4 lines
Up to q35-2.7: 255
q35-2.8: 288
q35-8.0+: 1024
q35-9.0: 4096
Yes, I think there should be no need to mention older versions here?
Since the Q35's 4096 CPUs change will be stated in the v9.0 release, I doubt we should synchronize the doc update (so I added the "for-v9.0?" tag to throw this question out).
Thanks,
Zhao
Michael S. Tsirkin
Acked-byQuoted 8 lines · Zhao Liu
From: Zhao Liu <[email protected]>
Commit
e4e98c7eebfa("pc: q35: Bumpmax_cpusto 4096 vcpus") increases the supported CPUs for PC Q35 machine.Update maximum CPU numbers for PC Q35 in the document.
Signed-off-by Zhao Liu <[email protected]>
Quoted 19 lines
--- docs/system/target-i386-desc.rst.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)docs/system/target-i386-desc.rst.inc +1
-1@@ -36,7 +36,7 @@ The QEMU PC System emulator simulates the following peripherals: - PCI UHCI, OHCI, EHCI or XHCI USB controller and a virtual USB-1.1 hub. -SMP is supported with up to 255 CPUs. +SMP is supported with up to 255 CPUs (and 4096 CPUs for PC Q35 machine). QEMU uses the PC BIOS from the Seabios project and the Plex86/Bochs LGPL VGA BIOS.Signature · 1 line
2.34.1
Quoted 27 lines · Philippe Mathieu-Daudé
Hi Zhao,
Quoted 17 lines · Zhao Liu
From: Zhao Liu <[email protected]>
Commit
e4e98c7eebfa("pc: q35: Bumpmax_cpusto 4096 vcpus") increases the supported CPUs for PC Q35 machine.Update maximum CPU numbers for PC Q35 in the document.
Signed-off-by Zhao Liu <[email protected]>--- docs/system/target-i386-desc.rst.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)docs/system/target-i386-desc.rst.inc +0
-0docs/system/target-i386-desc.rst.inc The QEMU PC System emulator simulates the following peripherals: · line 38
Quoted 4 lines
docs/system/target-i386-desc.rst.inc +1
-1@@ -36,7 +36,7 @@ The QEMU PC System emulator simulates the following peripherals: - PCI UHCI, OHCI, EHCI or XHCI USB controller and a virtual USB-1.1 hub. -SMP is supported with up to 255 CPUs. +SMP is supported with up to 255 CPUs (and 4096 CPUs for PC Q35 machine).This comment is not accurate since a while, IIUC:
Quoted 4 lines
Up to q35-2.7: 255
q35-2.8: 288
q35-8.0+: 1024
q35-9.0: 4096
What are you saying here, Philippe? I don't think compat machine types matter enough to bother with more detail.
Quoted 2 lines
Quoted 2 lines
docs/system/target-i386-desc.rst.inc +0
-0QEMU uses the PC BIOS from the Seabios project and the Plex86/Bochs LGPL VGA BIOS.
Hi Michael,
Quoted 28 lines · Michael S. Tsirkin
Quoted 27 lines · Philippe Mathieu-Daudé
Hi Zhao,
Quoted 17 lines · Zhao Liu
From: Zhao Liu <[email protected]>
Commit
e4e98c7eebfa("pc: q35: Bumpmax_cpusto 4096 vcpus") increases the supported CPUs for PC Q35 machine.Update maximum CPU numbers for PC Q35 in the document.
Signed-off-by Zhao Liu <[email protected]>--- docs/system/target-i386-desc.rst.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)docs/system/target-i386-desc.rst.inc +0
-0docs/system/target-i386-desc.rst.inc The QEMU PC System emulator simulates the following peripherals: · line 38
Quoted 4 lines
docs/system/target-i386-desc.rst.inc +1
-1@@ -36,7 +36,7 @@ The QEMU PC System emulator simulates the following peripherals: - PCI UHCI, OHCI, EHCI or XHCI USB controller and a virtual USB-1.1 hub. -SMP is supported with up to 255 CPUs. +SMP is supported with up to 255 CPUs (and 4096 CPUs for PC Q35 machine).This comment is not accurate since a while, IIUC:
Quoted 8 lines
Quoted 4 lines
Up to q35-2.7: 255
q35-2.8: 288
q35-8.0+: 1024
q35-9.0: 4096What are you saying here, Philippe? I don't think compat machine types matter enough to bother with more detail.
My point is I find this description confusing w.r.t. how QEMU behaves:
$ qemu-system-i386 -M pc-q35-2.8 -smp 666 qemu-system-i386: Invalid SMP CPUs 666. The max CPUs supported by machine 'pc-q35-2.8' is 288
$ qemu-system-i386 -M pc-q35-8.0 -smp 666 qemu-system-i386: Invalid SMP CPUs 666. The max CPUs supported by machine 'pc-q35-8.0' is 288
$ qemu-system-i386 -M pc-q35-9.0 -smp 666 Unexpected error in apic_common_set_id() at ../hw/intc/apic_common.c:447: qemu-system-i386: APIC ID 255 requires x2APIC feature in CPU Abort trap: 6
I'd rather at least:
"SMP is supported with up to 255 CPUs (and since v9.0: 4096 CPUs for PC Q35 machine)."
or:
"SMP is supported with up to 255 CPUs (and 4096 CPUs for PC Q35 machine since v9.0)."
Quoted 3 lines
Quoted 2 lines
Quoted 2 lines
docs/system/target-i386-desc.rst.inc +0
-0QEMU uses the PC BIOS from the Seabios project and the Plex86/Bochs LGPL VGA BIOS.
Quoted 37 lines · Philippe Mathieu-Daudé
Hi Michael,
Quoted 34 lines · Michael S. Tsirkin
Quoted 31 lines · Philippe Mathieu-Daudé
Hi Zhao,
Quoted 17 lines · Zhao Liu
From: Zhao Liu <[email protected]>
Commit
e4e98c7eebfa("pc: q35: Bumpmax_cpusto 4096 vcpus") increases the supported CPUs for PC Q35 machine.Update maximum CPU numbers for PC Q35 in the document.
Signed-off-by Zhao Liu <[email protected]>--- docs/system/target-i386-desc.rst.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)docs/system/target-i386-desc.rst.inc +0
-0docs/system/target-i386-desc.rst.inc The QEMU PC System emulator simulates the following peripherals: · line 38
Quoted 4 lines
docs/system/target-i386-desc.rst.inc +1
-1@@ -36,7 +36,7 @@ The QEMU PC System emulator simulates the following peripherals: - PCI UHCI, OHCI, EHCI or XHCI USB controller and a virtual USB-1.1 hub. -SMP is supported with up to 255 CPUs. +SMP is supported with up to 255 CPUs (and 4096 CPUs for PC Q35 machine).This comment is not accurate since a while, IIUC:
Up to q35-2.7: 255
q35-2.8: 288
q35-8.0+: 1024
q35-9.0: 4096
Quoted 4 lines
Quoted 2 lines
What are you saying here, Philippe? I don't think compat machine types matter enough to bother with more detail.
My point is I find this description confusing w.r.t. how QEMU behaves:
snip
I think the docs should simply avoid mentioning any limit at all. ie
-SMP is supported with up to 255 CPUs.
+SMP is supported with a large number of virtual CPUs (upper limit is
configuration dependent)
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 :|
Quoted 51 lines · Philippe Mathieu-Daudé
Date: Mon, 3 Jun 2024 19:31:47 +0200
From: Philippe Mathieu-Daudé <[email protected]>
Subject: Re: [PATCH-for-9.0?] docs: i386: pc: Update maximum CPU numbers
for PC Q35Hi Michael,
Quoted 28 lines · Michael S. Tsirkin
Quoted 27 lines · Philippe Mathieu-Daudé
Hi Zhao,
Quoted 17 lines · Zhao Liu
From: Zhao Liu <[email protected]>
Commit
e4e98c7eebfa("pc: q35: Bumpmax_cpusto 4096 vcpus") increases the supported CPUs for PC Q35 machine.Update maximum CPU numbers for PC Q35 in the document.
Signed-off-by Zhao Liu <[email protected]>--- docs/system/target-i386-desc.rst.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)docs/system/target-i386-desc.rst.inc +0
-0docs/system/target-i386-desc.rst.inc The QEMU PC System emulator simulates the following peripherals: · line 38
Quoted 4 lines
docs/system/target-i386-desc.rst.inc +1
-1@@ -36,7 +36,7 @@ The QEMU PC System emulator simulates the following peripherals: - PCI UHCI, OHCI, EHCI or XHCI USB controller and a virtual USB-1.1 hub. -SMP is supported with up to 255 CPUs. +SMP is supported with up to 255 CPUs (and 4096 CPUs for PC Q35 machine).This comment is not accurate since a while, IIUC:
Quoted 8 lines
Quoted 4 lines
Up to q35-2.7: 255
q35-2.8: 288
q35-8.0+: 1024
q35-9.0: 4096What are you saying here, Philippe? I don't think compat machine types matter enough to bother with more detail.
My point is I find this description confusing w.r.t. how QEMU behaves:
$ qemu-system-i386 -M pc-q35-2.8 -smp 666 qemu-system-i386: Invalid SMP CPUs 666. The max CPUs supported by machine 'pc-q35-2.8' is 288
Quoted 8 lines
$ qemu-system-i386 -M pc-q35-8.0 -smp 666 qemu-system-i386: Invalid SMP CPUs 666. The max CPUs supported by machine 'pc-q35-8.0' is 288$ qemu-system-i386 -M pc-q35-9.0 -smp 666 Unexpected error in apic_common_set_id() at ../hw/intc/apic_common.c:447: qemu-system-i386: APIC ID 255 requires x2APIC feature in CPU Abort trap: 6
For tcg, it needs to set x2apic=on in -cpu.
Hi Michael, Daniel, and Philippe,
Quoted 48 lines · Daniel P. Berrangé
Date: Mon, 3 Jun 2024 18:39:19 +0100
From: "Daniel P. Berrangé" <[email protected]>
Subject: Re: [PATCH-for-9.0?] docs: i386: pc: Update maximum CPU numbers
for PC Q35Quoted 37 lines · Philippe Mathieu-Daudé
Hi Michael,
Quoted 34 lines · Michael S. Tsirkin
Quoted 31 lines · Philippe Mathieu-Daudé
Hi Zhao,
Quoted 17 lines · Zhao Liu
From: Zhao Liu <[email protected]>
Commit
e4e98c7eebfa("pc: q35: Bumpmax_cpusto 4096 vcpus") increases the supported CPUs for PC Q35 machine.Update maximum CPU numbers for PC Q35 in the document.
Signed-off-by Zhao Liu <[email protected]>--- docs/system/target-i386-desc.rst.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)docs/system/target-i386-desc.rst.inc +0
-0docs/system/target-i386-desc.rst.inc The QEMU PC System emulator simulates the following peripherals: · line 38
Quoted 4 lines
docs/system/target-i386-desc.rst.inc +1
-1@@ -36,7 +36,7 @@ The QEMU PC System emulator simulates the following peripherals: - PCI UHCI, OHCI, EHCI or XHCI USB controller and a virtual USB-1.1 hub. -SMP is supported with up to 255 CPUs. +SMP is supported with up to 255 CPUs (and 4096 CPUs for PC Q35 machine).This comment is not accurate since a while, IIUC:
Up to q35-2.7: 255
q35-2.8: 288
q35-8.0+: 1024
q35-9.0: 4096Quoted 4 lines
Quoted 2 lines
What are you saying here, Philippe? I don't think compat machine types matter enough to bother with more detail.
My point is I find this description confusing w.r.t. how QEMU behaves:
Quoted 7 lines
snip
I think the docs should simply avoid mentioning any limit at all. ie
-SMP is supported with up to 255 CPUs.
+SMP is supported with a large number of virtual CPUs (upper limit is
configuration dependent)
I agree, the limit may also be different for different scenarios, and it is not appropriate to describe it in detail.
Sorry I forgot that this patch has been merged in by Thomas for me (838f82468a12), and I can modify it with a new patch based on Daniel's suggestion.
Thanks,
Zhao
Quoted 59 lines · Zhao Liu
Hi Michael, Daniel, and Philippe,
Quoted 48 lines · Daniel P. Berrangé
Date: Mon, 3 Jun 2024 18:39:19 +0100
From: "Daniel P. Berrangé" <[email protected]>
Subject: Re: [PATCH-for-9.0?] docs: i386: pc: Update maximum CPU numbers
for PC Q35Quoted 37 lines · Philippe Mathieu-Daudé
Hi Michael,
Quoted 34 lines · Michael S. Tsirkin
Quoted 31 lines · Philippe Mathieu-Daudé
Hi Zhao,
Quoted 17 lines · Zhao Liu
From: Zhao Liu <[email protected]>
Commit
e4e98c7eebfa("pc: q35: Bumpmax_cpusto 4096 vcpus") increases the supported CPUs for PC Q35 machine.Update maximum CPU numbers for PC Q35 in the document.
Signed-off-by Zhao Liu <[email protected]>--- docs/system/target-i386-desc.rst.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)docs/system/target-i386-desc.rst.inc +0
-0docs/system/target-i386-desc.rst.inc The QEMU PC System emulator simulates the following peripherals: · line 38
Quoted 4 lines
docs/system/target-i386-desc.rst.inc +1
-1@@ -36,7 +36,7 @@ The QEMU PC System emulator simulates the following peripherals: - PCI UHCI, OHCI, EHCI or XHCI USB controller and a virtual USB-1.1 hub. -SMP is supported with up to 255 CPUs. +SMP is supported with up to 255 CPUs (and 4096 CPUs for PC Q35 machine).This comment is not accurate since a while, IIUC:
Up to q35-2.7: 255
q35-2.8: 288
q35-8.0+: 1024
q35-9.0: 4096Quoted 4 lines
Quoted 2 lines
What are you saying here, Philippe? I don't think compat machine types matter enough to bother with more detail.
My point is I find this description confusing w.r.t. how QEMU behaves:
Quoted 7 lines
snip
I think the docs should simply avoid mentioning any limit at all. ie
-SMP is supported with up to 255 CPUs.
+SMP is supported with a large number of virtual CPUs (upper limit is
configuration dependent)
Quoted 6 lines
I agree, the limit may also be different for different scenarios, and it is not appropriate to describe it in detail.
Sorry I forgot that this patch has been merged in by Thomas for me (
838f82468a12), and I can modify it with a new patch based on Daniel's suggestion.
That's no problem at all. A followup patch is fine.
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 :|
Quoted 56 lines · Zhao Liu
Quoted 55 lines · Philippe Mathieu-Daudé
Date: Mon, 3 Jun 2024 19:31:47 +0200
From: Philippe Mathieu-Daudé <[email protected]>
Subject: Re: [PATCH-for-9.0?] docs: i386: pc: Update maximum CPU numbers
for PC Q35Hi Michael,
Quoted 28 lines · Michael S. Tsirkin
Quoted 27 lines · Philippe Mathieu-Daudé
Hi Zhao,
Quoted 17 lines · Zhao Liu
From: Zhao Liu <[email protected]>
Commit
e4e98c7eebfa("pc: q35: Bumpmax_cpusto 4096 vcpus") increases the supported CPUs for PC Q35 machine.Update maximum CPU numbers for PC Q35 in the document.
Signed-off-by Zhao Liu <[email protected]>--- docs/system/target-i386-desc.rst.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)docs/system/target-i386-desc.rst.inc +0
-0docs/system/target-i386-desc.rst.inc The QEMU PC System emulator simulates the following peripherals: · line 38
Quoted 4 lines
docs/system/target-i386-desc.rst.inc +1
-1@@ -36,7 +36,7 @@ The QEMU PC System emulator simulates the following peripherals: - PCI UHCI, OHCI, EHCI or XHCI USB controller and a virtual USB-1.1 hub. -SMP is supported with up to 255 CPUs. +SMP is supported with up to 255 CPUs (and 4096 CPUs for PC Q35 machine).This comment is not accurate since a while, IIUC:
Quoted 8 lines
Quoted 4 lines
Up to q35-2.7: 255
q35-2.8: 288
q35-8.0+: 1024
q35-9.0: 4096What are you saying here, Philippe? I don't think compat machine types matter enough to bother with more detail.
My point is I find this description confusing w.r.t. how QEMU behaves:
$ qemu-system-i386 -M pc-q35-2.8 -smp 666 qemu-system-i386: Invalid SMP CPUs 666. The max CPUs supported by machine 'pc-q35-2.8' is 288$ qemu-system-i386 -M pc-q35-8.0 -smp 666 qemu-system-i386: Invalid SMP CPUs 666. The max CPUs supported by machine 'pc-q35-8.0' is 288
Quoted 6 lines
Quoted 4 lines
$ qemu-system-i386 -M pc-q35-9.0 -smp 666 Unexpected error in apic_common_set_id() at ../hw/intc/apic_common.c:447: qemu-system-i386: APIC ID 255 requires x2APIC feature in CPU Abort trap: 6For tcg, it needs to set x2apic=on in -cpu.
Thanks for clarifying. Using error_append_hint() is certainly better than aborting or asking on the mailing list (from user perspective) ;)
Regards,
Phil.
[snip]
Quoted 10 lines
Quoted 6 lines
Quoted 4 lines
$ qemu-system-i386 -M pc-q35-9.0 -smp 666 Unexpected error in apic_common_set_id() at ../hw/intc/apic_common.c:447: qemu-system-i386: APIC ID 255 requires x2APIC feature in CPU Abort trap: 6For tcg, it needs to set x2apic=on in -cpu.
Thanks for clarifying. Using
error_append_hint()is certainly better than aborting or asking on the mailing list (from user perspective) ;)
Good idea! Will improve this. ;-)