Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9512469rwr; Thu, 11 May 2023 16:34:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4tjhk/8eRFHdGmdbVpm2IRAXuH4N7rhwGGTS/hRA9kQq0lObzXVFAIovS2vzPs6Ncm0kC9 X-Received: by 2002:a05:6a20:6a14:b0:100:1ba4:d67c with SMTP id p20-20020a056a206a1400b001001ba4d67cmr20484879pzk.62.1683848065728; Thu, 11 May 2023 16:34:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683848065; cv=none; d=google.com; s=arc-20160816; b=XSBorN3atbnEjyYQjiClI/lRu3SdzipPBHosxjPX+lULPx6CPRX/jjvo2hoMVRxMkP e3AmW70iVQEbSiSeGxkrksDeooIxMSYuONvZxL+r4oxxVhFOwlGe1UBNQaaQS4mk4iiG r6Wmt+9FsETteTIRnj7cbcWDNsUlqSiz8nDlqPPtyyUv5Uqh9KVgBss8aFXr/2YBJEI8 IL50cs8Vs1iQjyjLUzi5nd+cv0/un8ovAmVPE+/L+eVxi0lUXVAeB1IxFbqWIIHmuH5R W/fSRaiNp6us7oHrLAhRxEggpF9DGkKQ2eA/7T5NeY7JfhYromKLwPPHsQ0vOnTBWYSe Be2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=nS6iEDTOVPKXI4+UjpZyIPwKEGgdgovZohVYNbQWeU4=; b=vlqtGdMkFCfg33aCkqLin0Hz+4P49nF55T4I++T5neEhsy8mlsMFIzUW7e64WEyfFf nhQpl+GNayjA1I7+c7QBpxPa/Zy+40ECCcC2l4upQ3NgkrIaROtGgVJ9QLzX+gM8g6ll RNuIabxQfnWK96ltHvLL98LPJng+HGUH3sXK2bDst5RNm8Ckr0z0u2iFDJP0g7hFLBwY GHz8Sty1ntbd2PMex0x7uccFrUs3zj0LzJfKh7RdueZWgBNxM2zOOOXqgpuD5DrdewSS PpRFylIYCg0PaS4GFSZhUFdMqECJHtxkgG4skoXjoEgyhgW0Adyxls429xay+QbjOXl6 cVbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=m1mTn2XP; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h14-20020a056a00000e00b00640d9c06df3si4298414pfk.329.2023.05.11.16.34.10; Thu, 11 May 2023 16:34:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=m1mTn2XP; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239181AbjEKXdC (ORCPT + 99 others); Thu, 11 May 2023 19:33:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238949AbjEKXdC (ORCPT ); Thu, 11 May 2023 19:33:02 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 931B76187 for ; Thu, 11 May 2023 16:33:00 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-b9a7e3fc659so20610078276.1 for ; Thu, 11 May 2023 16:33:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1683847980; x=1686439980; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=nS6iEDTOVPKXI4+UjpZyIPwKEGgdgovZohVYNbQWeU4=; b=m1mTn2XPoYvYXNYJmfzWbIDXWq4bYYqRuSCzsqBrmXOyn0iTSW1mGChChBz38nWBh0 /YSu9i0Bb6HmByvNbI7ZobUCRNgitVQYeYkZ28Olsr2kku2etC+KRSnaLV37gSC9NNoE J3UlQ9E/lehVq2TxQmiEHcWIyLQKKBpYYY+dBzQvNKqGITGF765K6JIP200Gg32JpwLO H+2eHiQq2bHEsJm3WaQW1ox9sUuCfjgkFLErfCQKAD4zQw1/4UOVGm8nGrJaI+HIZFdl 22Nup8SaEUuyrR8htD0XbmubnyMDg1dnO7tQPh1/wXKOgcuzyWMD1+1f2n3evlgiQJVg G4fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683847980; x=1686439980; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nS6iEDTOVPKXI4+UjpZyIPwKEGgdgovZohVYNbQWeU4=; b=G0BEfcTXsnuKGnIhoO9O0QT1iZZohsAky01TOOtVfCjKKFrefn74PNjmyz+XvVjnUg 7Fo/HZ/R2mKRQL4UDxncCCWgHrvRIjAB0JK178GuRLbmfRiQGoi3YF7cUoYV4MvrsrF5 FdgDO4+vu1ugiYHV8i7uBxNstB6PHHmKik8O54HSO3M9/LCwcIAupg1JkWE7kxW0X2gS PD8glQp//RPhAD/+V44Lc8vPpIqR7GS5ZKSrBuAQC3VJbuQ1M3p+8TqOgPHDjnNFK5ud InklkObHLLOC2WD+FnvEKbV2IFRJgsLvzDJnfuc2SNU4Q9zjEAl0Br5hRhtvwqOmxZwB 24jA== X-Gm-Message-State: AC+VfDynmt8N2iNHMyMVc7N43mACtUduDjiJYxfNqjQ3RXOGK5qCCy/R hUQDm2MnFEyXmHR5JfbI7DKgFn3ar6Q= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6902:188c:b0:b96:a18:1b4c with SMTP id cj12-20020a056902188c00b00b960a181b4cmr10800373ybb.13.1683847979833; Thu, 11 May 2023 16:32:59 -0700 (PDT) Date: Thu, 11 May 2023 16:32:58 -0700 In-Reply-To: Mime-Version: 1.0 References: <385016f9-e948-4f7f-8db3-24a0c0543b3d@amd.com> <55e5f02f-4c1f-e6b0-59ba-07abc4d3408f@amd.com> <81037a58-6b5c-cde4-79fe-3686d9b8a551@amd.com> <7fb25176-3752-1be3-66d4-a7f5a0e1617a@amd.com> <682c0bf9-ccf7-9660-21fe-925ef63c5fbb@amd.com> <4c642bd1-5f1c-292e-398f-eed699db590d@amd.com> <65cb8f0f-7e8b-6df6-6bb1-a9f1add027bb@amd.com> Message-ID: Subject: Re: [PATCH RFC v7 52/64] KVM: SVM: Provide support for SNP_GUEST_REQUEST NAE event From: Sean Christopherson To: Dionna Amalie Glaze Cc: Tom Lendacky , Alexey Kardashevskiy , Ashish Kalra , Michael Roth , kvm@vger.kernel.org, linux-coco@lists.linux.dev, linux-mm@kvack.org, linux-crypto@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, jroedel@suse.de, hpa@zytor.com, ardb@kernel.org, pbonzini@redhat.com, vkuznets@redhat.com, wanpengli@tencent.com, jmattson@google.com, luto@kernel.org, dave.hansen@linux.intel.com, slp@redhat.com, pgonda@google.com, peterz@infradead.org, srinivas.pandruvada@linux.intel.com, rientjes@google.com, dovmurik@linux.ibm.com, tobin@ibm.com, bp@alien8.de, vbabka@suse.cz, kirill@shutemov.name, ak@linux.intel.com, tony.luck@intel.com, marcorr@google.com, sathyanarayanan.kuppuswamy@linux.intel.com, alpergun@google.com, dgilbert@redhat.com, jarkko@kernel.org, harald@profian.com, Brijesh Singh Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_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-crypto@vger.kernel.org On Thu, May 11, 2023, Dionna Amalie Glaze wrote: > Would it be okay to request that we add a KVM stat for how often there > are GUEST_REQUEST_NAE exits? I think it'd be good for service > operators to get a better idea how valued the feature is. Heh, it's always ok to request something, but sometimes the answer will be no. And in the case, the answer is likely "no stat for you". A year or so ago, in the context of us (Google) trying to upstream a pile of stats, we (KVM folks) came to a rough consensus that KVM should only add upstream stats if they are relatively generic and (almost) universally useful[*]. IMO, a one-off stat for a specific exit reason is too narrowly focused, e.g. collecting information on all exit reasons is superior. And no, that won't be accepted upstream either, because for some environments gathering detailed information on all exits is too much overhead (also covered in the link). FWIW, we (GCE) plan on carrying stats like this in out-of-tree patches, i.e. your request for stats is likely something that would get accepted internally (if it isn't already captured through our generic stats collection). [*] https://lore.kernel.org/all/87czp0voqg.wl-maz@kernel.org