Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp17590315rwd; Tue, 27 Jun 2023 05:17:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Sru57NoAd8DZz+KR/H3voUK0vvCdDKuoi/+mW5z5GnM3Z7nMvxzgcy3R2pDnKmOT14az1 X-Received: by 2002:a17:90a:7d0f:b0:262:d9b7:13ce with SMTP id g15-20020a17090a7d0f00b00262d9b713cemr10907144pjl.5.1687868270021; Tue, 27 Jun 2023 05:17:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687868270; cv=pass; d=google.com; s=arc-20160816; b=jmyjLtvItABChKiN/Rt10UAD0k/u3JEDilY3TO4uJNfP/6VqRckZ6gmwA8S488ttCq wlfAToRiz8M0wEHFiK5EjLnHff/OXikX6KSWQOLrjIbpxkzzPuZSfW2yjdbVrROuCM8r SYvhINqfxjjsXxQIYRyR6Vz61pCxlcIXuGRX6n1VUAfwauR5zlk0ID7Wi2bC+dNQcDPi xO+daUWmL2vL2GaIo0sb7X1H7rYRpCFJpUIWtYPvqkPCbNfSxB9tlZc3OEHVqaGL8LPs kz4HPU0hALl5Lo2OjA4dYIriUwbX/6MYB8aUKkMQR9pJZgKbaCFaWMEQ8Z7P3gymdjH1 RnYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=DfBwGJmkxudvKfmOrMQkcQ5+Z7dAAreMDkAsZ0z+tqQ=; fh=KkdYzvwct4ZyspYNJCSOMCqWYo3IZGGO0Vb7ERMpaUE=; b=IotFJ/I6ohcU+YFHu0s/JRPGbDAsyIf9xVixEIcabN9E6sd4JOvHOHcsV2WpZ1YAVP KJFFP5WGmn5R3ONPQ5rOS1rRMkXWhxMnVZO1DZkCtyphrs0bhgdn59/qvSJ1LHJJT2us CcWyVPYENBrpxm1+9R2f6FwuiHsH+vBd4O1sgpeYV6V5en8vwjavodE3oRb+tcR8yMwb cFCl1Gc+kSlmmHeg7py9LW6/rjDy1YcvsRtmhLhVOQzTB0i2MVEu3Km7ayiGfkF7UoHb 8cMHuOv4gKeeIx7hR1dqQFMUK5K/qgF2UE34x4V0sgNC8W0Ez06DeB6so9R9xpaV9Q8R Radw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hp+RToZY; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w22-20020a63fb56000000b00553851380besi6852844pgj.397.2023.06.27.05.17.36; Tue, 27 Jun 2023 05:17:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hp+RToZY; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231397AbjF0LqV (ORCPT + 99 others); Tue, 27 Jun 2023 07:46:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229894AbjF0LqT (ORCPT ); Tue, 27 Jun 2023 07:46:19 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ED46F4; Tue, 27 Jun 2023 04:46:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687866378; x=1719402378; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=DfBwGJmkxudvKfmOrMQkcQ5+Z7dAAreMDkAsZ0z+tqQ=; b=hp+RToZYWNtH+zx0Q15qEMXgMVMn+O/G78hEGLO0dkEWR5Zix0Q+9scu AIXFbkOMoghHqbxmODN+Lyk7q0rHGVVVt+18n69XLnB81+OdZjg80hPAE n9ME19X1O5kuAkOIUiWc+Bgostl57KF4UNrEoFfhnm20MmtsjS4pb5duj D5DLG06FUBfoXYEnKLLrzWWa6esar36zkZ7Q2JUFgU6ow/Lg7yjPtiDy6 ZO817O+0ymz9fnD2nmghZl68kLisCFs0Hu7KmVFyfrx0lELDItysNkhmb bMtt7tZXN7P/8iCitif3gGFEMARS0xqEpHHl0dw17Y48En4OpeFxQcodw A==; X-IronPort-AV: E=McAfee;i="6600,9927,10753"; a="425217995" X-IronPort-AV: E=Sophos;i="6.01,162,1684825200"; d="scan'208";a="425217995" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jun 2023 04:46:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10753"; a="746169943" X-IronPort-AV: E=Sophos;i="6.01,162,1684825200"; d="scan'208";a="746169943" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga008.jf.intel.com with ESMTP; 27 Jun 2023 04:46:16 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 27 Jun 2023 04:46:16 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 27 Jun 2023 04:46:15 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27 via Frontend Transport; Tue, 27 Jun 2023 04:46:15 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.103) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Tue, 27 Jun 2023 04:46:15 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CWEv17b9zkyhr+6+hGCq9iR2f9GBf4Em7hmnVXM0fgT9XTSgrk3MLSg8O5Bai6+ZC8RTJ2ak872gMGC19wO5orHCip68r27JoPWp5+NMgMagiKCOUZ1tvOnWkzJv6KcKotc4pQR63uggOxXFkTDYfkVzdoLy5TxdKyqoq6SErAddDz6XwBuM9pt24LVu+aFQhBaUC2UxLyQyU3D+XxbRIaqhPrVZIbWHTpNAgAoagEnirXRIE9y6+NUCI7cIU0elXc+NXdPao+MbrhL6c7Pz/92JQU5qXXnu6to12eqW3PJ4V407h2K0WsJYqj4rQtoiscu/x9TsAweao9onnRSohg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=DfBwGJmkxudvKfmOrMQkcQ5+Z7dAAreMDkAsZ0z+tqQ=; b=d+VOrpgp3pHPJWBb431heV5T/uD9TdPR5JQv3QpEh64Ip+sQpi6SAl73mG7HswuZaPMoDlEIWsvOMHoE/EL4hlpsUNNW9G8CAZtGnhuTa56bN1810wIHZPxeEDB1PCYv1itPyyELsqEqx8TV3Tc5mp1eeWoI5e0YDWEImtly1vxHIntRwQTlF2/9FiS1Y41H1rtMWcXjAMdeuPoxzDN6J+SKiI7+CZcE2qNv3jXGB5jKrgP2uwuPl+zc3eawut1EEkOCEoutBwVIZ5QdLq78pQggi2rIapCDKWa+w/MzWerIZMBELH1kgFPpMg3hK5rthaLhWckz1wzC4ewx8sv95w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from BL1PR11MB5978.namprd11.prod.outlook.com (2603:10b6:208:385::18) by SN7PR11MB7994.namprd11.prod.outlook.com (2603:10b6:806:2e6::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.24; Tue, 27 Jun 2023 11:46:12 +0000 Received: from BL1PR11MB5978.namprd11.prod.outlook.com ([fe80::19b7:466f:32ac:b764]) by BL1PR11MB5978.namprd11.prod.outlook.com ([fe80::19b7:466f:32ac:b764%3]) with mapi id 15.20.6521.026; Tue, 27 Jun 2023 11:46:11 +0000 From: "Huang, Kai" To: "kirill.shutemov@linux.intel.com" CC: "kvm@vger.kernel.org" , "Williams, Dan J" , "Raj, Ashok" , "Luck, Tony" , "david@redhat.com" , "bagasdotme@gmail.com" , "Hansen, Dave" , "ak@linux.intel.com" , "Wysocki, Rafael J" , "linux-kernel@vger.kernel.org" , "Chatre, Reinette" , "Christopherson,, Sean" , "pbonzini@redhat.com" , "mingo@redhat.com" , "Yamahata, Isaku" , "nik.borisov@suse.com" , "tglx@linutronix.de" , "linux-mm@kvack.org" , "hpa@zytor.com" , "peterz@infradead.org" , "imammedo@redhat.com" , "Shahar, Sagi" , "bp@alien8.de" , "Brown, Len" , "Gao, Chao" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "Huang, Ying" , "x86@kernel.org" Subject: Re: [PATCH v12 08/22] x86/virt/tdx: Get information about TDX module and TDX-capable memory Thread-Topic: [PATCH v12 08/22] x86/virt/tdx: Get information about TDX module and TDX-capable memory Thread-Index: AQHZqDWtVIac1znuLUmerNJjHJZ1la+eaXIAgAAPH4CAAA6gAIAAAlGA Date: Tue, 27 Jun 2023 11:46:11 +0000 Message-ID: References: <20230627095124.nhiypr6ivi4kdfrw@box.shutemov.name> <49f197f7756ac05b99717a9f63d56cfb860ab88b.camel@intel.com> <20230627113752.djyxgt4io6aiixwy@box.shutemov.name> In-Reply-To: <20230627113752.djyxgt4io6aiixwy@box.shutemov.name> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.48.2 (3.48.2-1.fc38) authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BL1PR11MB5978:EE_|SN7PR11MB7994:EE_ x-ms-office365-filtering-correlation-id: 608790c0-e68f-47fa-3dd5-08db77041af9 x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: bvOy5yVjV3vA/HdrdsjYsrpU0ZsiXHjV7BztrJNOmNQbhebESRPhVcCJrSnZC22mywof9YRa4F7LVu6Nb+O+HXlZGUgTa6tl08sAXDePRJL+aL9MbaLsJ8F5pGq+slVoU1OXsintRcFJZHqp5U9T6qeKwvjuSPOl5SQ2qS3ahtqwUgywG6jcQ9tHkB7f+cboCCG0oA+qp6Gjfhpnk2u7wPWG82HylYyi6sdeo7NKIBInCOEyLXhOReclWx1aEFWEPyAJ559AGSoWZqlZod6dDuQXKaxhfsRS9I/rulsEWaZsgG5Hu7FOwW9da99+oRUEf6787mZWZa69t1jFIgVcoNOusm/QSO1k9BwxQlIAL+HVhpmG6Xpfj1yz+q1wFLxFeQu5j7Kl2SKQGZOvCKgiuRHklpYJGOie13ZhujtoauNAM4a6jW4Kv16W8TaMyl0fO1jlju/PVibUWkoczEsyXZrioJVyvpF6zGb+dFgPBiXqzmXn6PspxlNBEFdRnWjbNfU8oATF0dgO8c9RmmQOtpyGU3n8F66RBznHQPSl5F6OXSFAVm30Weq8k3hZO5sKvgKgw+ju7IMDI6Izc9SgubQXeJpGIqtkWWgA8AJq887Dl5FKfrm3tjdEGCKb8NX4 x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL1PR11MB5978.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(366004)(376002)(39860400002)(396003)(346002)(136003)(451199021)(6506007)(2906002)(26005)(71200400001)(6486002)(122000001)(82960400001)(38100700002)(2616005)(83380400001)(186003)(6512007)(41300700001)(86362001)(54906003)(478600001)(38070700005)(4326008)(76116006)(6916009)(66946007)(66476007)(316002)(66446008)(64756008)(66556008)(36756003)(8676002)(91956017)(5660300002)(8936002)(7416002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?eFJ2UDJyMy9wdWlEeFoyRmJQSS9ZQjc0SWZmNE1Gbjh0TmV1M3V6S3VrNEFk?= =?utf-8?B?U05BZHgyZEx4TEQrM3c1RUJaNEtZck4xa084djFBaTUwQ0N2Wkk0OU9TYVdV?= =?utf-8?B?alJxK21hYmtBSmRIR2JCNzJHang4dnh4emhrNDNWbTNZazByS3ByRnFXR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kwTHhRc3grTzZLMDcrdnN1c2FiQWJ4cGtNUHE0?= =?utf-8?B?cTlKeFFySHhXdW13MnZpY2o0NUxJcTdYNjR4WG9TMy94YmRkcmEvRHp1VlMw?= =?utf-8?B?UGFFRkNvT1hiMkdTT3FoTk9iSXA3SHNvc1JWQVNYeEUvUkJLTmo1cXVud0Ix?= =?utf-8?B?YUlqZlFoc3hQa2VkVUNEUk5pZHMyMC96VlI3WXRwQmUrb1RFNTFrZlZYN21n?= =?utf-8?B?OHc9PQ==?= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL1PR11MB5978.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 608790c0-e68f-47fa-3dd5-08db77041af9 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jun 2023 11:46:11.8850 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ew0na8iSr7FD2q8wrHZbSmpXVeg1zkYiCiYcyjK0tqVIq5eCgpKZC34F+iu7wOpeZREdrKpaIq/a4EmBcbjhcQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR11MB7994 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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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