Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp368575rdb; Mon, 18 Sep 2023 19:07:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHS4h2AlePxZeNmg1sxw+527Q6FpoB+osG/r/7hf61TUw2A5W7D1BZ4w7gQrlSgisqXoUWv X-Received: by 2002:a05:6808:3a6:b0:3a9:9bb4:485c with SMTP id n6-20020a05680803a600b003a99bb4485cmr11903709oie.8.1695089263329; Mon, 18 Sep 2023 19:07:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695089263; cv=none; d=google.com; s=arc-20160816; b=SZXgG44PfFgxJzzsCqLA/EavHKDybCn2wrP21keHe1KtrQ/LbA7jxV4T4fzn9ihk2Y K4ufBkuJjJu/UooNXTwj+PHA4/lff+bwaaISFDAQvwYkTae3JWD28hy82m35n3n84WDB qPXJokgvVdT/1xVR+72SblYfwsfO8NcHDhwjsY51UEIRsLOG2bhgdIanMFQg21KePypm wWWfjeSLw3VullHf+8Pg/kqtZmttaih3WsVYImp7GxMBQuL7BHZGGAh7o2VyKYEICNXs uyTaOG9q83J80lmPobnk8dRf+dSKW4vyw3bmbbHbDy6o/hm0JR582UGIC+T+RxoRNMBS j8Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=knRagvKuCPzhCIYhCOjRCh44VjecKJtrl8eHwZBErg4=; fh=dMrWgnXzzePbjJ5Lnz3JQ1FNdAF92uv7SkGdCptz9bs=; b=Sc47hl8zVSURY/bhf+2mG2fv7Xu5MiHMdgQc78P9tMzmxNpzu3uIvWpeWuo2Y2vWLP 5ewzGkPZiXb7/V5j7Uk0zsUzCXFQQbx6U5At4tXE5nHtTT2NzfbrzBa7AS3UEnzFitWQ dx5HaMQ+s8LbpkbTjO87p6Afa6xZP82izw0Ai6q7Y5SC3RsH5KvCv9iakbeE+/dpUE0o lKb7FJouGv2Gx3FjAuiJ4oiMzBGdp20UXjOle/WCqCewaVrDiH1x1hpSke9IHixCRW81 HDDClGWVGMLREWvfNdezeKnoCDDlZqvVgwrlS/lCNAPVz3bdYqi4QV57+9eYsrHLq5+g 6hGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=0ru6f5T3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id l19-20020a656813000000b005777125ed83si8873774pgt.238.2023.09.18.19.07.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 19:07:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=0ru6f5T3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id CBEE680ACFEB; Mon, 18 Sep 2023 09:59:13 -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 S231274AbjIRQ7O (ORCPT + 99 others); Mon, 18 Sep 2023 12:59:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231387AbjIRQ6v (ORCPT ); Mon, 18 Sep 2023 12:58:51 -0400 Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA49F185 for ; Mon, 18 Sep 2023 09:58:43 -0700 (PDT) Received: by mail-il1-x131.google.com with SMTP id e9e14a558f8ab-34fa117f92bso2415ab.1 for ; Mon, 18 Sep 2023 09:58:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1695056323; x=1695661123; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=knRagvKuCPzhCIYhCOjRCh44VjecKJtrl8eHwZBErg4=; b=0ru6f5T3Isq+RB3EWYvBlX+hnugBdW6UtTSaogmPXLEWWqijFNwxdzyVkg+uO4EN0m 8K/IkdJ8wvDl8vxhpbB3gW6YTYFBbw8diAsbTUs271KqiiPieoWOpM4wiCoAaUO6yyYW RK0IWCgm8XmuubaM7FX2sVNML0fysv/+Q2LXOWpq1GMOHu0fe5n6nLjRS4NFlwJ3FgLo poZBImG3T7wVXeQziDPrVc/Hm8v4DtUVAzLUHkgm4ay4vVy5hD+Bgz1prV2E6XIqruXN Zthv32XmTtWmfl2ZKzOIuxktGxtQ7INzwM3trKdp6GzlPTTNkLls0p5Nfx/CAV9J7tgh ZYIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695056323; x=1695661123; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=knRagvKuCPzhCIYhCOjRCh44VjecKJtrl8eHwZBErg4=; b=OD887zkz9kc14r8HYIwMOislEBSsCUN0GgLm3x/xYGqzoPJUsqAnF23nSmXjxw4FHK ZmTouT9jhBlLqM5xUZvlFYXBKKlahTeUy4OI33exLkNHZ5ELNIis2iQEUc2Hty/GfHH2 x+mFsWilSv+PIjHF7VwuWEpGHdlRO3/kji+MZk/PfJGVCdHKDOIlUpOURKIHM5QzQ/DZ +UVxmc8VQkVSXTrsIZ/rqxo33udMU8Ebg2kjiJQOkwBxdOq5PrlCW02w0xiLidEJ/g6C 68oGa9Oq9QiynykAojixOmavktlIYqY37g73M2ocHyRNOLguK1dTf7TyOrf7tQXRX83Y R7Hg== X-Gm-Message-State: AOJu0YxGq97kDhRjGFlTS/KIq13oy+nPps/PFq03IcQYG5pSWx3kXNGS fJ4Eg/XO8xOzGqW6Dol2ufpSsBiLRqLt4Zm4ksozBg== X-Received: by 2002:a05:6e02:19c5:b0:34f:71b0:e72b with SMTP id r5-20020a056e0219c500b0034f71b0e72bmr553193ill.27.1695056322944; Mon, 18 Sep 2023 09:58:42 -0700 (PDT) MIME-Version: 1.0 References: <20230817003029.3073210-1-rananta@google.com> <20230817003029.3073210-3-rananta@google.com> In-Reply-To: From: Raghavendra Rao Ananta Date: Mon, 18 Sep 2023 09:58:31 -0700 Message-ID: Subject: Re: [PATCH v5 02/12] KVM: arm64: PMU: Set the default PMU for the guest on vCPU reset To: Oliver Upton Cc: Marc Zyngier , Alexandru Elisei , James Morse , Suzuki K Poulose , Paolo Bonzini , Zenghui Yu , Shaoqin Huang , Jing Zhang , Reiji Watanabe , Colton Lewis , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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]); Mon, 18 Sep 2023 09:59:14 -0700 (PDT) On Mon, Sep 18, 2023 at 9:47=E2=80=AFAM Oliver Upton wrote: > > On Mon, Sep 18, 2023 at 09:41:02AM -0700, Raghavendra Rao Ananta wrote: > > On Fri, Sep 15, 2023 at 12:33=E2=80=AFPM Oliver Upton wrote: > > [...] > > > > This would eliminate the possibility of returning ENODEV to userspace > > > where we shouldn't. > > > > > I understand that we'll be breaking the API contract and userspace may > > have to adapt to this change, but is it not acceptable to document and > > return ENODEV, since ENODEV may offer more clarity to userspace as to > > why the ioctl failed? In general, do we never extend the APIs? > > Yes, we extend the existing interfaces all the time, but we almost > always require user opt in for user-visible changes in behavior. Look at > the way arm64_check_features() is handled -- we hide the 'detailed' > error and return EINVAL due to UAPI. > Got it. Let's return EINVAL then. Thanks! - Raghavendra > -- > Thanks, > Oliver