Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2545057pxb; Mon, 11 Jan 2021 12:30:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKw7P11aw4H++O9WNmnevx53A+rADwt7OUImpOEuxHUMqAS+3BEGlaujOnFs7ir5fAn5dF X-Received: by 2002:a05:6402:168f:: with SMTP id a15mr856798edv.376.1610397052304; Mon, 11 Jan 2021 12:30:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610397052; cv=none; d=google.com; s=arc-20160816; b=SQK6lH44bmn4092K9XHkFlCw9eUG9faVVYLCtnx+3+0lorTbwJxEt23V1sfZBER0Dz yjZHGxJwAQwvPzvfNyo2n8Guf+IDZqCJyJk8Z7gWIFicfcikdsRSOPerRTq/EUaW6OP5 46+2xAUf5KlcLR70tKN/H+CGl2fG52kj1VDCMa94Bkqtm+SsNcmw13UNS0RZ3ZC8PY9e e+UZtmyLhQ9DtQvF8Ba3FEsODsnwHnxygb6ywSXSP07DLqN5HIaybDml7XwXXm9cslWJ JpvRJ2p6H+uIn4I3gJjc6px/3Q2WZUroQWVttJ6aEa+31QdNNIvaoSO0I5JS1nzZ/99N pxTQ== 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:date:dkim-signature; bh=iI1rIqMfwu1P4fzKj9/kRKSVEqcKsOkLrborReGYEMY=; b=ebrQjp7eRazo3ahyn8C8GtFYoadD10yxjD76V4aEAisTFkSBhU3FOU2O9oro+j1KcT cPnT/SU50zTYbYRqzBrW2ij8FynSBhlVm1JhUFZH4wSYpUBnIrcsYQvlhgV7ugpeBNzp /E3chHKFs3skNkHtakNC/Ri/8dZNqWBf01IqfE5bCll9zaanY+31lfz3ZrHaSuJFf7/V W3M7Qyer3Aa0iZNVu84JLZTBCQYWYmrnNj+8agQzh5s+KXtR2RM7wVK3DrB7G3dPideE 6M/lh0WbWb+gBScCxZafivrwAxSsdMx2Y96pCKY7pBqQBgFWKP0tlAY6LHsy+hdeKmAJ +duw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="n//tBuPf"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v8si174074ejj.305.2021.01.11.12.30.29; Mon, 11 Jan 2021 12:30:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="n//tBuPf"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1731558AbhAKU3V (ORCPT + 99 others); Mon, 11 Jan 2021 15:29:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730029AbhAKU3U (ORCPT ); Mon, 11 Jan 2021 15:29:20 -0500 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE775C061786 for ; Mon, 11 Jan 2021 12:28:40 -0800 (PST) Received: by mail-pj1-x102a.google.com with SMTP id y12so236619pji.1 for ; Mon, 11 Jan 2021 12:28:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=iI1rIqMfwu1P4fzKj9/kRKSVEqcKsOkLrborReGYEMY=; b=n//tBuPfufjrPGNJXimcbOspw3o6JHeeJgul4/wExnnP7yEohCopxZJdpmS/N3xGs1 jC12nWIQusxHhtJaHdbXXugkwhS25diUWmISXfKnFmqbWTcm5Ybdvgc9ngrbkYGmFn+3 aznnz9kqMDwRIitTKgPuRdQNyWzpWHYJl/s2Nl8MPUVV3A3RrBtUQXQqjW5LieB67Ysq 8qYGk7jD76Qmpe6o9nIoysK/O6Ct94Gr6NNbTsL7kfWMQUXzxeHWRDaDQmjmuMGR/7dU J6MQB6BauelnswIQQax5lnYo+P2d1CntVXjxAo5bQsp3DFsWGm2gGjFe3NAwPYX2s3oB 3ikw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=iI1rIqMfwu1P4fzKj9/kRKSVEqcKsOkLrborReGYEMY=; b=FxwCwrNnKWsDV4wRfQdzUK72T0wc9xM6tRseUswWVJP4snzo7HQ0hSKWLzd9Z9rb2x nhr6raAuk4Z++85XeYLX//O80Tu6luVEs/J2/HE6p2ofQBe8ObQUHvlru+F6x3J8P4qr bwTXjq8ErM5akAKFlF3RbCLotx+S1KmDgWYT6/Jmm8z8+dGAzVrJnWI2XvtdG1bgfCH7 xheJW1VG0JcuHLK7OZNtpCgQdbDwgBRckuX6ag2W2oMP3aYb3y179w5InWW2GrK8RrZZ 17MSq7yJLcYhoAJwXrU8S3Q1viuM6DYxi1OckGauWpUSSu63Y669O3gntMtb7bpKVEe8 iEMg== X-Gm-Message-State: AOAM530+CuxIWaj78bI1N1/s3f4u1G5DE82WlY7BglK7UcIEvbSEvsvB DW3A7zbV4umz3iScplQojL/qxA== X-Received: by 2002:a17:902:ee11:b029:db:c0d6:581a with SMTP id z17-20020a170902ee11b02900dbc0d6581amr1069008plb.54.1610396920141; Mon, 11 Jan 2021 12:28:40 -0800 (PST) Received: from google.com ([2620:15c:f:10:1ea0:b8ff:fe73:50f5]) by smtp.gmail.com with ESMTPSA id w18sm471444pfj.120.2021.01.11.12.28.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 12:28:39 -0800 (PST) Date: Mon, 11 Jan 2021 12:28:32 -0800 From: Sean Christopherson To: Tom Lendacky Cc: Paolo Bonzini , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Borislav Petkov , Brijesh Singh Subject: Re: [PATCH 06/13] x86/sev: Rename global "sev_enabled" flag to "sev_guest" Message-ID: References: <20210109004714.1341275-1-seanjc@google.com> <20210109004714.1341275-7-seanjc@google.com> <5b3a5d5e-befe-8be2-bbc4-7e7a8ebbe316@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 11, 2021, Sean Christopherson wrote: > On Mon, Jan 11, 2021, Tom Lendacky wrote: > > On 1/11/21 10:02 AM, Tom Lendacky wrote: > > > On 1/8/21 6:47 PM, Sean Christopherson wrote: > > > > Use "guest" instead of "enabled" for the global "running as an SEV guest" > > > > flag to avoid confusion over whether "sev_enabled" refers to the guest or > > > > the host.  This will also allow KVM to usurp "sev_enabled" for its own > > > > purposes. > > > > > > > > No functional change intended. > > > > > > > > Signed-off-by: Sean Christopherson > > > > > > Acked-by: Tom Lendacky > > > > Ah, I tried building with CONFIG_KVM=y and CONFIG_KVM_AMD=y and got a build > > error: > > > > In file included from arch/x86/kvm/svm/svm.c:43: > > arch/x86/kvm/svm/svm.h:222:20: error: ‘sev_guest’ redeclared as different > > kind of symbol > > Dang, didn't consider that scenario, obviously. The irony of introducing a > conflict while trying to avoid conflicts... Even better than coming up with a new name, sev_enabled can be removed entirely as it's really just sev_active() stored in a separate bool.