Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2279626pxm; Thu, 24 Feb 2022 21:37:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwwu/xMU502UTi0GVqObmcNVx9R4vqkm+2gEVJBMFxXfjQgrGsoQ8kHmdoCDwQttXPMS0a X-Received: by 2002:a17:906:e211:b0:6ce:69f0:adc9 with SMTP id gf17-20020a170906e21100b006ce69f0adc9mr4839267ejb.671.1645767427252; Thu, 24 Feb 2022 21:37:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645767427; cv=none; d=google.com; s=arc-20160816; b=YgVFEGLazXhXmySKiQfM/XOyHcAeKMq1HcjjLX4bQ2IKU9CSp6pxTIncLv4q2SoUMI eH2m5r2qMPBM+/9qE/CdDvga7jzVnoxg7l/10iwfT1K5LOn+Q68atP6h9/gJORzF/l5X /YhO/gNbrpSG2oWmTl+K28+kMg2VR83hVfzCXoHlz3uFDsK3qGuNMrUO4ebrNirVkb2t crVhHtuDuygJDrz9k+71hmQ2EO+CIIzid1LQF7VJWhQyqhDpal1Q/PwR1kQJnWgKd7wG 80+qITXaFsuMrho5ZB2Eu3JgH5MrjV7QDgdAZEOqpTOGnPlRfsbQ2Fsmfhh3/GkHwa+5 1n6w== 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=IGI3T0jQZLTKEzAmTg/EOMz7fkQeu8uHMgN2lTXIylg=; b=FJ9Y1mjmQ9XpwL2892N6SeZSWiCMrDTBw3lsLV2d6FA0hz8CZBw2pDr1ptpxHwf4EC fM5YrJfw7PECPgSdmd6X2CZHZwvZM6P0PZEd0icSRV2TLaO4pnNYCNiCBQ0DR2BUGSGd 6CxZpr7X5Mr0j8lJKqngLpn83bR7Irr6c2jvawPPu++r8hA5BR1/ntr6KHP6SHlgjqRu k+Yubul/SV/E6kFweSSM/hMz26JJXQKtCmCZ/bPUsZS5rHgatYSphsIvT4/eHg+RXCrR 6rwNKBk/STuCLaDaymVeHNfElM/olQ0vTDme1eMYtZK+JuviXrqLDIejPru942Qp57nK XhSw== 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 g2-20020a170906348200b006cf832d1682si992470ejb.207.2022.02.24.21.36.43; Thu, 24 Feb 2022 21:37:07 -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 S236919AbiBYDLR (ORCPT + 99 others); Thu, 24 Feb 2022 22:11:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230117AbiBYDLQ (ORCPT ); Thu, 24 Feb 2022 22:11:16 -0500 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C50B42C032D for ; Thu, 24 Feb 2022 19:10:44 -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-11-gsizBZWLM-SoXgpS98dsAw-1; Fri, 25 Feb 2022 03:10:41 +0000 X-MC-Unique: gsizBZWLM-SoXgpS98dsAw-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 03:10:39 +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 03:10:39 +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+AgAAP+sA= Date: Fri, 25 Feb 2022 03:10:39 +0000 Message-ID: <7c536496125844ccaca50aa0740c8585@AcuMS.aculab.com> References: <20220224155630.52734-1-kirill.shutemov@linux.intel.com> <20220224155630.52734-12-kirill.shutemov@linux.intel.com> <45b6e0b6ceec46849754402c3da03fed@AcuMS.aculab.com> In-Reply-To: <45b6e0b6ceec46849754402c3da03fed@AcuMS.aculab.com> 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 RnJvbTogRGF2aWQgTGFpZ2h0DQo+IFNlbnQ6IDI1IEZlYnJ1YXJ5IDIwMjIgMDI6MjMNCj4gDQo+ IEZyb206IERhdmUgSGFuc2VuDQo+ID4gU2VudDogMjQgRmVicnVhcnkgMjAyMiAyMDoxMg0KPiAu Li4NCj4gPiA9PT0gTGltaXRhdGlvbnMgb2YgdGhpcyBhcHByb2FjaCA9PT0NCj4gPg0KPiA+ID4g TU1JTyBhZGRyZXNzZXMgY2FuIGJlIHVzZWQgd2l0aCBhbnkgQ1BVIGluc3RydWN0aW9uIHRoYXQg YWNjZXNzZXMNCj4gPiA+IG1lbW9yeS4gQWRkcmVzcyBvbmx5IE1NSU8gYWNjZXNzZXMgZG9uZSB2 aWEgaW8uaCBoZWxwZXJzLCBzdWNoIGFzDQo+ID4gPiAncmVhZGwoKScgb3IgJ3dyaXRlcSgpJy4N Cj4gPg0KPiA+IEFueSB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