Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp220554rdb; Mon, 18 Sep 2023 12:57:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH9iMT+ZuvSpkhz6u0D3on/EeKGst7WlJWGCGmg5+AAQCN3Y4F8uak98xyDspAJXR5OnLXk X-Received: by 2002:aa7:88c8:0:b0:690:15c7:60d8 with SMTP id k8-20020aa788c8000000b0069015c760d8mr13614185pff.22.1695067040086; Mon, 18 Sep 2023 12:57:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695067040; cv=none; d=google.com; s=arc-20160816; b=lRp0MqWDt2S2yJtDfvi778rdWN6X3GaMz8VjliHBuzH0uqUV4bNLVPVYJQfrTgnbRi rQa2tn7RNlOx3M/sbLIK8IXOewvhCLoPFr16CSdG2G4QR4lk9DCWmXDzuw7fSsV2UTGh ZYJyrjuvfx+rEh++qtbAKG1DjlWFtGIqbEBi5HXhrbvV4ZPz315aB5M/Ye/xMg2mu3MV GnosjCINRWunU3uIe3MFTu+IvdvvnLRyiHzUFKjjUammiMMtETbB2lto6qPUXg2jYFw6 4ruktQ37qs6Okyrov8DCS2ll+ejuSwKfAnEyFqav6GiUJqqWdCznJBk1ucu29NRjgG87 eJSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:date; bh=ln9R1K2AMa49HKt735eiLwbod7abzVOhRToBSq2nvNc=; fh=4I6BNv7iobpZrRcbueKA7r9RD02xPQmynyU/PeDFguM=; b=HjoQUEWDdc4HX4D9breni5oabMJGldQsVao8Ct76s/VpxKuBTAoj3ffz+B3+tW49Lz Ou/CBwXYC0xyXmTXbiP0pSLUwDoMQmSqY0cfJRXY23nerFWMj9d7VlUAb2hqXSMvoS6W uyY7FeswdCyX28txYFCOVhkVVUreR5AqFkvzOW7HglZ9Bw7wlzuSsF20AWqS/0XiCity lGQN87qkEdrZ6Tlpn7a6bgn+Eg7l3HXbxM2Vm2SSFV+4tT6BBMcSwwZSN0IHyKcNyJAO 0z6Jn/OQ7szqPdfioxeDK8jf4SQHGjmIGSNZq+NCi2t6cp9stfnNl52B0AZdXl6ENX2e F6uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=PFJBeutp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id q10-20020a056a00150a00b0068fb1a85ec8si8607782pfu.370.2023.09.18.12.57.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 12:57:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=PFJBeutp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 0F03F8086502; Mon, 18 Sep 2023 09:48:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231180AbjIRQso (ORCPT + 99 others); Mon, 18 Sep 2023 12:48:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230198AbjIRQsX (ORCPT ); Mon, 18 Sep 2023 12:48:23 -0400 Received: from out-222.mta0.migadu.com (out-222.mta0.migadu.com [91.218.175.222]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F40D219A0 for ; Mon, 18 Sep 2023 09:47:36 -0700 (PDT) Date: Mon, 18 Sep 2023 09:47:27 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1695055654; 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=ln9R1K2AMa49HKt735eiLwbod7abzVOhRToBSq2nvNc=; b=PFJBeutpTuE5oKhT4iAo5E2TezyBTkbOoFpoDr9CAofMUMrs+vvBLm3svfFoU/zrhN3JkF jKLW1vZOSefLlzcKx2jNzfEo/1sH19ZdAlwPTgI63viOtPrXXEg79oyy8mb86OVbquu2Ql 9aioXtXmYuV0JwAnsdXFHof4cdcdRxo= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Raghavendra Rao Ananta 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 Subject: Re: [PATCH v5 02/12] KVM: arm64: PMU: Set the default PMU for the guest on vCPU reset Message-ID: References: <20230817003029.3073210-1-rananta@google.com> <20230817003029.3073210-3-rananta@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Mon, 18 Sep 2023 09:48:51 -0700 (PDT) On Mon, Sep 18, 2023 at 09:41:02AM -0700, Raghavendra Rao Ananta wrote: > On Fri, Sep 15, 2023 at 12:33 PM 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. -- Thanks, Oliver