Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2362671pxm; Thu, 24 Feb 2022 23:56:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwNFApaDZ8EXIpqgusM2nK/5RtP16oeXwQx8a2kQtglPbIttdwblW/ASKAi4Rk1JV1U8uMF X-Received: by 2002:a17:906:715:b0:6b7:21d5:dd0a with SMTP id y21-20020a170906071500b006b721d5dd0amr5152269ejb.500.1645775783742; Thu, 24 Feb 2022 23:56:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645775783; cv=none; d=google.com; s=arc-20160816; b=le5VhqrlmC2BBsmzbkIqh80GlFaqxImcpp3aytU7lkgic28omDB/eBJOE4rW0tI+nd YPR/K2QlviwQ4f/B3DVnWEwHY5o8s5UG2+nIBXb5920XA0/YgJklyVgm8lllZsc1XrZp MGgBF1JlbemVyRKnJav5qtllBKSmy2nk2/8PriOdmlHPnQVV9ora5rO8UdR+3FmbkhkJ JK+eHHvTODFwnVbgTM8LHGg65XbK1TNs8HsAWhxkkN/bgmO6BBx/1QqCMKwUQtxhmvLd Rj6hOJV/MvXjAZIKquZs1gf0oGMsdFs1srpAhaxxY5F72YSGevAcpEmuMfcYj0FWQUN+ 32/A== 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=sFjr3vGVeOI8+BNAI+hoDaY8kTsuF3XJrQTQ0cwbiGY=; b=ecWic2xQryhGdzm+HsEC5E8lTnFq8fBbMN5VGqzKRI7qxNrCLQhmJNLCB6zAQwJcB1 FvQQPZpgmNqHRNDydhQduU2Ro4ZhwDwXBRFXvXnvSkVVzlkT+2CwKRPmswZHXqquCuVM O0po5D65lg24WzdkSJ/veHYfg4TP1z75wNBaJhlXwrgQdF9q1OybBs43dlUtHb4xmSqF xJkPztAll7ucLlhDUn7OKYvjpZO2TA7TmN2VWE7NSPkZGFsfxE18YzFF5XvsbsFKFgJS JCwMFQ4zkF510WWkf92LpsFHamWAttZH66q9aG2kr86MUmkDtKszQ3DBiH/NIku1a21Y GogA== 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 l14-20020aa7d94e000000b003f893af7d96si1265133eds.610.2022.02.24.23.55.59; Thu, 24 Feb 2022 23:56:23 -0800 (PST) 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 S236780AbiBYCYn (ORCPT + 99 others); Thu, 24 Feb 2022 21:24:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236786AbiBYCYF (ORCPT ); Thu, 24 Feb 2022 21:24:05 -0500 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 9C02B1C74CA for ; Thu, 24 Feb 2022 18:23:32 -0800 (PST) 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-190-2jFGTaVFM_WwuUDWp3xhNw-1; Fri, 25 Feb 2022 02:23:29 +0000 X-MC-Unique: 2jFGTaVFM_WwuUDWp3xhNw-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.28; Fri, 25 Feb 2022 02:23:27 +0000 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.028; Fri, 25 Feb 2022 02:23:27 +0000 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: "sathyanarayanan.kuppuswamy@linux.intel.com" , "aarcange@redhat.com" , "ak@linux.intel.com" , "dan.j.williams@intel.com" , "david@redhat.com" , "hpa@zytor.com" , "jgross@suse.com" , "jmattson@google.com" , "joro@8bytes.org" , "jpoimboe@redhat.com" , "knsathya@kernel.org" , "pbonzini@redhat.com" , "sdeep@vmware.com" , "seanjc@google.com" , "tony.luck@intel.com" , "vkuznets@redhat.com" , "wanpengli@tencent.com" , "thomas.lendacky@amd.com" , "brijesh.singh@amd.com" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCHv4 11/30] x86/tdx: Handle in-kernel MMIO Thread-Topic: [PATCHv4 11/30] x86/tdx: Handle in-kernel MMIO Thread-Index: AQHYKbrRB70QltnCv0Of3lK/667WPqyjhr+A Date: Fri, 25 Feb 2022 02:23:27 +0000 Message-ID: <45b6e0b6ceec46849754402c3da03fed@AcuMS.aculab.com> References: <20220224155630.52734-1-kirill.shutemov@linux.intel.com> <20220224155630.52734-12-kirill.shutemov@linux.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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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 RnJvbTogRGF2ZSBIYW5zZW4NCj4gU2VudDogMjQgRmVicnVhcnkgMjAyMiAyMDoxMg0KLi4uDQo+ ID09PSBMaW1pdGF0aW9ucyBvZiB0aGlzIGFwcHJvYWNoID09PQ0KPiANCj4gPiBNTUlPIGFkZHJl c3NlcyBjYW4gYmUgdXNlZCB3aXRoIGFueSBDUFUgaW5zdHJ1Y3Rpb24gdGhhdCBhY2Nlc3Nlcw0K PiA+IG1lbW9yeS4gQWRkcmVzcyBvbmx5IE1NSU8gYWNjZXNzZXMgZG9uZSB2aWEgaW8uaCBoZWxw ZXJzLCBzdWNoIGFzDQo+ID4gJ3JlYWRsKCknIG9yICd3cml0ZXEoKScuDQo+IA0KPiBBbnkgQ1BV IGluc3RydWN0aW9uIHRoYXQgYWNjZXNzZXMgbWVtb3J5IGNhbiBhbHNvIGJlIHVzZWQgdG8gYWNj ZXNzDQo+IE1NSU8uICBIb3dldmVyLCBieSBjb252ZW50aW9uLCBNTUlPIGFjY2VzcyBhcmUgdHlw aWNhbGx5IHBlcmZvcm1lZCB2aWENCj4gaW8uaCBoZWxwZXJzIHN1Y2ggYXMgJ3JlYWRsKCknIG9y ICd3cml0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