Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5736862imu; Wed, 30 Jan 2019 02:44:06 -0800 (PST) X-Google-Smtp-Source: ALg8bN7E3QbHuidjfKcXKgAa1iP/Ndlkvdr8OP5gG1CmYIoDMti4kwCpJ3NA9T0QEulRjBMVs4N8 X-Received: by 2002:a62:2fc3:: with SMTP id v186mr30184666pfv.82.1548845046753; Wed, 30 Jan 2019 02:44:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548845046; cv=none; d=google.com; s=arc-20160816; b=AejfDs8ZJMLktulsIejdyuQAGNixVtwXTERr52sDH9Yo7kgDIak2ctr2t2KrvzvygA t1SVcbMdn+A/BSUWqjmTNbhUzpnwHHDwwW9n6j0hyXaTGMEXiSOVd23DkbNaLuA/lF5f cuMoy9T9Cl8r7zUIjXZu3F273PD6yjrL7o4VP7OwOPCerxO9HEsZCYHxIhmqyxe6Io4u lwbg2smQ7piHyduuKQnSopVDUkocCzL6yikMAbPQxTAwlsPke/g6s+9l3864ib2PVJ4F 2WMeJE1fsymSNPG7154wlkgHEQXpDTKCBqw3lqdDorIGFlFi7lqapFQmMnzzKOHs1iUK PNzw== 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:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=ZMfVll2ZlPc+ir9h9ZeJERzEfFPHifWEbodjjdfqmYU=; b=v24IkGQq7PwBX5KbyAal4McJ+QwomLz6kMYbunAAO1jvTglOqReP9m3H3k+ZDBHlXQ m3zfjLGqdm1N0eD/qcpwbDEzQ/4PGkxrWIXEUO3p4BIk6Pxd1nsHk5v6d7ex6GMc1gRT SZ7huzNq1dqrRHUzjMHhRVFQPpr0NlLbhpovhlLYx/p2B1Gw+ZWMtXTA99N/japP6Auf SDOmofxwPlB2zVJ3UmBirrmxk/a1etvzDQhZqYwaRgflAZS+9R9jORdtXnzd+masT3Sk n2jFvsj9OgjKhqs3qfHVmm05Wzek51ABx0R02Jw4g1PNJiSc4SLSv5wg2Yuxx0uFHCrN r9Xg== 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 e17si1036684pgj.142.2019.01.30.02.43.50; Wed, 30 Jan 2019 02:44:06 -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 S1727974AbfA3Knq (ORCPT + 99 others); Wed, 30 Jan 2019 05:43:46 -0500 Received: from mga14.intel.com ([192.55.52.115]:34968 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726713AbfA3Knp (ORCPT ); Wed, 30 Jan 2019 05:43:45 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Jan 2019 02:43:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,540,1539673200"; d="scan'208";a="113870142" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga008.jf.intel.com with ESMTP; 30 Jan 2019 02:43:45 -0800 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 30 Jan 2019 02:43:43 -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 18:43:42 +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//4kjgIAAl80QgAACS+A= Date: Wed, 30 Jan 2019 10:43:41 +0000 Message-ID: <82D7661F83C1A047AF7DC287873BF1E172CD6156@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> 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+ID4+IFRoaXMgaXMgbm90IHdoYXQgSSBhc2tlZC4gIFlvdSBzaG91bGQgaW5zdGVhZCBkbyB0 aGUgY2hlY2sgYWZ0ZXIgcGlfY2xlYXJfc24uDQo+ID4gPj4NCj4gPiA+DQo+ID4gPiBJIHRoaW5r IHRoZSBTTiBoYXMgYmVlbiBjbGVhcmVkIGhlcmUgYmVmb3JlIHRlc3QgdGhlIGJpdG1hcC4NCj4g PiA+IFRoZSBTTiB3aWxsIGJlIHNldCB3aGVuIHRoZSAgdkNQVSBpcyBzY2hlZHVsZSBvdXQuIElE Og0KPiA+ID4gMjhiODM1ZDYwZmNjMjQ5OGU3MTdjZjVlNmYwYzM2OTFjMjQ1NDZmNw0KPiA+ID4g QnV0IFNOIHdpbGwgYmUgY2xlYXJlZCB3aGVuIHNjaGVkIGluLg0KPiA+ID4NCj4gPiA+IEFub3Ro ZXIgcGxhY2UgaXMgd2hlbiB2Q1BVIHJ1biBvdXQgb2YgdGhlIHZjcHVfcnVuKCkgZnVuY3Rpb246 DQo+ID4gPiAgICAgIGt2bV9hcmNoX3ZjcHVfaW9jdGxfcnVuKCkNCj4gPiA+ICAgICAgICAgIHZj cHVfbG9hZCh2Y3B1KTsgLT4ga3ZtX2FyY2hfdmNwdV9sb2FkIC0+IHZteF92Y3B1X2xvYWQgLT4g dm14X3ZjcHVfcGlfbG9hZCAtPiBuZXcuc24gPSAwO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