Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4911529pxv; Tue, 20 Jul 2021 14:22:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyatCLC0UTKL/IfatEjGCxzpMEXDPDha2ImXI34dyS5+iW7tenUynyRUVPls2nV5t3PiuYs X-Received: by 2002:a17:907:3e1f:: with SMTP id hp31mr34489430ejc.55.1626816121415; Tue, 20 Jul 2021 14:22:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626816121; cv=none; d=google.com; s=arc-20160816; b=anivpOoNnHJGBh4t0KOnsaV4QIfsRG3dmQdGkIhXx038gXNDXY+uqUSdOcYT9bT7TN kJQq2+bSQYpXvtMNiLpnBoXgmhw0ddramGXURJ4/pJOHEmaKRGSycaTsLbAb3byev6YX 1fFO+5NCMNe9qglH4mse277is7dOIk+KgU4ZxxUdbUv2QU2WXlbjronNOJ28PpnT6+TT GxCVzhOCj5/A9ZMKNepXiLzej5R+mKaf+vAWBLlCOrEL2E6sMd9JG889LHLVptJq4qGz kJC6VKBE0pDuXf0Pe59ON8fgnJUP00CMPq2ErC+3VBKc7C9vkbCZ8pC+oZNbRdnCRCAi TOBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=SDRHoXJu2oEV0NBlZy3nCJFQIin3TNBz2Atg9f1Ykv0=; b=hq3/eqaY/6jlFkcGQtx696+DyRDPj9et313AsC/wSqpkAMmsRytNrYQG34My5dqJSJ RKvggbx890NsSZ6VR36raviCSKkTBw15wFWwDdXvIKoBoqFBU3ksSSbtW9nkSgPt/FWx SC4IL+CRdqfu0UdqrYIQXwYV2gbLFbqfCPzpSZx0tjD2aN9KCY3u69oMJ/UpH/+B+Jke e54AI4kFRyb9UJ4supFR1qm3g2RViX02kdfxRc64TGkAgypV3FZGun0hmmTYHckscazU ltkKr7zLz3sxJxUkMfeH9yngd5ZB45tffyp6yqGu4u0AJKcX84v2CEw11P46yiFRUaIC CrEQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw13si18691045ejc.195.2021.07.20.14.21.27; Tue, 20 Jul 2021 14:22:01 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231184AbhGTUio (ORCPT + 99 others); Tue, 20 Jul 2021 16:38:44 -0400 Received: from mga09.intel.com ([134.134.136.24]:42193 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236662AbhGTUfd (ORCPT ); Tue, 20 Jul 2021 16:35:33 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10051"; a="211328752" X-IronPort-AV: E=Sophos;i="5.84,256,1620716400"; d="scan'208";a="211328752" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2021 14:16:09 -0700 X-IronPort-AV: E=Sophos;i="5.84,256,1620716400"; d="scan'208";a="632441016" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.212.245.156]) ([10.212.245.156]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2021 14:16:08 -0700 Subject: Re: [PATCH v3 5/6] platform/x86: intel_tdx_attest: Add TDX Guest attestation interface driver To: Dave Hansen , "Kuppuswamy, Sathyanarayanan" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Peter Zijlstra , Andy Lutomirski , Hans de Goede , Mark Gross , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Cc: Peter H Anvin , Tony Luck , Dan Williams , Kirill Shutemov , Sean Christopherson , Kuppuswamy Sathyanarayanan , x86@kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, bpf@vger.kernel.org, netdev@vger.kernel.org References: <20210720045552.2124688-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20210720045552.2124688-6-sathyanarayanan.kuppuswamy@linux.intel.com> <4c43dfe4-e44b-9d6d-b012-63790bb47b19@linux.intel.com> <52caa0e2-d3da-eef0-da5f-e83cc54c133c@intel.com> From: Andi Kleen Message-ID: <4f8dc9dd-0dbc-bff9-570b-0d20f673d3f0@linux.intel.com> Date: Tue, 20 Jul 2021 14:16:08 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <52caa0e2-d3da-eef0-da5f-e83cc54c133c@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/20/2021 10:59 AM, Dave Hansen wrote: > On 7/20/21 10:52 AM, Kuppuswamy, Sathyanarayanan wrote: >>> Why does this need to use the page allocator directly? > ^^ You didn't address this question. The address needs to be naturally aligned, and I'm not sure all slab allocators guarantee 64 byte alignment. So using the page allocator seems to be safer. I guess a comment would be good. -Andi