Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp8632ima; Thu, 31 Jan 2019 21:45:36 -0800 (PST) X-Google-Smtp-Source: AHgI3IZIkzWr1/si307Hv22wmMkZx/gYoCBIGFevErh+QwNd0zxT+LPjyQTeyuchCMfXyxGcgMOK X-Received: by 2002:a63:f515:: with SMTP id w21mr965860pgh.220.1548999936608; Thu, 31 Jan 2019 21:45:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548999936; cv=none; d=google.com; s=arc-20160816; b=1A9r9/LwIXg9gJCBIyWudQv7XAv6BHAaShKT34uE6MDctqr0ROP/4MKdZ4qL+czA8s E9ke7XqN0ZyK+mc6ZdAq7xWOkrynq69gwIexMEiqzlitoRKb6M2I3KrCprM+54A3IycD p3B4quMiuhkFHfoFghZGPBeNS1ydSJVB/ippK/2iDNZ2PmcqVNkmad8uVFWZ93w+91aT vTJmOO/zqEVGd7MzloFxHbgNn0SFYZv7RbMxvNSfMzzG31jRGYPEJJVTElvlhGvtBMSv JEt/z1rIQ8egKH1R8RO3e+y4E2c88eTV7DXB1LX/sV55PGujWXEeUN5DsBV1oHW+Rt+o FiHw== 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:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=yXiVgPtjCRDaPJjouENVBzyOddlOKRQTjCXHNccVoB0=; b=kp9w6UJpRAy9xwfo4d17F9CGj4NVAGlZ5xD22aRGsBiyDgJC2sND8jr69fp/lLD2qP jZqnzmAOkiWrtzMR4cK5kkjZbO68Mgnxf5SCZ+3fRPjvv9p1obg7oWfPFhjJO+PMMumM 2BrY+tqXHoCF2ACghap3XKiRZ49gglK2GIOxVzpswci56diYOaPKyLd+XV4e4VTSg9L8 x+U/PgRyIyAmjFNHy5cyahzc87nBdBqCzFCTEX2s02OuROz/v1pS/EOSreYjRnhx51DD ocQ5a8wR+E0q7LSKE5fGN9MuvE7AujYsximP/cT2+hqm3pWl5K4AHr/teBiBtHGOcZb5 XcmA== 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 p9si3812200pll.63.2019.01.31.21.45.21; Thu, 31 Jan 2019 21:45:36 -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 S1726887AbfBAFom (ORCPT + 99 others); Fri, 1 Feb 2019 00:44:42 -0500 Received: from mga14.intel.com ([192.55.52.115]:13629 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726513AbfBAFol (ORCPT ); Fri, 1 Feb 2019 00:44:41 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jan 2019 21:44:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,547,1539673200"; d="scan'208";a="111545264" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga007.jf.intel.com with ESMTP; 31 Jan 2019 21:44:40 -0800 Received: from fmsmsx153.amr.corp.intel.com (10.18.125.6) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 31 Jan 2019 21:44:11 -0800 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by FMSMSX153.amr.corp.intel.com (10.18.125.6) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 31 Jan 2019 21:44:10 -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; Fri, 1 Feb 2019 13:44:09 +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 V3] KVM: x86: Sync the pending Posted-Interrupts Thread-Topic: [PATCH V3] KVM: x86: Sync the pending Posted-Interrupts Thread-Index: AQHUuUJRjLIQOcS2Ek2942IJLMQAm6XIlSgAgAHZSfA= Date: Fri, 1 Feb 2019 05:44:08 +0000 Message-ID: <82D7661F83C1A047AF7DC287873BF1E172CD9337@SHSMSX101.ccr.corp.intel.com> References: <1548924722-64060-1-git-send-email-luwei.kang@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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+IFRoZSBTTiAoU3VwcHJlc3MgTm90aW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