Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp144257imu; Fri, 14 Dec 2018 16:15:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/V11BO2EbZCbeGDmab01GnQEqCGbCBbgumwGxcBfelw3IUF4CpAEcGifb1DpQwBHtJwItjN X-Received: by 2002:a62:c185:: with SMTP id i127mr4804631pfg.43.1544832916061; Fri, 14 Dec 2018 16:15:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544832916; cv=none; d=google.com; s=arc-20160816; b=VQA8LV4ouOIJ8yz8IGkr6Gnu5wYHaDw3wXhxWmqetOzj8RqUy03hf+PMdIAyfjvNnS rf70zhcGDGpOLdxH36TmuTArQyMb1O5v8XfsXHexWOYU03FA0/LWprDyEsqr32Ml9sI4 N4eDRprLE6qLt44cXB6H+UYUanSbMZ1a4fQyca9n09r8pk5hhViZZQpk+Zq3fMnXB1y6 pY0/9MhwNkH5iDUssVR/Ob4Cf4+AA9eI6pX1P3gXJcUENcE6k2QIAmKBYS/3EbhHa44X ZTWMpH7VZS+QEziRGqQaog0uKKBPXgcSG6zRx7Kw7QvmNF88fwXT8jvCcPEo0vL1eL8I Atig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=wmXWnv8EBQPjes/QwDsQCZPyNw+0tCsZqcLPkNn9IsQ=; b=sAKaFGu6VP6y51q9SXR5KLDpgvAXJzwp4OI7qG8LEyIUnBybuUbuS+GH4gyt2HcOiI MoqmG+tVsq5kcXFNUx9dcLKePTwA6MFs8m2s4oSAMqPm90ke7w4eNAZHJnclRp8YSAoz wpN/2oGUP+dI7msg5MU39C1r6zgSR4V8DAmzoJORx4NutSPVaUAEgmu0qoVbIVtz/XSQ Y+onrdBEHjLMj2lfM0UoFUFJwaxw1RptpGbLTqO8cKVc5ZaStMdSIIT/CVedodVzGGzf YxboPmKbfLfCBiXajFs8dZT/lJI5uWagn+JZXCWAEEzshg1GLRCBYqFgceTmLPJHWBKi FPGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si5186701plr.189.2018.12.14.16.14.58; Fri, 14 Dec 2018 16:15:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728962AbeLOAMp (ORCPT + 99 others); Fri, 14 Dec 2018 19:12:45 -0500 Received: from szxga02-in.huawei.com ([45.249.212.188]:6509 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726448AbeLOAMp (ORCPT ); Fri, 14 Dec 2018 19:12:45 -0500 Received: from DGGEMA403-HUB.china.huawei.com (unknown [172.30.72.54]) by Forcepoint Email with ESMTP id 2710F66B1BB7; Sat, 15 Dec 2018 08:12:41 +0800 (CST) Received: from DGGEMA523-MBX.china.huawei.com ([169.254.5.180]) by DGGEMA403-HUB.china.huawei.com ([10.3.20.44]) with mapi id 14.03.0415.000; Sat, 15 Dec 2018 08:12:40 +0800 From: gengdongjiu To: Peter Maydell , James Morse CC: =?utf-8?B?UmFkaW0gS3LEjW3DocWZ?= , Jonathan Corbet , Christoffer Dall , Marc Zyngier , Catalin Marinas , "Will Deacon" , kvm-devel , "open list:DOCUMENTATION" , lkml - Kernel Mailing List , arm-mail-list Subject: Re: [RFC RESEND PATCH] kvm: arm64: export memory error recovery capability to user space Thread-Topic: [RFC RESEND PATCH] kvm: arm64: export memory error recovery capability to user space Thread-Index: AdST/PTIoTJkAAg6TOC88quIUt5hUwADV3eg Date: Sat, 15 Dec 2018 00:12:40 +0000 Message-ID: <0184EA26B2509940AA629AE1405DD7F201FFC21E@dggema523-mbx.china.huawei.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.45.91.186] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiANCj4gT24gRnJpLCAxNCBEZWMgMjAxOCBhdCAxMzo1NiwgSmFtZXMgTW9yc2UgPGphbWVzLm1v cnNlQGFybS5jb20+IHdyb3RlOg0KPiA+DQo+ID4gSGkgRG9uZ2ppdSBHZW5nLA0KPiA+DQo+ID4g T24gMTQvMTIvMjAxOCAxMDoxNSwgRG9uZ2ppdSBHZW5nIHdyb3RlOg0KPiA+ID4gV2hlbiB1c2Vy IHNwYWNlIGRvIG1lbW9yeSByZWNvdmVyeSwgaXQgd2lsbCBjaGVjayB3aGV0aGVyIEtWTSBhbmQg DQo+ID4gPiBndWVzdCBzdXBwb3J0IHRoZSBlcnJvciByZWNvdmVyeSwgb25seSB3aGVuIGJvdGgg b2YgdGhlbSBzdXBwb3J0LCANCj4gPiA+IHVzZXIgc3BhY2Ugd2lsbCBkbyB0aGUgZXJyb3IgcmVj b3ZlcnkuIFRoaXMgcGF0Y2ggZXhwb3J0cyB0aGlzIA0KPiA+ID4gY2FwYWJpbGl0eSBvZiBLVk0g dG8gdXNlciBzcGFjZS4NCj4gPg0KPiA+IEkgY2FuIHVuZGVyc3RhbmQgdXNlci1zcGFjZSBvbmx5 IHdhbnRpbmcgdG8gZG8gdGhlIHdvcmsgaWYgaG9zdCBhbmQgDQo+ID4gZ3Vlc3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