Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1533274pxf; Fri, 12 Mar 2021 11:52:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+eOiuw/mWu2vOInXQS2VVd3qUMqpJ9Mkn+Kc6xHva72h2F5bR9xqknqHURfN24rHkiKPs X-Received: by 2002:a05:6402:1853:: with SMTP id v19mr16085784edy.179.1615578756446; Fri, 12 Mar 2021 11:52:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615578756; cv=none; d=google.com; s=arc-20160816; b=ZRAI4S/w/hTyAe96IYPdZg521JoBA0TXMQdTvN4EHjyR9S9n26G8GIF7+YPfy+M8GR qRrfwzXyxIXp0anLwEHWFUi2M7p2d+QgyOOfn/w0hYcLKrU/tMPHmRpT9AfQ9dQaDeHc o0mHzZWzwmIlD6Zk7/ZkaCaXgiL8XbaeteidK02txQd3OzxaBad1pTAJX5fmh1THc40R B6sxQlopnEodKYgyDWh/xQDip4c7dWrtxNm6H1pdf0P5urrlmrdMgsuxhhy68a4AAif9 Q0iEDZNdQ8Kx65TWEjqSrN9zsH5MvF8WJdqsl2wbonR/MRgMm3q46q6Jr7QvhFDNYDw2 3FDA== 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=zuaTRfZk4KRzZSmxlNItyx5xWByHUkD0/JshLCV8WMM=; b=cq9eOzstm4Ys9kwZZUObmjSSa0DsMciSAwJj1Zhaj9eJltMExhFj/uKR3JKVyv4btF Jrg8QxSlRLy/WIF99KjMym2WQ2/57VaPikCLWF/QiitvH5YjMeGMhv9fRMY5VHRPrDvn Z/CZk9tJhLoCnGYNI56hpQOcmCxMHSiYqRuHjnYacxGWYIEas4shvBb77FNNxXfSzNBz m+9PmPMGm7ncF67KfEtYRUcjVrR0x4WLkjkZiDfIkq5jzW817LwHYnbFrROH1p1vsdXC TxsSUcoR1gNJuUZkx6sztWh4gXH2Kb1i+6SMaRwtXe6m1+xEguielqGLMbsJa2fgF/wC QqvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=IaU52dkJ; 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 q18si4619962ejm.178.2021.03.12.11.52.14; Fri, 12 Mar 2021 11:52:36 -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=IaU52dkJ; 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 S234476AbhCLTtQ (ORCPT + 99 others); Fri, 12 Mar 2021 14:49:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234383AbhCLTsp (ORCPT ); Fri, 12 Mar 2021 14:48:45 -0500 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1566AC061574 for ; Fri, 12 Mar 2021 11:48:45 -0800 (PST) Received: by mail-pg1-x531.google.com with SMTP id 16so10115093pgo.13 for ; Fri, 12 Mar 2021 11:48:45 -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=zuaTRfZk4KRzZSmxlNItyx5xWByHUkD0/JshLCV8WMM=; b=IaU52dkJTOEb+ySNKCWrDTgUccXTzzNVSIkFb/oKqISl2Zm82pfTIJJrINPh3gEISu wqODIgofIW2biXzNaXrk3K+R3ysiwdg1lxXYXgGwQhEoZim8L6kmWGvPvbPFsLuqwe2Q vVCGaYGtGcQzOgriqb7Hp2kKwnHn7/oAzr0LLbRo1OS1HxJtuPo8NChHgDBZXrOz/HOG VG/JR249fw7osncKemnky6bHNM+nEzmsBDygYDdRYTuS9U36krcOs5ZhiEDJ6Ylcq2sW 2+IGeAShq0oeY79hz1mA+M0B0L64tNihivmYUoJmtqNaIdMvuwJtTIpBY/LhINyzP5aT 1/jw== 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=zuaTRfZk4KRzZSmxlNItyx5xWByHUkD0/JshLCV8WMM=; b=W5M6EMZDKQukRM/EZ4naggwKEczYaT7cmhH97kWZDwm3yBT6DVJDKEr4Gfwas9+3wQ /NYlgYBZ7gLxDimoMYp+STdWKJlMLKXx23HJl2p58tsBVPNult0+7H7K1MEYo3vQchjO Y02qpESeUaeNJ3CXmuJzs8iEeNfy817SzsTbEVrN59kqpuEcMhGwUUI0lothAOl1xH/7 oC2tJnMFQp8Xup7oHln0aHQyKUtqHnEghvRoM+tzpG5/jF/p2DCSu66fpx/Aj2Owoi1V xbdip+k3IcfNGeTHhr07/yGKfX9RlOOq72DLkbB6rWKXmqsmLbiS9rVZH/Mi8x4bUKLf tOmA== X-Gm-Message-State: AOAM532I6ic+k8Nu4+BSW4p/YkP7wGtfptTktyqiv8Bp0EFBIOtJ3yAZ xL/6AcjP1Wq59Gdb4yed2jejwg== X-Received: by 2002:a63:1d26:: with SMTP id d38mr13639513pgd.385.1615578524487; Fri, 12 Mar 2021 11:48:44 -0800 (PST) Received: from google.com ([2620:0:1008:10:18a1:1d64:e35b:961e]) by smtp.gmail.com with ESMTPSA id d22sm5745803pfn.25.2021.03.12.11.48.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 11:48:43 -0800 (PST) Date: Fri, 12 Mar 2021 11:48:37 -0800 From: Vipin Sharma To: Michal =?iso-8859-1?Q?Koutn=FD?= , thomas.lendacky@amd.com, brijesh.singh@amd.com Cc: 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, seanjc@google.com, 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 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. Michal, This should not be a blocker for misc controller. This thing can change independent of misc cgroup. Thanks Vipin