Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752346AbdHPPzq (ORCPT ); Wed, 16 Aug 2017 11:55:46 -0400 Received: from mail-dm3nam03on0042.outbound.protection.outlook.com ([104.47.41.42]:35008 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751965AbdHPPzM (ORCPT ); Wed, 16 Aug 2017 11:55:12 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Janakarajan.Natarajan@amd.com; From: Janakarajan Natarajan To: kvm@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org Cc: Paolo Bonzini , Radim Krcmar , Joerg Roedel , Andy Lutomirski , Tony Luck , Borislav Petkov , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Yazen Ghannam , Janakarajan Natarajan Subject: [PATCH 1/2] KVM: SVM: Add Virtual GIF feature definition Date: Wed, 16 Aug 2017 10:54:49 -0500 Message-Id: <48751b833f2833bf84b899e8abef0bdc111ea456.1502896608.git.Janakarajan.Natarajan@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: CY4PR15CA0004.namprd15.prod.outlook.com (10.172.74.14) To CY4PR12MB1671.namprd12.prod.outlook.com (10.172.72.143) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0ecd5731-3e0f-444a-599e-08d4e4bf2c54 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:CY4PR12MB1671; X-Microsoft-Exchange-Diagnostics: 1;CY4PR12MB1671;3:ZFx9mYx/5O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xxLAFUsYyuUkkREX/2BQ0UiVRXvxoOqLbU+E/F6j5wvCINzjx1Y84BDn6OnzRV+QxlRsj96ZO+9aGGZPu11eoRkKr/Mt0yS1XUF0KShrZmz5DhjRYTqyMgZu3cZJwtjDpWUlrTva8MzDiaQGbeZVB6CgQ3uQ3L2tlDkJfDdvPiWFaoI7Ms2Fx4u/4zJvVeAX9ZuywX9pPMBwR9z0Ok6L9JQ2HBVKVDpQGqRzjOn73B94N9z3n4ytfwbRIpGqbdQpqcWCLVZlajSqjK8h3B48xBX2GA3SjNe9Yg8c8L1CDHSNrpHXhHB0X60q1jzLE+iOnsBJuxCIsFgP+;4:3k0GoGcVO0T/UknE+KHiKGco9G1WKNd6Fcpz0z3B+QuHr5mgBn1V1LnNUaIxE9qmP+9yPnj/p2zZCj3ajovXj6Zl89xvQLN0TBl4R/GHu9nLKME+hvg4zMeyuybhW8w4PQUgQQfKEnORnsHxOD9MKlulheeo7NwzJKFRIn22ICYH5OzL1fSc2ryDpyLEtj/AOPfZwpm+qcBEHmF8XxpEjA9K6zyqHCx/jmq3s5zXWyB2SH7rMKvqwo+9tUp1i5herUHRFkqvmb8pyCrrshK5a2AvLQJ9V6h+jqJn5wPQwt8= X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123558100)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY4PR12MB1671;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY4PR12MB1671; X-Forefront-PRVS: 0401647B7F X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(7370300001)(6009001)(39860400002)(199003)(189002)(110136004)(50466002)(305945005)(7736002)(81166006)(81156014)(54906002)(6116002)(53936002)(3846002)(86362001)(8676002)(36756003)(66066001)(50986999)(76176999)(7350300001)(47776003)(48376002)(6666003)(2906002)(2950100002)(101416001)(68736007)(42186005)(53416004)(118296001)(5003940100001)(7416002)(189998001)(5660300001)(72206003)(97736004)(25786009)(50226002)(478600001)(106356001)(6486002)(4326008)(105586002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR12MB1671;H:gi-joe.amd.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY4PR12MB1671;23:/RdgDbypPTARRkYx6OzjNVQC2n+DAGvAG+G+77Tah?= =?us-ascii?Q?fzpacuPHV4q/kOoIEx36VD/vLMPoIZww2os92y4cUOl49sUygRREy/JwgmhW?= =?us-ascii?Q?7R5IpiwlHVbqU6l4VWGG4W/SW5uiXdkAu3Z1Zc/IE13DubDUe6S7IHaM02el?= =?us-ascii?Q?QNpeV8okG3KUYLGppa9d3dhxbA5bzwxYs5rCk1N1y3uqPs1HY09Yc1kczE9u?= =?us-ascii?Q?UUXwxS9wxnE999Sz4RHdRYYYs5M7fBmrJOnW8j+Lmnqyqfr6JZYjhgz0V8Pr?= =?us-ascii?Q?LevNEmnum/QcWOghfFGeuz60yPrf/eFJPw8IDPlkWVh0i3AFSM7EisAfZuQ5?= =?us-ascii?Q?9BnQ0t1MPodeN5RBtJY35WNrWiNuCrTJFjJHMSCXBYTWUOTaHrW+qRk/uS0r?= =?us-ascii?Q?0Q0ffq+GN7njY5igBvQGvjSShivflwFYOJ/OA5WO5IjkbrOeNgSEmjjAoB5N?= =?us-ascii?Q?5iuYlBlWBmBK0Onj7w2kKF+OuEUfz7+RmDLpoC37KAp7ySCrC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d4obovWowXaxqd6uCE4pDPVIZAx18M2K/DtODcopC/gd5OlMTUBTiy8A/GU0RElXW8HOwR5v1APXyndbERF1C+WnTgxcMUyOmFJwY/GogA==;5:nwiW3HALEM+ps0MAGD9jdqCTkup3xB0paMoahQyLI3U5HpHLBa4TFGwjd6AgG8kYMaMc44/QCusIZRerzFpJ3gFmzZIlLW3SofwxsEvTeoaQvoFKge4q1cqn1obAqI6VZ7Tf2M3xILNC/pgHnt5JVA==;24:yahVeqR6vNPwwmWr6AEInoL9zLVIHzF7Cqa0CMF2ZnXnR3C+zI5/sZC+X4uWcV0LDVLuZatbnO3sH5V7OOj1Mm+p8HjRcTsqkESlvQoOld4=;7:d042bj+eVQZAyZUNGtanG0LXMOuGXZ+peBNvW9KLOsb1ucIaUoSFzRTKoMoUOjA5zr6k6repTw8S+FXzIchLxY+VCRTm7qO0eW2v8MqSolwQWVcXoj3QQkOSEEPZDtW6UoifAKPHoWNbqyv55JJNAjr56CXhmAZ1JsaXJ6hEnvQFDskre4XkuO1rdiLdFwuPlYIwqH1xaJTF1ZBCwJLYbV5OOpRAK9v71nDKOQKd9JY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY4PR12MB1671;20:5A110PK5hyxI2vlSB+JcQ+bGZReAlqJGkeJb7V5CAe+QOz/NUPlCcZ+dqTqL3uYql+7ONdWdC2N7+/vQuptKdv5j5cQWrsNATY+JoXMWn3AAFleZ3puZhkgvBm/xl98CFKuWJQozrAM5mDZ8ZDLFgbwCyBYqrbKUU5OwjeNgV4HBQLHQNtZiH9HNrB5nKqXXxlsOS++WQcCGYZiVqZfoHMEuya+uEDNb2g3N4VNNYkjD3Ku6LQvgOHKCIpy1YT1Y X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Aug 2017 15:55:09.4630 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1671 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 881 Lines: 21 Define a new cpufeature definition for Virtual GIF. Signed-off-by: Janakarajan Natarajan --- arch/x86/include/asm/cpufeatures.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h index ca3c48c..58e7211 100644 --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86/include/asm/cpufeatures.h @@ -287,6 +287,7 @@ #define X86_FEATURE_PFTHRESHOLD (15*32+12) /* pause filter threshold */ #define X86_FEATURE_AVIC (15*32+13) /* Virtual Interrupt Controller */ #define X86_FEATURE_VIRTUAL_VMLOAD_VMSAVE (15*32+15) /* Virtual VMLOAD VMSAVE */ +#define X86_FEATURE_V_GIF (15*32+16) /* Virtual GIF */ /* Intel-defined CPU features, CPUID level 0x00000007:0 (ecx), word 16 */ #define X86_FEATURE_AVX512VBMI (16*32+ 1) /* AVX512 Vector Bit Manipulation instructions*/ -- 2.7.4