Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1567517pxf; Fri, 12 Mar 2021 12:52:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMcafRhVwlNHZSjcFAb2v7tOYO4JedK9ywPPy24Ln/GcVlIazKX56lsxAam/7+QdNJoukK X-Received: by 2002:a17:906:a248:: with SMTP id bi8mr10644217ejb.260.1615582378868; Fri, 12 Mar 2021 12:52:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615582378; cv=none; d=google.com; s=arc-20160816; b=fKLLembJ7ksAoD0BFUAKJx75y8c8Lmw8uBwegmz2oC270/udCEofE9e7mqFi99dQLj Cw64KPtxMBMtbXnN0cZGBOBU25Hl+Y93TLa1COSalkQKsah6fQjstm2BNMshqigyOYDi e/3irsM+70WiTXeMzeHmHdbZI0m+3zGs+NCJmQmYxtgk5/Bvqu5jZWHKmKz2XPsP7Al9 kOvVrgZQwSNcgVAp/NaN/gKzrmKJTO4a2RblmT8KtELTp995o6jfapznDo1sKu9bpw4g EdrdSltxAym4yqzVejWy7mOYsinunoddfNzLTY6wLoRM2lLndNKVYmEZchfgWJr1Km9o S3KA== 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=vDrjln050ZWSD2n57JKYsjj24mDG3Mu6cQfXoag8kqA=; b=aPKISWv1BOcQ9EUS+B8LO8RoQ26dnVa73njpDmVLYQ78iEohwEoMJwddzkB6eDNx0/ gtv5dsv8u6lTCahCJQW6Gs1aB2zBgbOr9m6TO5eVd+eUe4duYWd/f8WJ74FrWRuzJ4ua u6xL7tmcYxK10cMF4Ky0tSt8UwASbwLvYvaQmfXfZr5nnt97iwwlJ6i8yVUJJtuyHFa6 YIwSPTewm6PqeRQh+Ky7oPbVJHmrIfb3DX0GcZrHEfvoXpGolPR8sEnwk8+TFrxBiNkJ /qQTi2vSSA4WX4Hoeq5EzdD7WM1qUW+b7FY5uVRgWkGevmb38I8gXv1LrtEJWpMvMvvP cGow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=o1+mWphv; 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 kd10si4956480ejc.41.2021.03.12.12.52.36; Fri, 12 Mar 2021 12:52:58 -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=o1+mWphv; 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 S235014AbhCLUvl (ORCPT + 99 others); Fri, 12 Mar 2021 15:51:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235010AbhCLUvd (ORCPT ); Fri, 12 Mar 2021 15:51:33 -0500 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7499EC061761 for ; Fri, 12 Mar 2021 12:51:33 -0800 (PST) Received: by mail-pl1-x630.google.com with SMTP id a8so5973945plp.13 for ; Fri, 12 Mar 2021 12:51:33 -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=vDrjln050ZWSD2n57JKYsjj24mDG3Mu6cQfXoag8kqA=; b=o1+mWphvFvKetD8P/Z44PWPcjEPdOlxMP5SOQC16Tskp42s9q00lujmGOIFQWhhEaV 1ink7OOHVOKxPCCC+xqBCilm4hYNtfYqXA93rZbxOrH+fXw4mCuIhAwvWzxV35JiV+lI F1bLUj/xMyG+8vXBR7aexe3fAaM4Tn1okrASG7GtrXc5qspcBWXZQM7rDaB+VFV0N60v kqKR+njm735YkwAXVBzJHHZZE38U649WTUg1VLZeSW1oWofsuolBzXu7AdqcTUoHQVzv iadBzD/YkaVT31MESOfV0PH2BVjAOVGU26qG6tzmz3UOVKovVIWHocspnwgnzALbc0so pMqQ== 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=vDrjln050ZWSD2n57JKYsjj24mDG3Mu6cQfXoag8kqA=; b=m+SZ51A5Dg4ByzxK5w3x05VVBKOkImsvk5boCHwPm7nches8S4wltIXASsHwJVlRy8 uwP9vANeBXcFiBioNlFnRaYddyCK6qZt3XpVBEfk9RMxo92CWoCQC1/heCb/5ngKqrEp uBg4Z15oQOKlI2sW7oYf1jTmZOUQe71//F9kiLkxJR57wYY4/NVwIOrufRqq7qDWm3sf nlq4VZXd7VkUiN0AiNW7ZEhc3M95YCeGh3PLaa6GtBj5ejKCIHbgNTIrr3u6Ttbeuhdu 5c1ihBHF7pdEvA6mla77bbAk+tqfnxbJpt0+OB6oLoyHn8zqSB1KQZiCGgTWP1YWJ9l1 IzIg== X-Gm-Message-State: AOAM533EKEbdQ/oawMzAydeYiLyDhXLHS/WA0rEOf6Qd8oKQgnJPCAOv 38CAlGVbVUvSwXNo57veSWGyGA== X-Received: by 2002:a17:90a:a414:: with SMTP id y20mr122695pjp.77.1615582292700; Fri, 12 Mar 2021 12:51:32 -0800 (PST) Received: from google.com ([2620:15c:f:10:e1a6:2eeb:4e45:756]) by smtp.gmail.com with ESMTPSA id a144sm6710227pfd.200.2021.03.12.12.51.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 12:51:32 -0800 (PST) Date: Fri, 12 Mar 2021 12:51:25 -0800 From: Sean Christopherson To: Vipin Sharma Cc: Michal =?iso-8859-1?Q?Koutn=FD?= , thomas.lendacky@amd.com, brijesh.singh@amd.com, tj@kernel.org, rdunlap@infradead.org, jon.grimm@amd.com, eric.vantassell@amd.com, pbonzini@redhat.com, hannes@cmpxchg.org, frankja@linux.ibm.com, borntraeger@de.ibm.com, corbet@lwn.net, vkuznets@redhat.com, wanpengli@tencent.com, jmattson@google.com, joro@8bytes.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, gingell@google.com, rientjes@google.com, dionnaglaze@google.com, kvm@vger.kernel.org, x86@kernel.org, cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [Patch v3 1/2] cgroup: sev: Add misc cgroup controller Message-ID: References: <20210304231946.2766648-1-vipinsh@google.com> <20210304231946.2766648-2-vipinsh@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 12, 2021, Vipin Sharma wrote: > On Thu, Mar 11, 2021 at 07:59:03PM +0100, Michal Koutn? wrote: > > > +#ifndef CONFIG_KVM_AMD_SEV > > > +/* > > > + * When this config is not defined, SEV feature is not supported and APIs in > > > + * this file are not used but this file still gets compiled into the KVM AMD > > > + * module. > > > + * > > > + * We will not have MISC_CG_RES_SEV and MISC_CG_RES_SEV_ES entries in the enum > > > + * misc_res_type {} defined in linux/misc_cgroup.h. > > BTW, was there any progress on conditioning sev.c build on > > CONFIG_KVM_AMD_SEV? (So that the defines workaround isn't needeed.) > > Tom, Brijesh, > Is this something you guys thought about or have some plans to do in the > future? Basically to not include sev.c in compilation if > CONFIG_KVM_AMD_SEV is disabled. It's crossed my mind, but the number of stubs needed made me back off. I'm certainly not opposed to the idea, it's just not a trivial change.