]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/arm: xenpvh: Add support for SMP guests
authorEdgar E. Iglesias <edgar.iglesias@amd.com>
Thu, 8 Aug 2024 11:30:12 +0000 (13:30 +0200)
committerEdgar E. Iglesias <edgar.iglesias@amd.com>
Wed, 4 Sep 2024 14:50:42 +0000 (16:50 +0200)
commitb421a0dce68263f93fca961a742873003af7c681
tree6ac83c58dfb263e475609db21d02b43b7fbb7da4
parent4850c6cc56201552e6162eb24ebd91c6dffeb19c
hw/arm: xenpvh: Add support for SMP guests

Add SMP support for Xen PVH ARM guests.
Create ms->smp.max_cpus ioreq servers to handle hotplug.

Note that ms->smp.max_cpus will be passed to us by the
user (Xen tools) set to the guests maxvcpus.

The value in mc->max_cpus is an absolute maximum for the
-smp option and won't be used to setup ioreq servers unless
the user explicitly specifies it with -smp.

If the user doesn't pass -smp on the command-line, smp.cpus
and smp.max_cpus will default to 1.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
hw/arm/xen_arm.c