Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3450424rdb; Wed, 13 Sep 2023 12:21:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEZT40KSav3cS2vqMfftGsJKKjHKvwuZy41b8hCTaQL+TaXTqGzKtReuZ5xNgHfCTLiee/0 X-Received: by 2002:a9d:694b:0:b0:6bc:65ad:1b08 with SMTP id p11-20020a9d694b000000b006bc65ad1b08mr3873783oto.28.1694632908739; Wed, 13 Sep 2023 12:21:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694632908; cv=none; d=google.com; s=arc-20160816; b=TOXDHXuhgW4z1yNPqoZoGB/wdXIvx6YX9Qx80JFI1qEY9/Ju88EqQKDO/07kT+/cpr V94MZDaxSBYotRVY1k87eX8+MoXuDcdmhwpqoJVDlRBMXLU1hXdpsb+dygQVkzLSGJgf encLsfLo3nj7+jcqi5ZYzGAQ3AUATPO9AM2oxH59efL/3MOTBFlq3IQe//cn5xHOy5gZ 8UiS0++FZsIlFdVg3o1w4XbCRTJiPdL8B8DxAYghcS6h7cWnqgGgoYiuiuS8aKiu/vIB KvHN5q77Wx8N7zip3iSl/Vqbclwp8TQeB8INWF0B/mn33mOBeaFOi8le/A14Sm+l/c98 IrpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=XdtCAZyx/MZYsEBg/jFRSdFTbFPWHLuZyAfo/8U5/tw=; fh=EFXvMGTPekbkeO5iWMNVSuDh2CH8ydgIfadDX6CfIcc=; b=xsG2TORhYEpqoj48R11m7FlrJFtOuQNGLPQGXcRmWe6PdRyYvCWCSVfrVfqmCfadEW s9IEtjxwgTJN3raj2HLJMiXk+RcZFM9N7sXz4T5kN+z+CgBCk/whYe/q6dIuWLf8Yulg fR0gJsvFHo7k2Vlu4zK3wlChWcVSCdOlHuuglN/S59tAFZJWkRG9F4IRCWRRDPXFl3ix cTqQGR2s3r4HwrOeP2DZGUmFd7shQCR3XrGFOp/THG6Fhj1yy48GRQgpkKLgmdJkNQlc 7t9AjaudJJ3xBbMB8h9Q4mldx/U+SZmyHPSjJOnFbMAe0WowrXBMx744RoskEHKBIt5T 0r8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=FKQnCx1y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id r20-20020a6560d4000000b00573f867019fsi10491177pgv.443.2023.09.13.12.21.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 12:21:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=FKQnCx1y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 73467845559B; Wed, 13 Sep 2023 08:29:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229750AbjIMP3r (ORCPT + 99 others); Wed, 13 Sep 2023 11:29:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229746AbjIMP3c (ORCPT ); Wed, 13 Sep 2023 11:29:32 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A9F61BEB; Wed, 13 Sep 2023 08:29:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XdtCAZyx/MZYsEBg/jFRSdFTbFPWHLuZyAfo/8U5/tw=; b=FKQnCx1yL4RyEEWc6jQCHdQzMK szsOP/bu+Hp+kcV7jfsv1j9W2fK3qrHVMhjiwW3Sv5KUUSSTSuAP9ppITyPWNkSa6GOsWotDD0hxb grFlbm2z2X/FlaUtQqKyYXfOPJzmLZZNI29Yskokx19istLJS7pHSdkbMIWTSma9/50YnAHqtoFXz +du9ZJd2CpX2TaFbf3S8XiUmtfYMWHiiLBKiSIdjUV3LYH0jjF25i2xitRWIsHEztFKiLs74AKyn8 ui29Pde6io2w+oPRoE0ORQ495MO5MipHx015n6Q5DbY3l/PQa+T2ru1WA/cVybHgDAqM34yXV92wK zjCw8DCg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:59522) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qgRnY-0002gL-2z; Wed, 13 Sep 2023 16:29:00 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qgRnT-0003q4-B5; Wed, 13 Sep 2023 16:28:55 +0100 Date: Wed, 13 Sep 2023 16:28:55 +0100 From: "Russell King (Oracle)" To: Gavin Shan Cc: James Morse , linux-pm@vger.kernel.org, loongarch@lists.linux.dev, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arch@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, Marc Zyngier , Thomas Gleixner , Lorenzo Pieralisi , Mark Rutland , Sudeep Holla , Borislav Petkov , H Peter Anvin , Dave Hansen , Ingo Molnar , Will Deacon , Catalin Marinas , Huacai Chen , Suzuki K Poulose , Oliver Upton , Len Brown , Rafael Wysocki , WANG Xuerui , Salil Mehta , Jean-Philippe Brucker Subject: Re: [RFC PATCH 00/32] ACPI/arm64: add support for virtual cpuhotplug Message-ID: References: <20230203135043.409192-1-james.morse@arm.com> <41dd71ab-a6a7-fd93-73ec-64a6b0ca468e@redhat.com> <1ca1fb8f-1dec-74a3-ee44-94609f6aba2c@arm.com> <5a5fb237-c28b-d6b5-0425-8f8f0fe1ac79@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5a5fb237-c28b-d6b5-0425-8f8f0fe1ac79@redhat.com> Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 13 Sep 2023 08:29:48 -0700 (PDT) On Wed, Sep 13, 2023 at 08:38:51AM +1000, Gavin Shan wrote: > > Hi James, > > On 9/13/23 03:01, James Morse wrote: > > 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. > > > > Yeah, I usually execute the following command to bring the CPU into online state, > after the vCPU is hot added by QMP command. > > (qemu) device_add driver=host-arm-cpu,core-id=1,id=cpu1 > guest# echo 1 > /sys/devices/system/cpu/cpux/online > > James, the series was posted a while ago and do you have plan to respin > and post RFCv2 in near future? :) I'll pipe up here, because I've been discussing this topic with James privately. In James' last email to me, he indicated that he's hoping to publish the next iteration of the patches towards the end of this week. I suspect that's conditional on there being no major issues coming up. One of the things that I think would help this patch set along is if people could test it on x86, to make sure that there aren't any regressions on random x86 hardware - and report successes and failures so confidence in the patch series can be gained. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!