Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3644495imm; Mon, 18 Jun 2018 01:27:04 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLezcJgZ19XsEbPbgZ2QXor8YXv12I/sXsZ+JFbiJ19x7VMcSt9FqnlgAUO9Tnq/stgh/Cv X-Received: by 2002:a17:902:4d:: with SMTP id 71-v6mr13008183pla.317.1529310424917; Mon, 18 Jun 2018 01:27:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529310424; cv=none; d=google.com; s=arc-20160816; b=ZGAcIpG5oM9AHriFdXCxUTgzXy05YZ5x8lH8nvOX+pzy4+iYTdYFHWzDQP75eJIBeS Vj6g4FUgq3fL9y2+0DDN4UpK6DyHuHXuGSzezLaEGJZalPkCR5bMJfNTv8YJr1cK5M2R 15GVTpgZMcdcxBVTXRg43bGWgRl8+DLePS8H/1F9/i/qgq3QHeDAJ/oEX2eBfljb5KVQ 3hDiRWCk0LMiUfg+SJnb415T0TA17g4jmy8NizkMW1QhEjoMIWHVNv+4Rkzm1g2J//U/ 611dXHmXUhKaNww1loeESdlBS5oGU9QeufdEic3I/UxZIURBCgcNrcOx9QrIBcOKOj/D HiZg== 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:arc-authentication-results; bh=sREZHOMqoujfPicofR1cdlAapWNJh/3N693aqDPf5wg=; b=k2v/silJWYYfGKMNV6EEFttBXLpJekjBv4LnLebWO38BXUA0/Hu9OT337+S2B5Jytt 9ABWOiFtoMzLamgPQWCA337ldBmqazOBrh2vFSM2D+bX2AKBihHmXP9WcjnLLsfs74xP wasLxyCTZQ9IF5wX3Tn1WMsfaELlEpuUq6JnjZQKx1VLIR16Dpmf9UNtp7IqkIK7rdLY EFiyElxcj1ISyoHmCPWDEhy2dMAaxmdnpUuOl0RWWVWTXK4WkGzSqhPP48ApmiwrF5aO /qmqtyjOx5W3u72MDRjd9i+4hX01O1mpvFuOBecAs2IFe7oNBgcf9yajyGgB5Qj6yu3V 9diw== 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 g28-v6si16423799plj.307.2018.06.18.01.26.50; Mon, 18 Jun 2018 01:27:04 -0700 (PDT) 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 S935746AbeFRIZG (ORCPT + 99 others); Mon, 18 Jun 2018 04:25:06 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:5940 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S936245AbeFRIZA (ORCPT ); Mon, 18 Jun 2018 04:25:00 -0400 Received: from DGGEMA404-HUB.china.huawei.com (unknown [172.30.72.57]) by Forcepoint Email with ESMTP id D142C47DC8C61; Mon, 18 Jun 2018 16:24:54 +0800 (CST) Received: from DGGEMA503-MBX.china.huawei.com ([169.254.1.111]) by DGGEMA404-HUB.china.huawei.com ([10.3.20.45]) with mapi id 14.03.0382.000; Mon, 18 Jun 2018 16:24:52 +0800 From: gengdongjiu To: James Morse CC: "rkrcmar@redhat.com" , "corbet@lwn.net" , "christoffer.dall@arm.com" , "marc.zyngier@arm.com" , "linux@armlinux.org.uk" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "kvm@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-acpi@vger.kernel.org" Subject: Re: [PATCH RESEND v4 2/2] arm/arm64: KVM: Add KVM_GET/SET_VCPU_EVENTS Thread-Topic: [PATCH RESEND v4 2/2] arm/arm64: KVM: Add KVM_GET/SET_VCPU_EVENTS Thread-Index: AdQG3X7DTpSoV8flSG+bwC6w9hgRUQ== Date: Mon, 18 Jun 2018 08:24:51 +0000 Message-ID: <0184EA26B2509940AA629AE1405DD7F201CE5C72@DGGEMA503-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.62.8] 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 PiBPbiAxMi8wNi8xOCAxNTo1MCwgZ2VuZ2RvbmdqaXUgd3JvdGU6DQo+ID4gT24gMjAxOC82LzEx IDIxOjM2LCBKYW1lcyBNb3JzZSB3cm90ZToNCj4gPj4gT24gMDgvMDYvMTggMjA6NDgsIERvbmdq aXUgR2VuZyB3cm90ZToNCj4gPj4+IEZvciB0aGUgbWlncmF0aW5nIFZNcywgdXNlciBzcGFjZSBt YXkgbmVlZCB0byBrbm93IHRoZSBleGNlcHRpb24NCj4gPj4+IHN0YXRlLiBGb3IgZXhhbXBsZSwg aW4gdGhlIG1hY2hpbmUgQSwgS1ZNIG1ha2UgYW4gU0Vycm9yIHBlbmRpbmcsDQo+ID4+PiB3aGVu IG1pZ3JhdGUgdG8gQiwgS1ZNIGFsc28gbmVlZHMgdG8gcGVuZCBhbiBTRXJyb3IuDQo+ID4+Pg0K PiA+Pj4gVGhpcyBuZXcgSU9DVEwgZXhwb3J0cyB1c2VyLWludmlzaWJsZSBzdGF0ZXMgcmVsYXRl ZCB0byBTRXJyb3IuDQo+ID4+PiBU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