Re: [RFC PATCH 00/32] ACPI/arm64: add support for virtual cpuhotplug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Gavin Shan <gshan@xxxxxxxxxx>, linux-pm@xxxxxxxxxxxxxxx, loongarch@xxxxxxxxxxxxxxx, kvmarm@xxxxxxxxxxxxxxx, kvm@xxxxxxxxxxxxxxx, linux-acpi@xxxxxxxxxxxxxxx, linux-arch@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, x86@xxxxxxxxxx
- Subject: Re: [RFC PATCH 00/32] ACPI/arm64: add support for virtual cpuhotplug
- From: James Morse <james.morse@xxxxxxx>
- Date: Tue, 12 Sep 2023 18:01:28 +0100
- Cc: Marc Zyngier <maz@xxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Lorenzo Pieralisi <lpieralisi@xxxxxxxxxx>, Mark Rutland <mark.rutland@xxxxxxx>, Sudeep Holla <sudeep.holla@xxxxxxx>, Borislav Petkov <bp@xxxxxxxxx>, H Peter Anvin <hpa@xxxxxxxxx>, Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Will Deacon <will@xxxxxxxxxx>, Catalin Marinas <catalin.marinas@xxxxxxx>, Huacai Chen <chenhuacai@xxxxxxxxxx>, Suzuki K Poulose <suzuki.poulose@xxxxxxx>, Oliver Upton <oliver.upton@xxxxxxxxx>, Len Brown <lenb@xxxxxxxxxx>, Rafael Wysocki <rafael@xxxxxxxxxx>, WANG Xuerui <kernel@xxxxxxxxxx>, Salil Mehta <salil.mehta@xxxxxxxxxx>, Russell King <linux@xxxxxxxxxxxxxxx>, Jean-Philippe Brucker <jean-philippe@xxxxxxxxxx>
- In-reply-to: <41dd71ab-a6a7-fd93-73ec-64a6b0ca468e@redhat.com>
- References: <20230203135043.409192-1-james.morse@arm.com> <41dd71ab-a6a7-fd93-73ec-64a6b0ca468e@redhat.com>
- User-agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0
Hi Gavin,
On 29/03/2023 03:35, Gavin Shan wrote:
> On 2/3/23 9:50 PM, James Morse wrote:
>> 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
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]