Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2064107imu; Thu, 10 Jan 2019 07:43:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN44UNLpGfDfzElmOK2UwRoB6N1rhemaKuLY44gpRAco3vkevu8u8Ss/9Mz1vtlBzmZ+ypze X-Received: by 2002:a63:fd0a:: with SMTP id d10mr9901057pgh.164.1547135018129; Thu, 10 Jan 2019 07:43:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547135018; cv=none; d=google.com; s=arc-20160816; b=p2i1K/WDOkz7o/ry116LkcrC+2KcYbMSgqYR2STRUHd54YN50d1VsxvGYjASc3vXHb Ny4u9XUYKeESRnJar487JJRIiX+NGMKHD5tU9RF4tUzw043XKRFEhbKjWh3RNn4tPGqU SVNuGm6n1lm+sV5dZ7nqwdIcUyQ3qFwtiJFnXxB0V3LBPKR5P3Ky5kYjgS8ugRxJmBTU +uUaFxg8C8XMf7FGTaHMQcuDn0QcuZE3CbR96U91i49xlCC3iIYRye0MZ2ejbZAy8AMV Nb06yQPmzp0lTw746WkWRP5BDwE5LNJ4VbEgZyZO4abuyEPl/rsf6qZURhZm4vBz3a71 MkxQ== 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=8ftyHnGQ4fKOLXWCH68KJ92JK6w4wV7vNz8uTSPETsU=; b=n2/m3pe91rg8dWfNkOjEUCa+FyDBxrhE5z6blVMZmWKAHp0Y2CKnQmMIUH9cEZY6HA FXxu3BpqwayRRKfYpdoFWKXTa45kv8+6oq4NpGURLLob228eaAVuHO+HK04UqOGAIHhI VuhQSORlGXeEk1bFemWfB6ETfDyrV1ndbqKAinTCMRFVjyCtaeszLCkbFrwASaOTZktZ eDX+uV35HDarN7vfZcXLYCgb5o92z4GR7FXKuK8l+WTduYqm8nueQ8bgyQcZVjIneAjw Ezx6Q9ogbhqpQlXwiuCzR8MOY9uHNBeHIVokrkqqN+eaxV5+VIZlYxipUossBJQazDwS D13A== 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 w17si13183982pgl.6.2019.01.10.07.43.22; Thu, 10 Jan 2019 07:43:38 -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 S1729544AbfAJPmC (ORCPT + 99 others); Thu, 10 Jan 2019 10:42:02 -0500 Received: from szxga03-in.huawei.com ([45.249.212.189]:6530 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728643AbfAJPmB (ORCPT ); Thu, 10 Jan 2019 10:42:01 -0500 Received: from DGGEMA401-HUB.china.huawei.com (unknown [172.30.72.55]) by Forcepoint Email with ESMTP id 19B0056BF031F82B2727; Thu, 10 Jan 2019 23:41:56 +0800 (CST) Received: from DGGEMA422-HUB.china.huawei.com (10.1.198.155) by DGGEMA401-HUB.china.huawei.com (10.3.20.42) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 10 Jan 2019 23:41:55 +0800 Received: from DGGEMA523-MBX.china.huawei.com ([169.254.5.180]) by dggema422-hub.china.huawei.com ([10.1.198.155]) with mapi id 14.03.0399.000; Thu, 10 Jan 2019 23:41:50 +0800 From: gengdongjiu To: Peter Maydell CC: James Morse , =?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: AdSo8Hp33+98LQYESeSIe29UjvqzCwACkt3A Date: Thu, 10 Jan 2019 15:41:49 +0000 Message-ID: <0184EA26B2509940AA629AE1405DD7F202045458@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.56.182] 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 PiANCj4gT24gVGh1LCAxMCBKYW4gMjAxOSBhdCAxMjowOSwgZ2VuZ2RvbmdqaXUgPGdlbmdkb25n aml1QGh1YXdlaS5jb20+IHdyb3RlOg0KPiA+IFBldGVyLCBJIHN1bW1hcml6ZSBKYW1lcydzIG1h aW4gaWRlYSwgSmFtZXMgdGhpbmsgUUVNVSBkb2VzIG5vdCANCj4gPiBuZWVkcyB0byBjaGVjayAq c29tZXRoaW5nKiBpZiBRZW11IHN1cHBvcnQgZmlybXdhcmUtZmlyc3QuDQo+ID4gV2hhdCBkbyB3 ZSBkbyBmb3IgeW91ciBjb21tZW50cz8NCj4gDQo+IFVubGVzcyBJJ20gbWlzc2luZyBzb21ldGhp bmcsIHRoZSBjb2RlIGluIHlvdXIgbW9zdCByZWNlbnQgcGF0Y2hzZXQgDQo+IGF0dGVtcHRzIHRv IHVwZGF0ZSBhbiBBQ1BJIHRhYmxlIHdoZW4gaXQgZ2V0cyB0aGUgU0lHQlVTIGZyb20gdGhlIGhv c3QgDQo+IGtlcm5lbCB3aXRob3V0IGRvaW5nIGFueX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