Thread (59 messages) 59 messages, 9 authors, 2023-09-13

Re: [RFC PATCH 00/32] ACPI/arm64: add support for virtual cpuhotplug

From: James Morse <james.morse@arm.com>
Date: 2023-09-12 17:01:53
Also in: kvm, kvmarm, linux-acpi, linux-arch, linux-pm, lkml, loongarch

Hi Gavin,

On 29/03/2023 03:35, Gavin Shan wrote:
On 2/3/23 9:50 PM, James Morse wrote:
quoted
If folk want to play along at home, you'll need a copy of Qemu that supports this.
https://github.com/salil-mehta/qemu.git
salil/virt-cpuhp-armv8/rfc-v1-port29092022.psci.present

You'll need to fix the numbers of KVM_CAP_ARM_HVC_TO_USER and KVM_CAP_ARM_PSCI_TO_USER
to match your host kernel. Replace your '-smp' argument with something like:
| -smp cpus=1,maxcpus=3,cores=3,threads=1,sockets=1

then feed the following to the Qemu montior;
| (qemu) device_add driver=host-arm-cpu,core-id=1,id=cpu1
| (qemu) device_del cpu1


This series is based on v6.2-rc3, and can be retrieved from:
https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/ virtual_cpu_hotplug/rfc/v1
I give it a try, but the hot-added CPU needs to be put into online
state manually. I'm not sure if it's expected or not.
This is expected. If you want the CPUs to be brought online automatically, you can add
udev rules to do that.


Thanks,

James

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help