Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3015032rdb; Tue, 12 Sep 2023 21:53:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHTmbLv83xQlYVk33f0LYY98UGkcILjnPhT2xOhCO8I4QDrEusHr/aXzj9xY8r/vKscDbDo X-Received: by 2002:a05:6a00:cc2:b0:68b:fb93:5b4e with SMTP id b2-20020a056a000cc200b0068bfb935b4emr1550344pfv.26.1694580785899; Tue, 12 Sep 2023 21:53:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694580785; cv=none; d=google.com; s=arc-20160816; b=Z07C+hmrRj3d5Q3J+fNMxO1MM1+q1UJ4MqS01NeSNYo2udLGS9tf3FkWI8PJRfq7qL 62a1XTB+hv9r/mbyfMwmBMWKeuUngY8WivV4cUYkAVdohfTYtpa5fxDwf+vGs+depeY1 DLHot+VBXV4lNORxFdrfzl8O8wGPIMR8rywxp590l1eeYExwdi8sQkACRL+MHpeDjvOS 8nMOILo3N197ETXAQHZ40JbYDENSNmAwbNJjKrmoDpzsP3HI6BKKEw0GghWBj4P3oEuq KsraMw4DyFZrmOI0buwtA6hbY8fBTkuluWMzAqFRHQ6v3Y/WkSMKfpwrLODqYMYYvHmV vXAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Hw4dz052UmhVfzEQW7+Uflu1VFGZC1UKKB7LwcrU6Xs=; fh=tAsbme9cEugIdED73opBs0bObNWmjICOs4zMCc93yKU=; b=X1O6eXeCojLJD/0/QNu4T82lHUXPGV5jOkq3crOVuYrIKtO79DGN8dLUqEzWXHJ5zJ 2JmyKV9mIykEtmeOCxfgcPmqGdMpb1SYadCFTBQLSNN27oqF7vyvB6cQS5YtmyOUD6Lw DYnNt8z1//kyff2qY+Xvqz2LsJmU9D/TP1M3AErZ+we2e+xsPsroFR0Fe1g1eSgmBV7K rRJDY6fofcnRSj3SQKNgmguma9UPT58rDw9faLX46gyEpZPjmcqeiOzALgP/zoNz/zmn l5gYCb+dLL+fRVi58Fqb1OLOwIwyqhbOUptWsnJGN6F77gj7xYNHyN4YLPj8PefWge2v Hdrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="P86c/NEm"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id cd27-20020a056a00421b00b0068e3fe64a03si9372716pfb.308.2023.09.12.21.53.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 21:53:05 -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=pass header.i=@redhat.com header.s=mimecast20190719 header.b="P86c/NEm"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id ED9118348233; Tue, 12 Sep 2023 15:40:00 -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 S231491AbjILWj7 (ORCPT + 99 others); Tue, 12 Sep 2023 18:39:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234023AbjILWj5 (ORCPT ); Tue, 12 Sep 2023 18:39:57 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3ADD110E6 for ; Tue, 12 Sep 2023 15:39:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694558347; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Hw4dz052UmhVfzEQW7+Uflu1VFGZC1UKKB7LwcrU6Xs=; b=P86c/NEmdqlRXNvidILtx+bZU6CFOpQbGv07TuPVpdIL5kQkr+ah8N9o4FOFNnSjIN63eD GtadjLZl/7sSMppMuTSwjY+XYtHxt+Cv2Z+xtT19WGqpqVbV18PQwsXS4qvbpALQSwHQPF R+g71Tuvr/FuWWbp5lVKjZqvTMbZwxE= Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-500-YHekUIaBOPmT8Nn4TUypKA-1; Tue, 12 Sep 2023 18:39:06 -0400 X-MC-Unique: YHekUIaBOPmT8Nn4TUypKA-1 Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-1bf703dd21fso81587765ad.3 for ; Tue, 12 Sep 2023 15:39:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694558345; x=1695163145; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Hw4dz052UmhVfzEQW7+Uflu1VFGZC1UKKB7LwcrU6Xs=; b=JRss7vdJs1Nux2wxhrvDQF8ItLyuaB7V/yPbiMJqGC7PYH+jS0RVle42PLU/Ga74Om ssAUOZVyO+ECR8RGKAGsEQ0CUbKQPET4cBpyqxTFKy6haaZzhimjth391JdOghPDNTOK Gev4XfFwI21uhjeNSRgoTrJLqJ5hhzWPcKh7IBXks34Xa4PMSaUU/6lyx267smeqD0Tz FcL0i36Zh7rLkmT+Axab8tuxnq8j7ExiCOaL45XCQdIUYMdY1B5nUS0el1A9YZtxmd8f PNsPPqaB/CWmzg5aZIV6B3cz2LCV/WVi7c+96EaIoIalVRh+BvKGcqoBqbZgpj8B2RF3 ybsg== X-Gm-Message-State: AOJu0YwAh3ASLoRPn0Fok80ItL/A7uZH3kCmH2Bbrc66Y7V4FXMe3Piu IGj5zWO299TmBfQFi1LEE/9pUaXtaZMEXmyjuQPH6aSLLtKUuZkgFYu63wsxVeDWN4Ts7+GVDSX /RTvUjs7FRzBhDfBMSiYilm6p X-Received: by 2002:a17:903:41c4:b0:1c3:3cde:7b44 with SMTP id u4-20020a17090341c400b001c33cde7b44mr1269644ple.12.1694558344877; Tue, 12 Sep 2023 15:39:04 -0700 (PDT) X-Received: by 2002:a17:903:41c4:b0:1c3:3cde:7b44 with SMTP id u4-20020a17090341c400b001c33cde7b44mr1269621ple.12.1694558344560; Tue, 12 Sep 2023 15:39:04 -0700 (PDT) Received: from ?IPV6:2001:8003:e5b0:9f00:dbbc:1945:6e65:ec5? ([2001:8003:e5b0:9f00:dbbc:1945:6e65:ec5]) by smtp.gmail.com with ESMTPSA id c10-20020a170902aa4a00b001c0af36dd64sm8964168plr.162.2023.09.12.15.38.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Sep 2023 15:39:03 -0700 (PDT) Message-ID: <5a5fb237-c28b-d6b5-0425-8f8f0fe1ac79@redhat.com> Date: Wed, 13 Sep 2023 08:38:51 +1000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [RFC PATCH 00/32] ACPI/arm64: add support for virtual cpuhotplug Content-Language: en-US To: 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 Cc: 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 , Russell King , Jean-Philippe Brucker References: <20230203135043.409192-1-james.morse@arm.com> <41dd71ab-a6a7-fd93-73ec-64a6b0ca468e@redhat.com> <1ca1fb8f-1dec-74a3-ee44-94609f6aba2c@arm.com> From: Gavin Shan In-Reply-To: <1ca1fb8f-1dec-74a3-ee44-94609f6aba2c@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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]); Tue, 12 Sep 2023 15:40:01 -0700 (PDT) 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? :) Thanks, Gavin