Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3200831imu; Mon, 28 Jan 2019 00:09:21 -0800 (PST) X-Google-Smtp-Source: ALg8bN5VW6lhy0tlK84aHQ47rt8O+5mbQFrNOBug5PYJ+1UW3vJrGYwVE61g6YZPXfEvJLRX0g6R X-Received: by 2002:a17:902:bf0c:: with SMTP id bi12mr21064268plb.0.1548662961869; Mon, 28 Jan 2019 00:09:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548662961; cv=none; d=google.com; s=arc-20160816; b=SpWRFQEA11Xdy1HKzqmlGViBDoimCtU7TDpOUE3gGBqD3b8MNB4lUR7D1tJ9BmIF+r YpnUqW/Ows30SzRBs6szjQIR4VTCIMHFnBEEP/c5p9BFCIv0qQ/FrDSwyF/a/MPteM7l wvYv/qhhPz0LtZQiZclYtkC/TslpC8ty0gg9zrQZfAtls655672kMD5MVpq9cCFbdZvg /zLE6m2Q1gL5TIajgoOzq3lEcUnlSlkFKeFfC/BqaQK3Hayqr03nR4yX7iD9WmatWvKn vgdZsgSj9ezlJFWq6vqcqojj/6Z20N8dg4n2yO2Yggcq2gHMliXsNNg8EJ4H5WE8aUxx j9qg== 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=+hKyWn/8WoXHBHekNKV5LEhTWIIoyV1qXnWI0cJf/Rs=; b=Fp4o0rqtn/dlosZLvZvIgqR8DR1piKFuqgxBC3OP4hTJtaPG/PmmYea9lBaX4h0Vva 6xjevqmPaw4nDj8oHuPr1tH2uo6v1cE5dIT3dlGDDFnqjsNfjNMqX/vWOvrvLgQ8o4SZ x/uwH2GHIb9kEqOXWWtGdMHtEnw8YiEX1qK2926TgJFe1eGP6dw1DfzMDNV6OdVnsdXj rJTVL2sRhsw6XstEEReL/oT+/ZguLhp9uyAElR4w96Zdjg/pIHqa14D/G9VpUZW2y+5L lRDt1ODGVWJnuIgXtiEW94jK22ORHNuWiQFCnk1whLz4ynmIgAU+19k5VaWkJd5RU+P5 hMjw== 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 m7si6390562pfc.118.2019.01.28.00.09.06; Mon, 28 Jan 2019 00:09:21 -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 S1726735AbfA1II4 (ORCPT + 99 others); Mon, 28 Jan 2019 03:08:56 -0500 Received: from mga02.intel.com ([134.134.136.20]:42103 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726627AbfA1IIz (ORCPT ); Mon, 28 Jan 2019 03:08:55 -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 orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jan 2019 00:08:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,533,1539673200"; d="scan'208";a="133685531" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga001.jf.intel.com with ESMTP; 28 Jan 2019 00:08:38 -0800 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 28 Jan 2019 00:08:38 -0800 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 28 Jan 2019 00:08:37 -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; Mon, 28 Jan 2019 16:08:35 +0800 From: "Kang, Luwei" To: Paolo Bonzini , "kvm@vger.kernel.org" CC: "rkrcmar@redhat.com" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "hpa@zytor.com" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] KVM: x86: Sync the pending Posted-Interrupts Thread-Topic: [PATCH] KVM: x86: Sync the pending Posted-Interrupts Thread-Index: AQHUrvgng1TGbq88YUCMNKU8aNpvOaW/01aAgAR9dGA= Date: Mon, 28 Jan 2019 08:08:35 +0000 Message-ID: <82D7661F83C1A047AF7DC287873BF1E172CD3820@SHSMSX101.ccr.corp.intel.com> References: <1547793240-9157-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-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNjQzYmZmZjktNTI0ZC00Y2Q4LWI3YTUtMzhkYmZlOWRlNTk4IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiVDQ3TkM0NHRnWDlOTFJySGtrVzFIOVFST0JpNTJwWnljQ3R3K2xcL3VPNkIzelpVSmFKbVwvbmNqUXk5NFdMSGJsIn0= 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 ZXQgdGhlIGJpdCBvZiBQSVINCj4gPiAoUG9zdGVkIEludGVycnVwdCBSZXF1ZXN0cykgYnV0IE9O IChPdXRzdGFuZGluZyBOb3RpZmljYXRpb24pLg0KPiA+IFNvIHRoaXMgaW50ZXJydXB0IGNhbid0 IGJlIHN5bmMgdG8gQVBJQyB2aXJ0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