Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1011949imc; Mon, 11 Mar 2019 04:40:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqx5OCShXLAplLc/TYOkEQBE+PdkVDjsetmVdzKIep2JumlTUVj7ZXMgYAVHNMIS0FnwLFrp X-Received: by 2002:a17:902:bb90:: with SMTP id m16mr34586053pls.49.1552304424507; Mon, 11 Mar 2019 04:40:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552304424; cv=none; d=google.com; s=arc-20160816; b=e59LZZ23ekk1ykHpinnlwp0La/ld2/ZgdMLMot40oqS+X5UbUqvu282hzGaqpVTOVb PFf7mU1SfVyVGJuK9a2pBaL+nN2+EnN8atKadBipfTiaETtvQBwnr027UyV+qUtuf/3d IqJz/buJmSVQCpXScvQTUUNmUtoaEtZjSD2ziqoljBmzUHMvNALvHGiRIY4xHBDYFTdL n0d74/vpGTjNnLYSryXzPbjDwDqlsRFwgyb2Y55HvUZsHLYRokUiiIQRxgWigknzuAim 9pxYyPBmnAdplnBfQOvUH1YEybvmXEFiRSDRI+65BfIJcT8gMhTxBHjz0tdrJUCT8mji +Tmw== 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-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=IoQrWar4GK4K3ovJgOD+k75O4DaW9MpKVclXcrvbBQw=; b=Z2apnzM9rLq8W77M8UwjU8Tede30cloLsirCamLmbmh+/cPP45V8CJsJeRqsM9JfJf ++BSdie9NcI71TC3COcY/pH7IMvcfHO2fRKd3oAWxlbLKzRggqNhl1BXSpelBgvYgy2R OAJE5cttIAhjfKNm5yAsLXJiTEzrBhiH7lTZh8AIlgEBELhMGBrCZiYQfhgh1lrCGeo6 0iG6ACtmMYZ4+Hze+rwj2oduKL3ZVDtiZ5JO2s/yWWnz2AcEEEaA2cGXMOL9UFtwsqXg sASWiUQ2bgNcAxaJl3mHDxaB9WQirSd+nSFE1sfqZW+LqbhHODk4bDReDZ/rs2eE43gw QKng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=0Tyb6CKN; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n20si4777466pgk.325.2019.03.11.04.40.08; Mon, 11 Mar 2019 04:40:24 -0700 (PDT) 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; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=0Tyb6CKN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727388AbfCKLiL (ORCPT + 99 others); Mon, 11 Mar 2019 07:38:11 -0400 Received: from mail-eopbgr700089.outbound.protection.outlook.com ([40.107.70.89]:58584 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726914AbfCKLiK (ORCPT ); Mon, 11 Mar 2019 07:38:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IoQrWar4GK4K3ovJgOD+k75O4DaW9MpKVclXcrvbBQw=; b=0Tyb6CKNxENgOWp2PPrwhQ9GdIxsbYKI6DpaulwYnsuYEA8X0Au7iqlwEJopMVHXryHeaBCwi9JDLxnHwxiiG0AvRSYYApa7g9JSuLRloPVfr0Gc1sDcIm/QubUzy6gHHRpmfr2SuR4QBwxI3EK1M+RjDNl2iioNrtUFeVYg3rM= Received: from DM6PR12MB2844.namprd12.prod.outlook.com (20.176.117.96) by DM6PR12MB3227.namprd12.prod.outlook.com (20.179.105.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.21; Mon, 11 Mar 2019 11:38:05 +0000 Received: from DM6PR12MB2844.namprd12.prod.outlook.com ([fe80::3589:a066:e1d:b1f0]) by DM6PR12MB2844.namprd12.prod.outlook.com ([fe80::3589:a066:e1d:b1f0%5]) with mapi id 15.20.1686.021; Mon, 11 Mar 2019 11:38:05 +0000 From: "Suthikulpanit, Suravee" To: Oren Twaig CC: "kvm@vger.kernel.org" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] svm: Fix AVIC incomplete IPI emulation Thread-Topic: [PATCH] svm: Fix AVIC incomplete IPI emulation Thread-Index: AQHU0rY9293WXGT45E2nygfc4G4QEKYGWFMA Date: Mon, 11 Mar 2019 11:38:05 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 x-originating-ip: [165.204.77.1] x-clientproxiedby: SN4PR0401CA0026.namprd04.prod.outlook.com (2603:10b6:803:2a::12) To DM6PR12MB2844.namprd12.prod.outlook.com (2603:10b6:5:45::32) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Suravee.Suthikulpanit@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4a8aa43b-8ada-424f-1c58-08d6a61606cf x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600127)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:DM6PR12MB3227; x-ms-traffictypediagnostic: DM6PR12MB3227: x-microsoft-exchange-diagnostics: 1;DM6PR12MB3227;20:lYQ1hNT4585xXqBXA0jYfOiCm29sa0xzNjMJoHU3SFanm1N1dmDuPOtUubNLPVXrAuO3WRp5BAayi9B76epiogs6mpR749nGowg436p86qmqHYjcTy13/Rm3n8NfBsiRX/V/gv/87/fCw1B8KZ11Eh/sEJnW6VPHBZUsx3i7o3gDLJPV3K9Zlt8biaYSl11hV18Pt/D2/+Zc213Y6sw/0lHYzehsV7TRor4+fNwe+bBtwzn/pbgiVEsP02LZSKZs x-microsoft-antispam-prvs: x-forefront-prvs: 09730BD177 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(346002)(136003)(366004)(396003)(376002)(199004)(189003)(53936002)(105586002)(25786009)(386003)(26005)(54906003)(102836004)(6506007)(6246003)(53546011)(72206003)(6486002)(52116002)(6436002)(99286004)(3846002)(36756003)(6116002)(81156014)(81166006)(14454004)(6512007)(64126003)(229853002)(76176011)(31686004)(65956001)(66066001)(65806001)(478600001)(8676002)(486006)(31696002)(2906002)(14444005)(256004)(305945005)(71200400001)(7736002)(71190400001)(8936002)(86362001)(2616005)(476003)(11346002)(446003)(65826007)(186003)(97736004)(106356001)(58126008)(5660300002)(68736007)(6916009)(316002)(4326008);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB3227;H:DM6PR12MB2844.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: xFdbRfYVchRPbCmNwEcXYYB9gQcHVTs1J7cfOBSp3vjKWR+m/7WgBUWH+YCQccXYPyAkSHxO9bzCWfrgqsLEGy2YsGTrRdSv9SFg6DxmtofjBYuf2uIPE1OQuZQ6BO009jEyfoCwr1E1b8NYp0tBrpKjIZD4hte1U3mucU7bpUBm8dJq+c7s3LTPAQOx7tLKH34DGfp0oIQtdSESGx8cGh8+QXUr3L4YQLN0FjA2y6hcbAkYnB8CM6uaN/YTEdh7azuD1g1KjYTifgAQwGaPiziZvp58LLVK7ymN17+GXIw+OTB+FIils57jPSfQRSBWMBnq7fr5c9NgaR99G+aloj9uwtk8O26dnlEeTQYEI/owQY8hX7iXaop552a2JAj2O52waYAW4coZU+x6VUbkTSfOjXbHJ7azMKVKwqIkDRA= Content-Type: text/plain; charset="utf-8" Content-ID: <7E7606A84EEF004D8C4D64CC5ADD986C@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4a8aa43b-8ada-424f-1c58-08d6a61606cf X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Mar 2019 11:38:05.6544 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3227 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgT3JlbiwNCg0KU29ycnkgZm9yIGRlbGF5IHJlc3BvbnNlLg0KDQpPbiAzLzUvMTkgMToxNSBB TSwgT3JlbiBUd2FpZyB3cm90ZToNCj4gSGVsbG8gU3VyYXZlZSwNCj4gDQo+IEFjY29yZGluZyB0 byBBTUQncyBTRE0sIHRoZSB0YXJnZXQtbm90LXJ1bm5pbmcgaW5jb21wbGV0ZQ0KPiBpcGkgZXhp dCBpcyBvbmx5IHJlY2VpdmVkIGlmIGFueSBvZiB0aGUgZGVzdGluYXRpb24gY3B1cyBoYWQgdG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