Received: by 2002:ac2:5042:0:0:0:0:0 with SMTP id a2csp3949022lfm; Tue, 23 Jun 2020 02:52:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyZBaI7J13KoTMREIPO2oZ5DUiRj4Esv9d+VRpIO21rQ1Kvm/Q3UrqSrVRklmkzcrVwR6H X-Received: by 2002:a25:b8b:: with SMTP id 133mr35942206ybl.373.1592905964354; Tue, 23 Jun 2020 02:52:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592905964; cv=none; d=google.com; s=arc-20160816; b=davJUuWR4UUafUlOKdenBBIQb6mgdykxt1QwNWdISCUZbhlI5QCItc69+mlZCS+Qax WrMmC+aiIcITJq0BIwjoUAefpKsoWda2QMsnzEg/rwqZilbsQU/Z8n+CjJ+8CSxbkG75 /x3z94f7Q5L5WTkZ1lI6W5tOz37XV2aMmqOLOG4cYFLAuTffRzYrWEcvM+94SgmBc2bG 3vIyt3n4wH06hCpFgj5MXdUIiG2QwUXizzh0g4psQdnt1Q/gfNrj5IU54hXUoW9V/W8I WlhgbsbeUXitedWHfyBQJbFKerwgnl89A2u4Eq8Tms8j7ggu2MYe7xmXkH7KdiBNXI8k MEVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:to:from; bh=6MI60U1yOfPjpF3ibMvc9BONKy6toAI3XMKIbMGLJ7E=; b=Nc+j1QsGlKllKudJn0DFpLyp9j2v0s0QtugZECuTAp6wUX6DfCKBeAVN2bx5OYgMsI /g6UuUG1kHbFNa+xHpJ3MMBiPCmfBWPrWV4nb7BCHn5/wtGO/fR5BId8QC0z8QWxCEf8 OxAhwdeeGNvrTJ5ozqls8cEavw6Zvnqz5myWb//EBMmBe4yYtQhQSDPcaNi2bBcm3my7 NsP0e3PPDJ3GhZYtwsD7lgHY4lLeyQko1BynnrPc6JNkVe6hdWD3bj5Qc+hYP8RNuWVF ywHpz19Gx9HVBFyAoZ1UeeI4E2zQE0/xYPzB2mcmZhXlql3D9/rEz8xZJ5FHbiHtrDHl ffwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d37si17922885ybi.96.2020.06.23.02.52.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Jun 2020 02:52:44 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1]:60776 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jnfbf-0002OZ-Pe for alex.bennee@linaro.org; Tue, 23 Jun 2020 05:52:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnfbY-0002ON-Ix; Tue, 23 Jun 2020 05:52:36 -0400 Received: from lhrrgout.huawei.com ([185.176.76.210]:2116 helo=huawei.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnfbV-0003D6-Rx; Tue, 23 Jun 2020 05:52:36 -0400 Received: from lhreml706-chm.china.huawei.com (unknown [172.18.7.107]) by Forcepoint Email with ESMTP id 08B246F5EAE537DE9D22; Tue, 23 Jun 2020 10:52:28 +0100 (IST) Received: from lhreml703-chm.china.huawei.com (10.201.108.52) by lhreml706-chm.china.huawei.com (10.201.108.55) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1913.5; Tue, 23 Jun 2020 10:52:27 +0100 Received: from lhreml703-chm.china.huawei.com ([10.201.68.198]) by lhreml703-chm.china.huawei.com ([10.201.68.198]) with mapi id 15.01.1913.007; Tue, 23 Jun 2020 10:52:27 +0100 From: Salil Mehta To: Andrew Jones Subject: RE: [PATCH RFC 07/22] arm/cpuhp: Init PMU at host for all possible vcpus Thread-Topic: [PATCH RFC 07/22] arm/cpuhp: Init PMU at host for all possible vcpus Thread-Index: AQHWQcvlALxTosOEL0WOmckyuAuHIajl5TGAgAAdZoA= Date: Tue, 23 Jun 2020 09:52:27 +0000 Message-ID: <0d8b94575a884f56b60524632ad63586@huawei.com> References: <20200613213629.21984-1-salil.mehta@huawei.com> <20200613213629.21984-8-salil.mehta@huawei.com> <20200623090043.fwf7h6zmprc3oug4@kamzik.brq.redhat.com> In-Reply-To: <20200623090043.fwf7h6zmprc3oug4@kamzik.brq.redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.47.79.3] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CFilter-Loop: Reflected Received-SPF: pass client-ip=185.176.76.210; envelope-from=salil.mehta@huawei.com; helo=huawei.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/23 05:40:59 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -51 X-Spam_score: -5.2 X-Spam_bar: ----- X-Spam_report: (-5.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "peter.maydell@linaro.org" , "mehta.salil.lnk@gmail.com" , "gshan@redhat.com" , "pbonzini@redhat.com" , "mst@redhat.com" , "jiakernel2@gmail.com" , "maz@kernel.org" , "david@redhat.com" , "richard.henderson@linaro.org" , "qemu-devel@nongnu.org" , Linuxarm , "eric.auger@redhat.com" , "will@kernel.org" , "qemu-arm@nongnu.org" , "james.morse@arm.com" , "catalin.marinas@arm.com" , "sudeep.holla@arm.com" , "imammedo@redhat.com" , "maran.wilson@oracle.com" , zhukeqian , "wangxiongfeng \(C\)" Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: dh/TE4Fz6j2Q > From: Andrew Jones [mailto:drjones@redhat.com] > Sent: Tuesday, June 23, 2020 10:01 AM > To: Salil Mehta > Cc: qemu-devel@nongnu.org; qemu-arm@nongnu.org; peter.maydell@linaro.org; > sudeep.holla@arm.com; gshan@redhat.com; mst@redhat.com; jiakernel2@gmail.= com; > maz@kernel.org; zhukeqian ; david@redhat.com; > richard.henderson@linaro.org; Linuxarm ; > eric.auger@redhat.com; james.morse@arm.com; catalin.marinas@arm.com; > imammedo@redhat.com; pbonzini@redhat.com; mehta.salil.lnk@gmail.com; > maran.wilson@oracle.com; will@kernel.org; wangxiongfeng (C) > > Subject: Re: [PATCH RFC 07/22] arm/cpuhp: Init PMU at host for all possib= le vcpus >=20 > On Sat, Jun 13, 2020 at 10:36:14PM +0100, Salil Mehta wrote: > > PMU for all possible vcpus must be initialized at the virt machine > > initialization time. This patch refactors existing code to accomodate p= ossible > > vcpus. This also assumes that all processor being used are identical at= least > > for now but does not affect the normal scanarios where they might not b= e in > > future. This assumption only affects the future hotplug scenarios if ev= er there > > exists any hetergenous processors. In such a case PMU might not be enab= led > on > > some vcpus. Is it acceptable and doable tradeoff for now? > > > > This perhaps needs more discussion. please check below link, > > Link: https://lists.gnu.org/archive/html/qemu-devel/2020-06/msg00131.ht= ml > > > > Co-developed-by: Keqian Zhu > > Signed-off-by: Salil Mehta > > --- > > hw/arm/virt.c | 51 ++++++++++++++++++++++++++++++------------- > > include/hw/arm/virt.h | 1 + > > 2 files changed, 37 insertions(+), 15 deletions(-) > > >=20 > I have a similar patch to this one in my steal-time dev branch that I jus= t > started last week. I'm creating a new function that must be called after > cpu realization and gic creation that completes cpu setup. There's a few > things that will end up there (including steal-time stuff). ok.=20 >=20 > Thanks, > drew