Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp3883025ima; Mon, 4 Feb 2019 06:47:53 -0800 (PST) X-Google-Smtp-Source: AHgI3IZJP9Wi6XOYUvP0rK81w0NQeYc186UZ15WMfaeveRgCOzpCOMn9dZRG/btKhDtq1ZowXDc5 X-Received: by 2002:a63:4852:: with SMTP id x18mr8640947pgk.404.1549291673271; Mon, 04 Feb 2019 06:47:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549291673; cv=none; d=google.com; s=arc-20160816; b=yYcz/JS0VTd3dlqxovzstzOhQNNjZQPfJkOD04HMGh8s6Xgbk9K9Sd/CApdxpldCt2 mnDRhZwjbNf76MkCmcq51Ef2f4QQYbjDreoXsYjzqG8hOyEQt5gCGO4F9Z67L9Ibhcbc 2NZ6EcSDNYQmFjUVhpiL8KXzIgbITIiYvqDL1eeUPwXbyI7eCS5wGtqr1TyPuQ82/edn mftfF+h5VeAK/gd2IDxihUHtNmLCg09X3Q8Ohm3o4LHrILprhUFenhlDXIuwP/FUCqr6 5bv/yPMmbtNrlKFJTuzheYhGyMhsJHh9h7rPv0d2HefQ5iIAiXI47ij6XlwBVXGfI5ZX oKoQ== 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:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=AAwiw0B9X2/HXSuWRSqkC8AZAyUC/8wLEsYLldE8hi4=; b=Xe6v8d2KreIPbs2xfOD4luy98SYMf6UGehNsbBC+MsT5SQqS4SRBIxpEji6SbDEXkm uRcT0mmvvH8qT47QfYzVeW5BjxYtQ0RfeHvcKcOPLGTBXe3D6xnFm6KyrNBl0KXZBrh7 eH41CEQvSenY8di9iXDORvHhL1jIIeOKgsaOlhptA8LiPmO/ztUuGPAPaLZCDfLWDqy+ qee4fJutQ/eLj+FkucRBbXP1eoii8h7WERr+NnQLXqLluyCiRp+3PiW7uIZK6UI/QNdB tufcK5dvuin4kWFY3CE0CcrdFxHrl1PE2EBx0d8dP5ILTXjG0IFgdhJXWR9tDKX8xIL/ +5nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=A8px2EP3; 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 f65si205858pfb.194.2019.02.04.06.47.37; Mon, 04 Feb 2019 06:47:53 -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; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=A8px2EP3; 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 S1730191AbfBDOmB (ORCPT + 99 others); Mon, 4 Feb 2019 09:42:01 -0500 Received: from mail-eopbgr770048.outbound.protection.outlook.com ([40.107.77.48]:38604 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728788AbfBDOmB (ORCPT ); Mon, 4 Feb 2019 09:42:01 -0500 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=AAwiw0B9X2/HXSuWRSqkC8AZAyUC/8wLEsYLldE8hi4=; b=A8px2EP3IGHxQJIIt9PnVaUsliduhv7IKsqhyll37iQn4RtflhSjoabAz/0l+QUC/nG6ReJFjHiWybah+wHlco8h4+7xSF/wTk18DPvEfoD3EtpthzRCGA83bZYUmUmoMZhtOwL0jdPzf9gcl1ocVMjPjwmZ0IEYQOtHm7CnIuI= Received: from DM6PR12MB2844.namprd12.prod.outlook.com (20.176.117.96) by DM6PR12MB3274.namprd12.prod.outlook.com (20.179.106.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1580.16; Mon, 4 Feb 2019 14:41:58 +0000 Received: from DM6PR12MB2844.namprd12.prod.outlook.com ([fe80::c40:929a:abab:308d]) by DM6PR12MB2844.namprd12.prod.outlook.com ([fe80::c40:929a:abab:308d%3]) with mapi id 15.20.1558.026; Mon, 4 Feb 2019 14:41:58 +0000 From: "Suthikulpanit, Suravee" To: "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "x86@kernel.org" CC: "joro@8bytes.org" , "rkrcmar@redhat.com" , "pbonzini@redhat.com" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "hpa@zytor.com" , "jsteckli@amazon.de" , "sironi@amazon.de" , "wawei@amazon.de" , "Suthikulpanit, Suravee" Subject: [RFC PATCH 1/8] svm: Fix improper check when deactivate AVIC Thread-Topic: [RFC PATCH 1/8] svm: Fix improper check when deactivate AVIC Thread-Index: AQHUvJfI6Shdn7859Eac1gOwTJqJGQ== Date: Mon, 4 Feb 2019 14:41:58 +0000 Message-ID: <20190204144128.9489-2-suravee.suthikulpanit@amd.com> References: <20190204144128.9489-1-suravee.suthikulpanit@amd.com> In-Reply-To: <20190204144128.9489-1-suravee.suthikulpanit@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [61.90.26.242] x-clientproxiedby: SG2PR04CA0190.apcprd04.prod.outlook.com (2603:1096:4:14::28) 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-mailer: git-send-email 2.17.1 x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM6PR12MB3274;20:g7ZJfwQIhk5xhy/RDWVAevjMjM+hEnmBxTCR06X21aY2TAVj2Dq3A++gCzZBKaQPS5aTDGB+rNTs7qjDVo3cBKzSaWXvbxV0zKyLqLcFOWz2YNZiqIkpfCPlI/32wxetpPlUzHiORiFPy10eBDJhlNlUrjAKqHLCw4WNi53q8yGBl3DGvfMjBKxEtNZy86/IxIycmrEkejqX1/FuHpofaSOykkCULCB3Pb0R4pXALw1gnqeGFHCNPvojmCkjvp83 x-ms-office365-filtering-correlation-id: bde4024f-1bdf-4d44-e158-08d68aaeea89 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020);SRVR:DM6PR12MB3274; x-ms-traffictypediagnostic: DM6PR12MB3274: x-microsoft-antispam-prvs: x-forefront-prvs: 0938781D02 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(376002)(366004)(39860400002)(396003)(136003)(189003)(199004)(6116002)(3846002)(105586002)(81166006)(81156014)(6436002)(52116002)(186003)(256004)(217873002)(106356001)(2501003)(8936002)(8676002)(316002)(110136005)(4326008)(99286004)(2201001)(86362001)(72206003)(14454004)(386003)(25786009)(7736002)(305945005)(478600001)(6486002)(54906003)(53936002)(6512007)(50226002)(71190400001)(486006)(66574012)(1076003)(6506007)(97736004)(102836004)(476003)(68736007)(2616005)(11346002)(2906002)(446003)(7416002)(26005)(76176011)(71200400001)(66066001)(36756003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB3274;H:DM6PR12MB2844.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A: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: zVlFvCBAEx/hNjJ73/21U3mkf/Bo10qGHv5HlrtyQqBcfFII7fAdVkq8cRnSE4ymui3s6bxLjmiPFk8Zsr/6S7goBZgksQFEeD/GpNyFvWmsBBGKLtQHxQE7Uo3vhLpiLXitU1a2dYHZ2HT9GqXsrJpenfBDgGoQOVXTOHZN9eEUZAChxyIge6QZ9Uizs/Pr58QcTuSwAvwC3XdszqKNZ9saDpd+dSgYG4REEPJjjECXTQJOxTbuxuAGxWUuuUZVv5tQGbpmA0h5VeFtdcejwb1SB0RY+nUcOt3AtlSN6u8JVR2BR15QW/p3Iy6IIWkiywScsvtIO6ckMsJTIhJF+AM/tqTXv09bCbZby6sV0erNGNzn00GhtuksSL8tglJMant7dm4IYwOrgWql/WaBTZEzSgBwYT0s4WkoTuYEqSs= Content-Type: text/plain; charset="utf-8" Content-ID: <307706FF00CE83449B9E99F131238ACA@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: bde4024f-1bdf-4d44-e158-08d68aaeea89 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Feb 2019 14:41:53.9199 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3274 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhlIGZ1bmN0aW9uIHN2bV9yZWZyZXNoX2FwaWN2X2V4ZWNfY3RybCgpIGFsd2F5cyByZXR1cm5p bmcgcHJlbWF0dXJlbHkNCmFzIGt2bV92Y3B1X2FwaWN2X2FjdGl2ZSgpIGFsd2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