Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7528546rwd; Tue, 6 Jun 2023 12:05:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4HvTzauF2vLE7RN5VOfs2q7xHarLM3uo6EoLCAQgHmORmS/ttdS3Rxc9VHYk2dGopKW4s6 X-Received: by 2002:a05:6358:c51c:b0:129:94e6:cb46 with SMTP id fb28-20020a056358c51c00b0012994e6cb46mr530326rwb.17.1686078313196; Tue, 06 Jun 2023 12:05:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686078313; cv=none; d=google.com; s=arc-20160816; b=zgJcpfjkjGmxvI5R/KvmbmwYSUiUZAWfNAg9kSRbwIDGIgAxpnLa9vF7L3rt/9z0rR IZ6rh2cRHor91CUPIcgsudxAiRm3n6Q+6lvToa1VHGUCZAVFuy4yZUBpKLoDZ1pHiWLS 0nOibekRGeUCO7aoG+IoLIyLVZocGmP2aOpy9xlXwVRJB6WI06xtrk4neuyeQxjnsqm/ PWPkJMrN5v4SpdBhOLMyBaxTcS/C+kY1Z0AYPE4MXtAFatYEo46R5LuAaJ7J4G5FDNPJ H056mwUJaPVIHkMfZn60Js1tnc+9MrIBHgb1Q8lNFqdFOA4F8gDFnlqB50RYQKmHL7wS Z3Pg== 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=fN0Fls1U74QCQM1Xm6ZYG4bCrufqtPp5nAnLDL+EUzE=; b=pU8fL0aevFD5s/ywdeFZjVqV0GgP2dnF3+PLtUizoE1YTiuKnaqSmuedzFgRyyWP6m LF2scZOxdUlFQh+2xgOkTx0ks1xKay7pu0YYd3IN0rZf4PM6QspIIcigq0rja00S+Q1P XIe2eLF7h/4BXKL90IbmRGC4vfY71CxlJywCTwIReKFznu2VOXyNPv99/ouOf3GuKx46 qZvfd1UsPUtLx2gOlOExHMtLnraIRUSyAEXFXhhMN4gZBRWWqA8DtddEo3bYlKK00T/n pE510d3RWdgRTWSh/nXiQIQNQZ9muYL47dJETObD0DuCIN3NgWg1BgXAweRvHpGmJAK+ 81JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=FwQXYRBx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gp15-20020a17090adf0f00b00259aa539533si764119pjb.105.2023.06.06.12.04.52; Tue, 06 Jun 2023 12:05:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=FwQXYRBx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S239096AbjFFStC (ORCPT + 99 others); Tue, 6 Jun 2023 14:49:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239128AbjFFSsu (ORCPT ); Tue, 6 Jun 2023 14:48:50 -0400 Received: from mail-pj1-x1049.google.com (mail-pj1-x1049.google.com [IPv6:2607:f8b0:4864:20::1049]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B4E4173C for ; Tue, 6 Jun 2023 11:48:48 -0700 (PDT) Received: by mail-pj1-x1049.google.com with SMTP id 98e67ed59e1d1-256419413a3so4484998a91.0 for ; Tue, 06 Jun 2023 11:48:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1686077328; x=1688669328; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=fN0Fls1U74QCQM1Xm6ZYG4bCrufqtPp5nAnLDL+EUzE=; b=FwQXYRBxBJBGXt1Lq7luAzvVT4DDyzoXVPP8VB7AHg2yHiHbpo6AmHR3BLCubiDzY1 m+7p40bUs9ndbSQxs9i2hNhFTSYzhA2Ad8c0Zb4QgBSYdfSAds/+4xzyCHpWUZHJ9yvu AZGILlP244CpP86XBey+8iLx7C9zzx2103w5IXOwtM1ug40RI1AQBVJNdMqBFD+St9TV rZ8GLA4QlMpSRV9ZdSNJVU0neFkTc8ykG6gmIMuXawiD9vkTU7PR1C/uDnt26o8Q6xsB bu6f4yXDFNB/9Hzumk2tEshQ/7DFLH6p6bA6h+ZOB7v1xyuVN3UP3W7410NqcfGLrNF1 Ou0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686077328; x=1688669328; 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=fN0Fls1U74QCQM1Xm6ZYG4bCrufqtPp5nAnLDL+EUzE=; b=MzSHgC56xuYK+q2SLFa6Y9DCz6WJEzd5ATq1Bo3QShjL6mXJAQb8p7GrQHiv00SM+0 Bj9NOE5OVjAN2MEaaBYR1BX4+pxOzj35k14v7kj8FNRa6c6qf1CtNghgxocFjWvk8u6p qX7tYqaTuwuqltGMxWk3rG9CzJlOI8Fe82f2opH67B06hbNiKtabfuCDCoq8Hj6nYxrW s5LVduimFg8r4hksl38xsRtEMZv2t9GsHS8g5Q/Vd97VyzROT4iIyQJCYcEKWIvUvgo5 sDuVs5V1lpJyxRUWkyGaFkVeksv6ODSSUROzOKwRDrRTexsixEYtzenuZ+yxMPkYnJHE KUZQ== X-Gm-Message-State: AC+VfDyDRMJVvz0AGwxIifBtJQVcSb3cdmnidrRWfxZyP/M6e3QeTL7+ TdDsqJDKK3WaymSn9AwGpiftSsk9FUA= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:90a:cb97:b0:259:ae68:858d with SMTP id a23-20020a17090acb9700b00259ae68858dmr388903pju.1.1686077327954; Tue, 06 Jun 2023 11:48:47 -0700 (PDT) Date: Tue, 6 Jun 2023 11:48:40 -0700 In-Reply-To: <20230522161249.800829-1-aleksandr.mikhalitsyn@canonical.com> Mime-Version: 1.0 References: <20230522161249.800829-1-aleksandr.mikhalitsyn@canonical.com> X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog Message-ID: <168607721796.1301198.548168594619269524.b4-ty@google.com> Subject: Re: [PATCH v2 0/2] KVM: SVM: small tweaks for sev_hardware_setup From: Sean Christopherson To: Sean Christopherson , pbonzini@redhat.com, Alexander Mikhalitsyn Cc: "=?UTF-8?q?St=C3=A9phane=20Graber?=" , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" Content-Type: text/plain; charset="utf-8" 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=ham 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 On Mon, 22 May 2023 18:12:46 +0200, Alexander Mikhalitsyn wrote: > KVM: SVM: enhance info printk's in SEV init > > Let's print available ASID ranges for SEV/SEV-ES guests. > This information can be useful for system administrator > to debug if SEV/SEV-ES fails to enable. > > There are a few reasons. > SEV: > - NPT is disabled (module parameter) > - CPU lacks some features (sev, decodeassists) > - Maximum SEV ASID is 0 > > [...] Applied [2/2] to kvm-x86 svm, with the minor fixup. I'll post a formal patch for the alternative approach to "fixing" the leak, I can always circle back to this series if this approach is preferred. Thanks! [2/2] KVM: SVM: enhance info printk's in SEV init https://github.com/kvm-x86/linux/commit/6d1bc9754b04 -- https://github.com/kvm-x86/linux/tree/next https://github.com/kvm-x86/linux/tree/fixes