Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1162764iog; Wed, 15 Jun 2022 23:42:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tjMcComfKujN+0dG64ufc9Gq3ooBiJyijVnJGfgf9V9eTKSSskDD7g/q2BFcWaG0uKuscg X-Received: by 2002:a05:6402:228d:b0:42d:e319:7297 with SMTP id cw13-20020a056402228d00b0042de3197297mr4490515edb.79.1655361726655; Wed, 15 Jun 2022 23:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655361726; cv=none; d=google.com; s=arc-20160816; b=r5H7uI87o9S87BuwyNYRdNvvoMK1stTh96kQc5AZ1wHydo8XrlLoRR4tqEqhutItog eUlg/8Qa6TZmKB3RidvnBhRa1ZCzsYbghmRwtvaVwNnsCQhhRq9Y66VajM+TIQfqCOvu cgR4Ev7ZeluEU3WzN+Y+d9SAecIo24GRe6lK7GIPfw+OSdPhVuKnPSsUklR0QaFo7yA4 4K4zQx/WqedjuRxIamcbJx6Z+R1Zu1AEZfSfYbyVFtRsQcEa/hCM6+iOnyxAHTrfK2Ry ITQ9mQztEnI0nRaen7nEVkXHPfdEM7kQmIqJBE70UNbm7iin0tifr1HkTfUptbADgSGX EGnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=/ncxaXQF6E91Uh+tEiMU3tcCtmk7P4sWTqTTCEmTZFg=; b=CYSmBiEykpfGz1tKRygsiaD8tp8foMw9ocma19hjKdmljyj3+AfjwRfys3XqnRcCpy AZeSpTQW+qhOS17esywklpDxm6NH0YujtBSKh8luGkFRunmriuFqb1wz4Y1EICD8AvV9 j0Knx470D0y2Nvl6M1O9hUavmoZmcTPGstdao0FVCtLtH6500U/kIaXJHVnm1o6owPDE 1bH0stzVU1d3szWWwK6TDalCncufzFgxqCaFHeyeCEgVwGeS6yt4YXWRTQevodIIHpwY ZgrTP766vb9IMdI7urJ6exn4g0xIa9rmo6k9+Iugjny2loJmHSPhal7Oz/dOvy4gAOUm gU0Q== ARC-Authentication-Results: i=1; mx.google.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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ht14-20020a170907608e00b006febbb171a9si886265ejc.918.2022.06.15.23.41.41; Wed, 15 Jun 2022 23:42:06 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359199AbiFPGfv (ORCPT + 99 others); Thu, 16 Jun 2022 02:35:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344922AbiFPGft (ORCPT ); Thu, 16 Jun 2022 02:35:49 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2441A56B2C for ; Wed, 15 Jun 2022 23:35:47 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-122-sCnYHqVNOFmgVXEq4wuTBA-1; Thu, 16 Jun 2022 07:35:45 +0100 X-MC-Unique: sCnYHqVNOFmgVXEq4wuTBA-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.36; Thu, 16 Jun 2022 07:35:44 +0100 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.036; Thu, 16 Jun 2022 07:35:44 +0100 From: David Laight To: 'Dave Hansen' , "Kirill A. Shutemov" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "luto@kernel.org" , "peterz@infradead.org" CC: "ak@linux.intel.com" , "dan.j.williams@intel.com" , "david@redhat.com" , "hpa@zytor.com" , "linux-kernel@vger.kernel.org" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "seanjc@google.com" , "thomas.lendacky@amd.com" , "x86@kernel.org" Subject: RE: [PATCHv4 3/3] x86/tdx: Handle load_unaligned_zeropad() page-cross to a shared page Thread-Topic: [PATCHv4 3/3] x86/tdx: Handle load_unaligned_zeropad() page-cross to a shared page Thread-Index: AQHYgRCKqYZTWjd2ckufHWAySodJ3K1Rk5mQ Date: Thu, 16 Jun 2022 06:35:44 +0000 Message-ID: <9708d6cf72184b7788bfb95ea1f46faf@AcuMS.aculab.com> References: <20220614120135.14812-1-kirill.shutemov@linux.intel.com> <20220614120135.14812-4-kirill.shutemov@linux.intel.com> <20220615225200.lflv4tbqus6lnj5u@black.fi.intel.com> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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.kernel.org RnJvbTogRGF2ZSBIYW5zZW4NCj4gU2VudDogMTYgSnVuZSAyMDIyIDAwOjM1DQo+IA0KPiBPbiA2 LzE1LzIyIDE1OjUyLCBLaXJpbGwgQS4gU2h1dGVtb3Ygd3JvdGU6DQo+ID4+ICsJdmFkZHIgPSAo dW5zaWduZWQgbG9uZylpbnNuX2dldF9hZGRyX3JlZigmaW5zbiwgcmVncyk7DQo+ID4+ICsJaWYg KHZhZGRyIC8gUEFHRV9TSVpFICE9ICh2YWRkciArIHNpemUpIC8gUEFHRV9TSVpFKQ0KPiA+IE9v cHMuIEkganVzdCByZWFsaXplZCBpdCBoYXMgb2ZmLWJ5LW9uZS4gSXQgc3VwcG9zZWQgdG8gYmU6 DQo+ID4NCj4gPiAJaWYgKHZhZGRyIC8gUEFHRV9TSVpFICE9ICh2YWRkciArIHNpemUgLSAxKSAv IFBBR0VfU0laRSkNCj4gDQo+IFRoYXQgd2FzIGJ1Z2dpbmcgbWUuICBHbGFkIHlvdSBjYXVnaHQg dGhpcy4NCj4gDQo+IFdvdWxkbid0IHRoaXMgYmUgbW9yZSBvYnZpb3VzbHkgY29ycmVjdD8NCj4g DQo+IAlpZiAoQUxJR05fRE9XTih2YWRkciwgICAgICAgIFBBR0VfU0laRSkgIT0NCj4gCSAgICBB TElHTl9ET1dOKHZhZGRyICsgc2l6ZSwgUEFHRV9TSVpFKSkNCj4gCQkuLi4NCj4gDQo+IEkgZG9u J3QgdGhpbmsgd2UgaGF2ZSBhIFBBR0VfQUxJR05fRE9XTigpLg0KDQpPcjoNCglpZiAoKHZhZGRy IF4gKHZhZGRyICsgc2l6ZSAtIDEpKSA+PiBQQUdFX1NISUZUKQ0KDQoJRGF2aWQNCg0KLQ0KUmVn aXN0ZXJlZCBBZGRyZXNzIExha2VzaWRlLCBCcmFtbGV5IFJvYWQsIE1vdW50IEZhcm0sIE1pbHRv biBLZXluZXMsIE1LMSAxUFQsIFVLDQpSZWdpc3RyYXRpb24gTm86IDEzOTczODYgKFdhbGVzKQ0K