Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp138700imu; Fri, 14 Dec 2018 16:08:15 -0800 (PST) X-Google-Smtp-Source: AFSGD/UKLe8zpZJCbYrJdyiqB7pVt6Dzah3PUhZUwmisCxOsq0+ZpJoeMYQu14Jd49r1KUSJlLcS X-Received: by 2002:a17:902:bd46:: with SMTP id b6mr4684707plx.231.1544832495942; Fri, 14 Dec 2018 16:08:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544832495; cv=none; d=google.com; s=arc-20160816; b=l1QJ3DxvcqH1xU43h5PtRQVcMKeXlTVi/YcFPpUDFaBeoGbvph8f0lJC5By5zGXXdM nFdQbgH9vE820O1G2/Qfad0nJWXbl2KCzJ29166ZX+x8ZTzRbrCSzGbFJVFmt02D4r0m iSgljb4Sq8ZT0qhFEWzP1pxXJmHBP4BA1Aa3RHNXpACVp6/OpcLfECAvwjNGqvso25CG lrp5Z2QZczXw3VDXjkDNd/vPhoGi75F9fPs4bqE8RGhuxQbkmB8LmX9iCqvHc12/xs0S sDJokDgKKzhspH7zYk9fI4mXAXrEoiDf5BpKxndxiVVwXQ4KHJrDVJeWJdacJ42XU23+ hNjQ== 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=NjmSkGPnpm3qLOFhIBcv9czgGrDxIEWtmHW7Gnuo4UM=; b=nzxhxL0K2zeAWVTWXge+9Q7X8/ENLuKSQLMzA4xHuhC1q/QchpV5hBmSgSdmStuO8s iPIsZ4mK39Lgr56omqmUcCCU5bG0bAAoHjyKkRDgGHgJfGC5occ9OTD2ijwPa6dHK5/5 u79F3WpspZJ38GLabXR0ZYPyeFDDwqCPf2e3736C4KoUCM57KywsVVxCQDIkw3ox/a18 tQLVvdgV2Qd/kAAAMZJr5b5tGYwOvB9VbjsYkAQRn5L+/Y096NpBGVMzaPzx5eHz5TPp pPUQvHeUbY4Ak65/ldBeln0CJVipfU3BcS59JJHGxHNZCwQOiKXK/1k0cenpqVLZlwZ1 aQZw== 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 g5si4884147plo.108.2018.12.14.16.07.57; Fri, 14 Dec 2018 16:08:15 -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 S1729441AbeLOAGu (ORCPT + 99 others); Fri, 14 Dec 2018 19:06:50 -0500 Received: from szxga01-in.huawei.com ([45.249.212.187]:6918 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726423AbeLOAGu (ORCPT ); Fri, 14 Dec 2018 19:06:50 -0500 Received: from DGGEMA404-HUB.china.huawei.com (unknown [172.30.72.56]) by Forcepoint Email with ESMTP id 9BDBD206077CD; Sat, 15 Dec 2018 08:06:46 +0800 (CST) Received: from DGGEMA523-MBX.china.huawei.com ([169.254.5.180]) by DGGEMA404-HUB.china.huawei.com ([10.3.20.45]) with mapi id 14.03.0415.000; Sat, 15 Dec 2018 08:06:44 +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/PTIoTJkAAg6TOC88quIUt5hUw== Date: Sat, 15 Dec 2018 00:06:44 +0000 Message-ID: <0184EA26B2509940AA629AE1405DD7F201FFC1EF@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 IHNwYWNlIGRvIG1lbW9yeSByZWNvdmVyeSwgaXQgd2lsbCBjaGVjayB3aGV0aGVyIEtWTSBhbmQN Cj4gPiA+IGd1ZXN0IHN1cHBvcnQgdGhlIGVycm9yIHJlY292ZXJ5LCBvbmx5IHdoZW4gYm90aCBv ZiB0aGVtIHN1cHBvcnQsDQo+ID4gPiB1c2VyIHNwYWNlIHdpbGwgZG8gdGhlIGVycm9yIHJlY292 ZXJ5LiBUaGlzIHBhdGNoIGV4cG9ydHMgdGhpcw0KPiA+ID4gY2FwYWJpbGl0eSBvZiBLVk0gdG8g dXNlciBzcGFjZS4NCj4gPg0KPiA+IEkgY2FuIHVuZGVyc3RhbmQgdXNlci1zcGFjZSBvbmx5IHdh bnRpbmcgdG8gZG8gdGhlIHdvcmsgaWYgaG9zdCBhbmQNCj4gPiB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