Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5653396imu; Wed, 30 Jan 2019 01:03:10 -0800 (PST) X-Google-Smtp-Source: ALg8bN43Zf7xjYIBu8NfeGcygr3LBNWs8IUUatgCEYQ0p6nFM8Zeh50bgdFAZNM74DXyI+2YfcK3 X-Received: by 2002:a62:b2c3:: with SMTP id z64mr29365497pfl.120.1548838990858; Wed, 30 Jan 2019 01:03:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548838990; cv=none; d=google.com; s=arc-20160816; b=b0T2VvL2SZlIBitqqZd8utzYYbo1wFiKV5DYsr7WbIp3CdwcutimMd4g7zLwVwA44o 00pUJ/UjaKVJ5DApCtE6GxNjbkGz4cKbWyM14eDYL106kOanDmP/LHyDQYuHvrCREK4S JYGG2rYrl4aotLNe1QPqPI1x6n+NdYUtRwcps+TOFpM5G+vnqRr/fqJSgvxU1/hB15gy 7UVEmV67v6ubgExnSGfkqPQIIJfM71LI0ZnzsxpeGJjD9oj6OVoF2MYmWzgNv1qI4O0z 5A7uXxCB22nE5XdZjPoOz/DQsGI+i2nNGmc436CUDndkJKeWhUUkrTTNFMx0cUKdp+tD R5NA== 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 :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=KRr56QI7litl7QizhkSy4AQVi6c9aNpgzULKbmoDt3s=; b=VfZNPd6hH4bSaM7eFR0ath9Mm3A88zLrUpcnfZyf2vRTla+Z/XPM++nHv+uw+6/6qE o5IqrDNt5pLygyBM7w5V2iDCbaeUhYItJSzWMveJ7qw/Tujyxf11zxESQew+NbIlVLAY IQC03kFD/pIW7h77IbMEV32veEs2uTOoBaXIjuqfgDVWArTN8HUecL4eQ38fLQpavNmw q2+LpvF2bRY0Iutds2D/kq93AWiIhZydpx/pUCJat95MuzEIIEkgMOAjEWRabGr3zFnO A1vELzzGB/f78An/MP/zRqs4NYFR5kvV2zeqmYhMLnZNwko/bSMXWxnyVd5pLo9w+v6x TazA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u72si927451pgc.360.2019.01.30.01.02.54; Wed, 30 Jan 2019 01:03:10 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730224AbfA3JB3 (ORCPT + 99 others); Wed, 30 Jan 2019 04:01:29 -0500 Received: from mga18.intel.com ([134.134.136.126]:10817 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727097AbfA3JB2 (ORCPT ); Wed, 30 Jan 2019 04:01:28 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Jan 2019 01:01:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,540,1539673200"; d="scan'208";a="134361625" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga001.jf.intel.com with ESMTP; 30 Jan 2019 01:01:27 -0800 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 30 Jan 2019 01:01:26 -0800 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by fmsmsx158.amr.corp.intel.com (10.18.116.75) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 30 Jan 2019 01:01:25 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.110]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.232]) with mapi id 14.03.0415.000; Wed, 30 Jan 2019 17:01:24 +0800 From: "Kang, Luwei" To: Paolo Bonzini , "rkrcmar@redhat.com" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "hpa@zytor.com" , "x86@kernel.org" CC: "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v2] KVM: x86: Sync the pending Posted-Interrupts Thread-Topic: [PATCH v2] KVM: x86: Sync the pending Posted-Interrupts Thread-Index: AQHUuDc/JCDEt2PmwEi/JWQKAeKmNaXG9FYAgACJIZA= Date: Wed, 30 Jan 2019 09:01:23 +0000 Message-ID: <82D7661F83C1A047AF7DC287873BF1E172CD5EE4@SHSMSX101.ccr.corp.intel.com> References: <1548809972-32100-1-git-send-email-luwei.kang@intel.com> <0e8444a1-39a3-d217-8602-ae175fedc8b2@redhat.com> In-Reply-To: <0e8444a1-39a3-d217-8602-ae175fedc8b2@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTkxMzU0ZGYtMDA2OC00OGQ0LTgyMTYtZWMzMzVlNzVmMGUyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiaE5MV2NtelZQZFNCWnhrTUlUbCtUWnplTXo1UmUxRjJRTis3NUVDakxoc0Z0dDErNjhDTWVjR0dSMnJhUVRmOSJ9 dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiA+IFNvbWUgUG9zdGVkLUludGVycnVwdHMgZnJvbSBwYXNzdGhyb3VnaCBkZXZpY2VzIG1heSBi ZSBsb3N0IG9yDQo+ID4gb3ZlcndyaXR0ZW4gd2hlbiB0aGUgdkNQVSBpcyBpbiBydW5uYWJsZSBz dGF0ZS4NCj4gPg0KPiA+IFRoZSBTTiAoU3VwcHJlc3MgTm90aWZpY2F0aW9uKSBvZiBQSUQgKFBv c3RlZCBJbnRlcnJ1cHQgRGVzY3JpcHRvcikNCj4gPiB3aWxsIGJlIHNldCB3aGVuIHRoZSB2Q1BV IGlzIHByZWVtcHRlZCAodkNQVSBpbiBLVk1fTVBfU1RBVEVfUlVOTkFCTEUNCj4gPiBzdGF0ZSBi dXQgbm90IHJ1bm5pbmcgb24gcGh5c2ljYWwgQ1BVKS4gSWYgYSBwb3N0ZWQgaW50ZXJydXB0IGNv bWluZw0KPiA+IGF0IHRoaXMgdGltZSwgdGhlIGlycSByZW1tYXBpbmcgZmFjaWxpdHkgd2lsbCBz ZXQgdGhlIGJpdCBvZiBQSVINCj4gPiAoUG9zdGVkIEludGVycnVwdCBSZXF1ZXN0cykgd2l0aG91 dCBPTiAoT3V0c3RhbmRpbmcgTm90aWZpY2F0aW9uKS4NCj4gPiBTb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