Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5732707imu; Wed, 30 Jan 2019 02:38:50 -0800 (PST) X-Google-Smtp-Source: ALg8bN60ykXHJeTbZuOlhROla4vcji9+SKk0xEtQeUzU5DjrOqU6veSa2wvBRLO9WoZ8fXkgz3EC X-Received: by 2002:a63:40c6:: with SMTP id n189mr26596041pga.355.1548844730519; Wed, 30 Jan 2019 02:38:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548844730; cv=none; d=google.com; s=arc-20160816; b=JO5MrQVo8DLATWncdZ2A6L9ViqEcTTH5I9EIHMY5NvBitrDzR6c40qdz4MgqtH/yUA XdJQ7odkkmoD3k0JeN/Obgj9WJsID5DKcmx/xrTCpaB7gpWdTb4xg2OkeR7qlJe1PSdX Ed6sIwtljOTqSwRYk/R63qtuPtzo5L+GR1CCdQRel0WsWI8olHbHnNKbSFVpIvY+tY1n MH4dMUm4dXmyxf90n0BVoCKqs2hLZx1SENra6+7IrkJDvqRejK29uJ20FOaWXIZMVMfZ 4ezDUj+TQwXechxWMkytP9Wu/cpzrssl2gB2oQq+CHX9ty4qRPThz0Wc2jLrE6zBztKp Uidw== 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=+TlWPOd0b6L/bb2Pwgmh7jhE6yfvA817aP9HpIx34bQ=; b=WmhJwYhYbzpuOPC9XTjyh8A84A/UPkR/fuokFaNzQpHbKcqTjbYkpbMItWnhK9Q+mu g2WpRIxtSFu+YSVInBi3MNa0EBplRrhl+xc6yRA+37OD9ff2UuxXsB4Ju8c7nkc7ifdx L9B7/unFDet5Bo7NcqVXJcj2tOg8x+03/HXeQHXHgqu6b5YIYZ55yN1+VuSZcclFt+eO KZATThurODZ7mCVaeO5J/AqlbBFbrPVtlg5yX0n0fPj7VlGe2CDhm7/jlp2q/MMwuSG9 q01ydPVWtQYxY2+cXhOWRFoFJzRZ83vJDRmhEzK89Xr8OMpK6U5NME2v6S6WIefiwlsn ZH7Q== 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 g8si1345565pli.50.2019.01.30.02.38.34; Wed, 30 Jan 2019 02:38:50 -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 S1730535AbfA3Kia (ORCPT + 99 others); Wed, 30 Jan 2019 05:38:30 -0500 Received: from mga02.intel.com ([134.134.136.20]:61973 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726548AbfA3Kia (ORCPT ); Wed, 30 Jan 2019 05:38:30 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Jan 2019 02:38:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,540,1539673200"; d="scan'208";a="140048603" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga004.fm.intel.com with ESMTP; 30 Jan 2019 02:38:29 -0800 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 30 Jan 2019 02:38:29 -0800 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 30 Jan 2019 02:38:28 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.110]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.253]) with mapi id 14.03.0415.000; Wed, 30 Jan 2019 18:38:26 +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/JWQKAeKmNaXG9FYAgACJIZD//4kjgIAAl80Q Date: Wed, 30 Jan 2019 10:38:26 +0000 Message-ID: <82D7661F83C1A047AF7DC287873BF1E172CD60FB@SHSMSX101.ccr.corp.intel.com> References: <1548809972-32100-1-git-send-email-luwei.kang@intel.com> <0e8444a1-39a3-d217-8602-ae175fedc8b2@redhat.com> <82D7661F83C1A047AF7DC287873BF1E172CD5EE4@SHSMSX101.ccr.corp.intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzUyNTI0MTgtMmJiNy00OTdiLTlhNWMtZWE3ZDU0YTQzZDg4IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiTlA5NkJHdk1qYjFjQlk0a1E0MHlhQjJRc2JMY25PbVNpaStOUjk4QVZ1dTNRN1V2MEpQU3JQQUR5ZkV2bzhwWiJ9 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+PiBUaGlzIGlzIG5vdCB3aGF0IEkgYXNrZWQuICBZb3Ugc2hvdWxkIGluc3RlYWQgZG8gdGhl IGNoZWNrIGFmdGVyIHBpX2NsZWFyX3NuLg0KPiA+Pg0KPiA+DQo+ID4gSSB0aGluayB0aGUgU04g aGFzIGJlZW4gY2xlYXJlZCBoZXJlIGJlZm9yZSB0ZXN0IHRoZSBiaXRtYXAuDQo+ID4gVGhlIFNO IHdpbGwgYmUgc2V0IHdoZW4gdGhlICB2Q1BVIGlzIHNjaGVkdWxlIG91dC4gSUQ6DQo+ID4gMjhi ODM1ZDYwZmNjMjQ5OGU3MTdjZjVlNmYwYzM2OTFjMjQ1NDZmNw0KPiA+IEJ1dCBTTiB3aWxsIGJl IGNsZWFyZWQgd2hlbiBzY2hlZCBpbi4NCj4gPg0KPiA+IEFub3RoZXIgcGxhY2UgaXMgd2hlbiB2 Q1BVIHJ1biBvdXQgb2YgdGhlIHZjcHVfcnVuKCkgZnVuY3Rpb246DQo+ID4gICAgICBrdm1fYXJj aF92Y3B1X2lvY3RsX3J1bigpDQo+ID4gICAgICAgICAgdmNwdV9sb2FkKHZjcHUpOyAtPiBrdm1f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