Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11424ybi; Mon, 15 Jul 2019 15:36:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqw08iSNmvvmu29v7VhlusBRhI2eoXStGvhTCqbdyt9fCZj9Ipf2uw0/PSNOYk4Jz4P5bpwJ X-Received: by 2002:a17:902:704c:: with SMTP id h12mr29662724plt.318.1563230189945; Mon, 15 Jul 2019 15:36:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563230189; cv=pass; d=google.com; s=arc-20160816; b=vtuHrH3qpfag3uVSxNQ06aNY4jWRF5nojONFagauveo7gNe5VM+tt6VMi7bCbqCRYz O9YkgbGeBdSprPtTeVI+4wslmjbn52PB/uMQlNLEgXAlxMcalzGOZDyLQNU+3fPzvObt FGGhSWziYTIf48n5DKrOtLqLw/FTrdIwWyOeZBnvFfcAMYOFCBAttyfyS7H6KvLJGDxA KceBkYZppNm3VQI7puqglbgHapr+kE7fdGydbiMUD8n5PqPeD86bzdnVCUg5gB9RLZzo msJP0Os/eHrwh7SRMZKlgWjTo5PoX7Scl0kORZdfUmnsEqK6rybYXHTMAgSAxk3u3KTL D93w== ARC-Message-Signature: i=2; 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=NJL2a9qd/YS+c398W9Lb4mbNR8+ELEBBXZuPL0I3ltI=; b=1Ff/tfJwBN+REzfh4fMVXuwDRsjirg7TWGICXHsvEydLxOl2mfrNa/CWt6O5kbPvK0 6XmYXALQVUZitewy7XHJ2acVxOKi0Zt97hoEmACqkaT5yYl6Z56olhncFiJgbf+jg/8H nzfkJLRIcyK9CpgZ+5DhFBHGBCA2+qoi/W5PzoqRwBWRg2GA9ekMFCcPBA1MUMrHajk/ cw62ZGquTeBT1UrRXAiJp/MkEXqseSmvWqACMQPS3CNQsqgvuxNCqUIGnuhOojnBqd/p DFBkGofxDWUlBMtRwbkOZVYO+IO9tZBN5Bb+X6MJOtZyPABX+REJ4LgjOKlpqCyjP+qU o1SQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amdcloud-onmicrosoft-com header.b=LPpueaIP; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x4si16898386pln.70.2019.07.15.15.36.11; Mon, 15 Jul 2019 15:36:29 -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-amdcloud-onmicrosoft-com header.b=LPpueaIP; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731564AbfGOWfE (ORCPT + 99 others); Mon, 15 Jul 2019 18:35:04 -0400 Received: from mail-eopbgr770053.outbound.protection.outlook.com ([40.107.77.53]:41244 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730473AbfGOWfE (ORCPT ); Mon, 15 Jul 2019 18:35:04 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iGUbTBoiKKDfS2uBD6zCsD5JbftwAPe9bsDpjWpqPw0vOAWqFXHJ5MKQiKAe/FUDSDYDFyCmb8f6NKC4W9Ty/+muSIVbGYbmcddI8pFOfAT5HXRi4cxXAP3Iam1rc+YC4OZUYhOX0TlfCHc1FgDE9jzunf4zLO7JZKOch7xcrTpjGgP9vvF0pbbbka97T9Hl0e3bCtJiXeVamUqanQDA6nt3eVXoKsdww6ENvfI+PMrEyaABwSCPOtQW5AIHwdBLEnOBK7u1uvNNWvKd8bL3BnQRaUv6wsvKtas/R5tS2WJAGGTcbM52X0dPaNHw3XLQG4C9AOVd3B+Yru/G5My+iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NJL2a9qd/YS+c398W9Lb4mbNR8+ELEBBXZuPL0I3ltI=; b=OBIuFR7+FslSTwyi+FLWloS4jtNMnZLA7Tb+MjDO5buOqdslWW3IzhcZQXYs5og+zu4hVhYjx2rjWrF9mI22aPH6Bs9NTPo3mL/GS+4bPGvVI3uTIOQZq5kdr0AL27Rahbov/8d5hiyKPsV4uoIDuiKeQ3ws07kph1SCUwSpANRqW8jXNTfKe1Ha3vJVcZkeohcPKkcQeZ/PtZV6/dYMqzb9lbAPOaMU6afD91n/wU9Ck9eBZfCzZAroIk9kPvtmMkDoVBJZVcLMKP9PpOH9T8T8z42+nBjeWUsGRx4mRzIm94ePFx4CABiUYpV7v0QbEyIU1LBTo/e9rRQxqkqMuw== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=amd.com;dmarc=pass action=none header.from=amd.com;dkim=pass header.d=amd.com;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NJL2a9qd/YS+c398W9Lb4mbNR8+ELEBBXZuPL0I3ltI=; b=LPpueaIP0JaEhYPcbURBcD590lKO5jWCK8dZibW/13p+hVUTCSpz0pzl8U5j0cxxFm8MznP3AW6JIjAMZ+gVuUp9PpRDZ8KAB0F0vVSYzXmtpK1nwJx7PQVB32iq2IRsx9MVrQ9rQqi7x1R+pb9gZOLxa1kBUAyUrZXPPrPKc1w= Received: from DM6PR12MB2844.namprd12.prod.outlook.com (20.176.117.96) by DM6PR12MB3786.namprd12.prod.outlook.com (10.255.173.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2073.14; Mon, 15 Jul 2019 22:35:01 +0000 Received: from DM6PR12MB2844.namprd12.prod.outlook.com ([fe80::a91d:8752:288:ed5f]) by DM6PR12MB2844.namprd12.prod.outlook.com ([fe80::a91d:8752:288:ed5f%6]) with mapi id 15.20.2073.012; Mon, 15 Jul 2019 22:35:01 +0000 From: "Suthikulpanit, Suravee" To: =?utf-8?B?SmFuIEguIFNjaMO2bmhlcnI=?= , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" CC: "joro@8bytes.org" , "pbonzini@redhat.com" , "rkrcmar@redhat.com" Subject: Re: [PATCH 4/6] kvm: lapic: Add apicv activate/deactivate helper function Thread-Topic: [PATCH 4/6] kvm: lapic: Add apicv activate/deactivate helper function Thread-Index: AQHU4KZvukQXllsT80ClQydRuIOOIqZiGR+AgGrgpAA= Date: Mon, 15 Jul 2019 22:35:00 +0000 Message-ID: <499a4947-bb65-a0ea-cf16-088a3a4b1ebd@amd.com> References: <20190322115702.10166-1-suravee.suthikulpanit@amd.com> <20190322115702.10166-5-suravee.suthikulpanit@amd.com> <813c8c15-af74-6d77-4a30-2e0ee4b05006@amazon.de> In-Reply-To: <813c8c15-af74-6d77-4a30-2e0ee4b05006@amazon.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 x-originating-ip: [165.204.77.11] x-clientproxiedby: SN4PR0501CA0043.namprd05.prod.outlook.com (2603:10b6:803:41::20) 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: ecb5ef48-776b-42e2-ead4-08d70974ac47 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:DM6PR12MB3786; x-ms-traffictypediagnostic: DM6PR12MB3786: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 00997889E7 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(396003)(376002)(346002)(366004)(39860400002)(136003)(54094003)(199004)(189003)(6116002)(86362001)(66476007)(66446008)(26005)(68736007)(3846002)(66946007)(31696002)(64756008)(486006)(256004)(14444005)(36756003)(186003)(66066001)(65806001)(446003)(65956001)(2616005)(54906003)(11346002)(66556008)(14454004)(58126008)(110136005)(476003)(6436002)(316002)(64126003)(229853002)(305945005)(6512007)(7736002)(31686004)(53546011)(6506007)(81156014)(8936002)(6486002)(2501003)(5660300002)(6246003)(81166006)(386003)(2201001)(8676002)(102836004)(99286004)(2906002)(65826007)(53936002)(52116002)(71190400001)(25786009)(66574012)(71200400001)(76176011)(4326008)(478600001)(309714004);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB3786;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: YuYd26yeoWMQbsaKmw6I1rwZqhD3fXY/HOPF0WIsgTzHhipEk1EZyhlVKNyQiDVghDS1wAUTKHpG6N/dzbrOHODHZZyG0NHXJBVwERAAY+2mzor2KNgt1OyJn/zOpQc/qC1VliRKMVUoxxiY4BLhUW7SL6fViIL18cT5bR9nDkEvd+yvJw3Q0bWt6SKOEnijgXBNXWRey9nvjQcx271zLVatNwWZvmMEzN/WfQVEeHfSqk99kMgvjvjkekD4uYFDPsCnWF40SgufSsv3INHcrr+jwKXponrfh48/PHMyiA1ImuOhyXE2JWgaBEEz3y6BZcCKvTy2dyaP2DYSkSlf0WhVTzwBBemW3XshbfxDlL1Gi5GLlNYchDrob2+Zk54eEDnu/tC0Olrcf1KtIP/8q3TNf4AjyVhDH9ViPyoX000= Content-Type: text/plain; charset="utf-8" Content-ID: <60B55220210ACF44B70ED401B71FABE6@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: ecb5ef48-776b-42e2-ead4-08d70974ac47 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jul 2019 22:35:01.0090 (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-CrossTenant-userprincipalname: ssuthiku@amd.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3786 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SmFuLA0KDQpPbiA1LzgvMjAxOSA1OjI3IFBNLCBKYW4gSC4gU2Now7ZuaGVyciB3cm90ZToNCj4g T24gMjIvMDMvMjAxOSAxMi41NywgU3V0aGlrdWxwYW5pdCwgU3VyYXZlZSB3cm90ZToNCj4+IElu dHJvZHVjZSBhIGhl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