Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp831333pxb; Fri, 22 Apr 2022 12:07:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwi6RHWNhF6oCWrUQFjh/GHXR8qNQtlfshKzEKHmLhRUuGYtlMAVntn9xQ6qfehbEWybtUe X-Received: by 2002:a17:90b:4f42:b0:1d2:d1fa:4df5 with SMTP id pj2-20020a17090b4f4200b001d2d1fa4df5mr17768842pjb.81.1650654432331; Fri, 22 Apr 2022 12:07:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650654432; cv=none; d=google.com; s=arc-20160816; b=h7wBuJue9E93Z88o+UtKvikZlTPZMuD5fkdCMxKiypma7ZT8U0/Ik6f8i84Pr3Yiv8 pTp9bIcq/9l8EwXVGYVlY9VBexd9xhbIzUtZK/esAgt99zcMINPKXEMGSIbeNIRJ1SF9 mp9d5qqdMQ53wMVMhBxZ1c/QoimXDez10ROQ0D/8Xiclr/ASdpEJoutYuPTc+QUl32b+ tZPmHru+BsNV+ae35piXaVZvi2xes3oxZf+f7O9OgGTaB1gY+16emDwZcuJtywYw2xHG BMn+WJ+xhB+mjn0fRrkYzEVIbv2X6tRtYxMxsJIea6w12KsJNkQyWj4QCxLXSMluKWcq iUOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=A621rnKKmb0XBlYOg6BtNnfGXDRRElHwqh9SyvnF7j0=; b=Y8qbBSTD3WTYenSskKok6KrEkonsJ5pJVYy//g2ZZ1KGlUL5/Pf+7YmoEjxrG5Dciq iV9v3KixiJvWSnAJkiMf+TBsthfYh3nykN1Osp/rIqnOVIRvb6sJrM2QLeq2Ccqn26P0 D8zctebdoo543/jp3Gmcl4a21u6O7YjHyAe7F0AW82yFu+Dc+gl+PhCb8+19LebQ0xP+ 5KQIwJK/2vzi3K+ptVhBmkCXQapzloMJa5IbBo+I/E73ApzqJ5MQ5fTkm0CDsL61JeBd Mz1QGVb/ak5euDWm74GsbFRnTYE7ubt2R+6xzKLD3zbqq2fuVEgtx3dMiNrRyfmEubhh ktqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CqPZLWOe; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id i18-20020aa78b52000000b0050ad22888dasi6311502pfd.158.2022.04.22.12.07.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 12:07:12 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CqPZLWOe; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 91BB1392ABF; Fri, 22 Apr 2022 11:26:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353286AbiDSO3D (ORCPT + 99 others); Tue, 19 Apr 2022 10:29:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349562AbiDSO11 (ORCPT ); Tue, 19 Apr 2022 10:27:27 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CB5835A86; Tue, 19 Apr 2022 07:24:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650378285; x=1681914285; h=message-id:date:mime-version:to:cc:references:from: subject:in-reply-to:content-transfer-encoding; bh=S/AnCfZB2POHJ489DdjypzBOnhx3vZSBUI8TEc0qIJI=; b=CqPZLWOe+A78Wk+FwsEcLBVERF48br7drCngxW6KoCRdoVhqGzDLhbtb PG/eI5Gs6TVWfli+/eZ2Tdrr5rn7VD4CTH/THi54vaftjOLagxXJ31Tk0 XS5NySOFQtHcTcoQ6GaOc+C9cwLb1hN61UHVtXJHLkBubYaLJ+co1J5c0 rbIy9SGIrmCFO00zISvMOf6lsE4rrBt0Bw0aI4qNSLEBFT05+8KrV0sHc Iaxv4o3sDiLV7AjuRq0azNksRXAK4Ag0cGNjl2VY7PB4dcdrqu4Qglqa9 QqeI7/YxNXGwgJkgsbpN5cL1SEVBg6eli7lpvvALPYV3R85vSqEe020NC Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10322"; a="324219231" X-IronPort-AV: E=Sophos;i="5.90,272,1643702400"; d="scan'208";a="324219231" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2022 07:24:44 -0700 X-IronPort-AV: E=Sophos;i="5.90,272,1643702400"; d="scan'208";a="657656324" Received: from aislaslo-mobl.amr.corp.intel.com (HELO [10.212.57.245]) ([10.212.57.245]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2022 07:24:43 -0700 Message-ID: <72205a7a-faf2-4322-02cd-303ee8252abb@intel.com> Date: Tue, 19 Apr 2022 07:24:43 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Content-Language: en-US To: Sathyanarayanan Kuppuswamy , Kai Huang , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Hans de Goede , Mark Gross Cc: "H . Peter Anvin" , "Kirill A . Shutemov" , Tony Luck , Andi Kleen , linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org References: <20220415220109.282834-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20220415220109.282834-5-sathyanarayanan.kuppuswamy@linux.intel.com> <975b5050-2108-9ace-cc71-46f17db0a731@intel.com> <4875ea9c-593a-e669-889a-1e809a50a570@linux.intel.com> From: Dave Hansen Subject: Re: [PATCH v3 4/4] platform/x86: intel_tdx_attest: Add TDX Guest attestation interface driver In-Reply-To: <4875ea9c-593a-e669-889a-1e809a50a570@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE 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-kernel@vger.kernel.org On 4/19/22 07:19, Sathyanarayanan Kuppuswamy wrote: > On 4/19/22 7:13 AM, Dave Hansen wrote: >>> >From this perspective, I am not sure what's the value of having a >>> dedicated >>> INTEL_TDX_ATTESTATION Kconfig.  The attestation support code should >>> be turned on >>> unconditionally when CONFIG_INTEL_TDX_GUEST is on.  The code can also >>> be just >>> under arch/x86/coco/tdx/ I guess? >> How much code are we talking about?  What's the difference in the size >> of the binaries with this compiled in? > > Current driver size is ~300 lines. It adds ~500 bytes to the kernel > binary if it is built-in. That doesn't sound like good use of a Kconfig option to me. Just explain in the cover letter: Any distribution enabling TDX is also expected to need attestation. The compiled size is quite small (500 bytes).