Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753686AbdHQUOJ (ORCPT ); Thu, 17 Aug 2017 16:14:09 -0400 Received: from mail-sn1nam02on0061.outbound.protection.outlook.com ([104.47.36.61]:36407 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753326AbdHQUOH (ORCPT ); Thu, 17 Aug 2017 16:14:07 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Janakarajan.Natarajan@amd.com; Subject: Re: [PATCH 1/2] KVM: SVM: Add Virtual GIF feature definition To: Borislav Petkov References: <48751b833f2833bf84b899e8abef0bdc111ea456.1502896608.git.Janakarajan.Natarajan@amd.com> <20170816173644.psnohb6g2bfweewv@pd.tnic> Cc: "kvm@vger.kernel.org" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , Paolo Bonzini , Radim Krcmar , Joerg Roedel , Andy Lutomirski , Tony Luck , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , "Ghannam, Yazen" From: "Natarajan, Janakarajan" Message-ID: <9d648dcc-67f8-fdc9-53c5-af1cd4214040@amd.com> Date: Thu, 17 Aug 2017 15:13:58 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170816173644.psnohb6g2bfweewv@pd.tnic> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: BN6PR08CA0077.namprd08.prod.outlook.com (10.172.143.143) To CY4PR12MB1672.namprd12.prod.outlook.com (10.172.72.144) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 108814e6-d330-492c-18f7-08d4e5ac8239 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:CY4PR12MB1672; X-Microsoft-Exchange-Diagnostics: 1;CY4PR12MB1672;3:bnzwXOW3/0PE3U9UQ7yjGj5uw9pSwi1/nFZd/SVG3mHE6uR8wpKyJFHgn7RDA9H/dBkLAl4iLkV3xBl0M9R92Y5+WIiVFXLt1Zoc9i6EGZklxYlyOifxbmeBtZanZBUwBkgCtbhbTvnAuS4pUNDjz3L2PE7adL9NP4mKNO0FP2sM8GH8MS4gu9eb2ypL3N8BwaL4yshGJfRhcO1MeqFUPt8isXixbuftY+nEE5CNtsZlgXI7s8PBTLxfDwOLG4vW;25:CR/EWPrbJTkbjzyvU+IcngZb/QwdHHbDVaovq/I/zGOFHDx4ZJc4sbNw/4R/UNdCauFXdvChS7psYfxV3KNtNIltlrp+R503uHAweU4jSwUXyDaH1//ESxSiMQy5PcDHhdcfBIxhQejXtU0KTDKjCtokT7iQJQdUhT1NWUywZRC41pYgJXtkZP7WGL/ipfEkZpHZhENf3XhBD57XlYpFwMLAUmGoCcLl7dFbyKDHwyY2Kp2xuWimii6IPrUq409Mr4k9L2IGmFxQGBMB4UfgWDPHsfp/aUW0nKQK6u4dNyZTgJ5CAWOKwwo6bBXJ4nxwAbgp899LkEyesWFJtolHKw==;31:qztg6BX3jO6yshVVnWw5bVSPv7cXuJeRqxrN7G6ExO0hdtMOj163ejSK27YVfxCShFjp/HRTQP6ZyRjz0cY8ScFOYoPBinG8BkQPOB2bmnaftKHmNjTurDsP246XmuIK8DAweu2m4sLtw7sm9u5otw/bsdKJ5M/W5swy2zXr/bUovFgWu3UQwK3TtJMs5Ds/ErXvdZqc0IfvzpkMjhqcsYNb9OVk8Ait6hxuxkkkAK4= X-MS-TrafficTypeDiagnostic: CY4PR12MB1672: X-Microsoft-Exchange-Diagnostics: 1;CY4PR12MB1672;20:QdGXlNVgEXq1HTuMcEZ1+Kq4b45T7qDxFpSPEsl/odzz5xTomRq73O5eZCzCEBWD9AHxrk4MCFh2lSZ3nkCfo/Hhho+0yMRkJAW06BzgVvhFOmh+eNDqtIiehvg0kxvfNywY1hb5nanaOc1N0d2cx9/l5lPV0Ub9z6ynYRjCNM9MptkCPQCsT++PGIUiuKryFMKlq5OLs8ukqR46PPqIsNk78sAiAiqY5rluWYqTkuu7PSzuPX9GpDXgBDg4fnjSUpb6jthVubPKTx9N4SN8oq7VpPGxcasvpqPM8Cy/bI+T5RUQpSoelBkW9eGIhivmPR9afDzgyn5rpicEuiSfpXGFIy4hto8IOzp7dxi9gITPrLrYiRzI4rB/w84sOaJ8/8HVNAwjCSWlCiaxB50pxVyg1jRFrblKvy0tAJLM/5FnzAIqELeX9S123R/jzrXysVP+nJD0McIVh1/q4pKA1d5/GEnAJMnqNqgUBpguME9MRrpOWH5AkS9gSNx8kXr2;4:kI16nb3KiC0ierA/NFcG9ByMI6QC9h+XJqb7+y/dO+ma/Vn3vsPV7fQt5hGRsTX0vAZRrKCFb0ikH59qSkNTqwJTnyvsvWXyTKIGWZ0y9B4b9R8W5n5dk4Hv4PwdU5e0dXu65C5yV6PUQ0YnzPIEHRBRRsMnU+wHH5qafVPoRc+avLkWQyOYSelmpmGSosPv3/korYTv2OG+rYoGD0VaLCFetZ7QQPEyrVW0jJQtnqWd6wHMJi7pc8oWgZxQ058SthKQvQhKexP36umcbj3j/gkJNOYrIYCMqu/C3uxdqUw= 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)(8121501046)(5005006)(3002001)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123558100)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY4PR12MB1672;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY4PR12MB1672; X-Forefront-PRVS: 0402872DA1 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(7370300001)(6049001)(6009001)(39860400002)(189002)(24454002)(377454003)(199003)(54906002)(229853002)(54356999)(76176999)(106356001)(305945005)(5660300001)(6916009)(65826007)(2950100002)(72206003)(101416001)(23676002)(6666003)(4001350100001)(66066001)(65956001)(50986999)(65806001)(47776003)(2906002)(36756003)(97736004)(68736007)(3846002)(6116002)(53546010)(6486002)(77096006)(6246003)(189998001)(83506001)(33646002)(90366009)(53936002)(478600001)(31696002)(110136004)(8676002)(7350300001)(230700001)(81166006)(81156014)(64126003)(7416002)(31686004)(50466002)(25786009)(86362001)(4326008)(105586002)(7736002)(42186005);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR12MB1672;H:[10.236.68.193];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjEyTUIxNjcyOzIzOm10Q1B4UWZTZW92aVh4NzlFaE1RMDFwOUhw?= =?utf-8?B?NWQ3cjRISXJiS3ZUb01LQzZmYUo3bVBNQzE5WjM5c204akFzNU5nUjFqZytw?= =?utf-8?B?akVKbWtOZm44WngvUE9MczFKcHVYM3M5UEVOdzBsRHdjcS9KYU5tT1ltb1c3?= =?utf-8?B?VTA4eFU2Ym4reXRvTkJsbGpBcFhvTTJPUXhXc0lOcytDL3ZEaHMxcmFGQmcz?= =?utf-8?B?SEQzUlRCMEg3MGlTNHdGU0VCNmRqeVkxam5Ibk9JSHZEaGIwdjhFZ1huL0t5?= =?utf-8?B?a2ZqL0pITzR6YTJvNFNCWU16WWJwSGlWR2x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qPsfYYLzjH5XHrQgaOE X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Aug 2017 20:14:02.4247 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1672 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1000 Lines: 26 On 8/16/2017 12:36 PM, Borislav Petkov wrote: > On Wed, Aug 16, 2017 at 10:54:49AM -0500, Janakarajan Natarajan wrote: >> Define a new cpufeature definition for Virtual GIF. > "Define ... definition" ? > >> 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 */ > PPR calls it vGIF so make that X86_FEATURE_VGIF. I will send a v2 with the changes. > > Thanks. >