Message ID | 161188100272.28787.4097272856384825024.stgit@bmoger-ubuntu (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <kvm-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69159C433DB for <kvm@archiver.kernel.org>; Fri, 29 Jan 2021 00:46:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2988264DEC for <kvm@archiver.kernel.org>; Fri, 29 Jan 2021 00:46:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231604AbhA2AqC (ORCPT <rfc822;kvm@archiver.kernel.org>); Thu, 28 Jan 2021 19:46:02 -0500 Received: from mail-dm6nam11on2040.outbound.protection.outlook.com ([40.107.223.40]:41665 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231459AbhA2Aos (ORCPT <rfc822;kvm@vger.kernel.org>); Thu, 28 Jan 2021 19:44:48 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TKq6Vka/tWULRoKEe/S6DQG5AgkBeemdA6TxOI2Y6rBHB/LW826etPHHCrJhDUYN1Oe9mjisX9Ks5Dwm4NTpGUfqpbHE6EqsdqXs10E7zztYInAuIMCcnTeCF0cVMNHleG+RjP6B9UP7wF+r9s9ZpIeCjcku8+xoB6Dgo0IAA/HvNrdzyEhOlwbIgrvtFb5EmWgWcd6OZYgGbrlGsWiduH5IwQDGRBQAPuwhIfWVDRbY8xp5m2807Rc3BUkzrMOOhsLs76e3nsH/EQrbz5PehrTqmg+N9iYgpcyfsvcjlBuNo8u8d1pqr5EGeAwiDUVEG2yNbX+p7dY6EviV9wmI0w== 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=CF4J1hbbttjCvzB0KcY0I9jxXx45BP3e7FK7pX8dQ8Q=; b=BFB2HfBMAGQUBBSkPimiOcSl6T+fp/ERYjjHh8hNoAkLOh20GjKZXTzOF8X5PYlPFV9TjVpULLR1CJtbXPi3hDQCZ4I72p+La5eXVKKcFX2OQT/Y2X4riSftIYyZ4uncqTDRlB6pZZEtoZ5sn+bPIbDOGWiJv5DPR+pMUQ7zU7ToYdZfZdNBJ80ZcLohpR+di2oEFQIKpTedc4PM8H65Dj+xfpvsX5RVgpPPj9H02PE7EdgAyDPBTjCb/yZIJOIUK8XKrn9RvE649g1akyMoXYX6+BDE48IDNEzP6eR1BpFPJdi9tlmTQAx/zFYDCAEvpCpVRfqnU2mgtQO8HmUnjw== 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=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CF4J1hbbttjCvzB0KcY0I9jxXx45BP3e7FK7pX8dQ8Q=; b=V5P7WmaDwYwn9qNupGJpOVVaOJtpW4QONnSpUSvrQh18Z7t7nyhZ81HjX0MBFC3xdrbhjevQSdrkgTFdcmvZFsTAjMNtHzh8BMhJO1AcBo+2RREVKxEijKUdG9vBBYSfV1GpgYQwaALYwomwfe+OKMrPrN/86IxST5ameSZia/E= Authentication-Results: tencent.com; dkim=none (message not signed) header.d=none;tencent.com; dmarc=none action=none header.from=amd.com; Received: from SN1PR12MB2560.namprd12.prod.outlook.com (2603:10b6:802:26::19) by SN1PR12MB2560.namprd12.prod.outlook.com (2603:10b6:802:26::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.17; Fri, 29 Jan 2021 00:43:24 +0000 Received: from SN1PR12MB2560.namprd12.prod.outlook.com ([fe80::8c0e:9a64:673b:4fff]) by SN1PR12MB2560.namprd12.prod.outlook.com ([fe80::8c0e:9a64:673b:4fff%5]) with mapi id 15.20.3805.019; Fri, 29 Jan 2021 00:43:24 +0000 Subject: [PATCH v4 1/2] x86/cpufeatures: Add the Virtual SPEC_CTRL feature From: Babu Moger <babu.moger@amd.com> To: pbonzini@redhat.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de Cc: fenghua.yu@intel.com, tony.luck@intel.com, wanpengli@tencent.com, kvm@vger.kernel.org, thomas.lendacky@amd.com, peterz@infradead.org, seanjc@google.com, joro@8bytes.org, x86@kernel.org, kyung.min.park@intel.com, linux-kernel@vger.kernel.org, krish.sadhukhan@oracle.com, hpa@zytor.com, mgross@linux.intel.com, vkuznets@redhat.com, kim.phillips@amd.com, wei.huang2@amd.com, jmattson@google.com Date: Thu, 28 Jan 2021 18:43:22 -0600 Message-ID: <161188100272.28787.4097272856384825024.stgit@bmoger-ubuntu> In-Reply-To: <161188083424.28787.9510741752032213167.stgit@bmoger-ubuntu> References: <161188083424.28787.9510741752032213167.stgit@bmoger-ubuntu> User-Agent: StGit/0.17.1-dirty Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: SA9PR13CA0236.namprd13.prod.outlook.com (2603:10b6:806:25::31) To SN1PR12MB2560.namprd12.prod.outlook.com (2603:10b6:802:26::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [127.0.1.1] (165.204.77.1) by SA9PR13CA0236.namprd13.prod.outlook.com (2603:10b6:806:25::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.8 via Frontend Transport; Fri, 29 Jan 2021 00:43:23 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: de15430a-e38a-48c1-bd4f-08d8c3eee278 X-MS-TrafficTypeDiagnostic: SN1PR12MB2560: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <SN1PR12MB2560658094386A689B8A41E995B99@SN1PR12MB2560.namprd12.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:1388; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: w/gjyunOwikS2pHW0YuWutY7hq++DPgcetead33dAtVgSGHt903e/Rmt49qEv3bbXY3tNMWbkwA+Wzx7EsYLxqLpV/ptrbIEpWzLGs7/JD8Ralby8koqSBim5Xlxm4xnDdFEVyusl4o+1MqAerrmXSSsRtpw2fJZC29ZPuydABpwI/5ZCnW2IB/iajtl2UaueZ6W4qMctprDuHuq5WvXfedkdAIh5Yi3xmfdApGWfPfoJf4CRMW+rQTfg2GMWdyD3cKio1vNap1+Cd3ba0FQQ3aC5vLm/seM+9TWShp21RqE1CPnw75/jvZV6b9EFfaHJOvc6IhVs2VUgMTAuxq0c4Y/1A5gB15+uKBB2eLbOGAGE50eeRtiNrXLo/VQP5q2rEheAKWomjE+f3/ekjvRwjkttM9kAIosHehuyn3kqjUwdyEjAFAgR6D70FV65HaWp2858Cae/HXwgt+qn0PVH9H3XDHaVohHrdVk/n6VR8wptZhvizKcheOS/2zy+PGg3Y9npJXWQVikmKsn+wBMDw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN1PR12MB2560.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(7916004)(396003)(39860400002)(136003)(366004)(346002)(376002)(956004)(16576012)(52116002)(7416002)(8936002)(8676002)(316002)(86362001)(103116003)(44832011)(16526019)(186003)(33716001)(4326008)(478600001)(6486002)(9686003)(66476007)(66556008)(5660300002)(26005)(2906002)(66946007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?vyjDI32oYpxnmwtUyivdqnNFP4w0HF?= =?utf-8?q?xr3WCS5NUZlM3xPlI7SBCzH9JypTOkQykTgMVw6L0FMxwU14ck1J6Jt6FEoyiBNaD?= =?utf-8?q?LIulIK+Sivh0078coqTrXXrUMx1dPfIcKW0WDxHijJ+htGnJZb97sgDlZNnU1YlQv?= =?utf-8?q?/cJ7gEwwVekllaih3S9BllF7hcNboaJC7Gy3GWjEf+paJ8iRnLU1YWRG3bLkEf1eA?= =?utf-8?q?u84XOqcicKOWgytwoTE6sP4olw2SO39CaSFe1X/vw1ZLk761m3uLSkHs0hiL42EpQ?= =?utf-8?q?8RXAe8+hXxvU/EU8kL4XRh9REoSqGSEq9WndgPAQQjP9m0GJWFG0tr/tOBgJ2yuEb?= =?utf-8?q?TjYQLXxKC931koJJHMhfm8rQUpldn2+51TWRzXslxnJQA6JMnqNy/KSd990ciBxP6?= =?utf-8?q?S9nT9eB95HKsSGe/S5sOOMUxiJ2pkG+0vOLAjeWDmGtVZSvc3YTiWgVW3HrefRMH8?= =?utf-8?q?Qx2KiEsfe2fJFslUY/MQDowITCcUbPHtpZKn/ubqiXPjYfFJcx2ydnVK3ToC6FvCU?= =?utf-8?q?MpwHr25oT138c6qHC7CbzSfeD1KWPtVUaezon2XmgQ7/Xi/R9BDwhTan65zK/JxTT?= =?utf-8?q?leHlwc03SuTQoue71nkyL6X/IE+nq6U3jBQXDduEb2H6AewE1Nw14JzenhtHXqO/A?= =?utf-8?q?xGgblWm9O8lblWNdvYnJFfkYMs3BrlRLc4xBdUd6ZezRqgQDi/6oJNlZn1IZvHHmj?= =?utf-8?q?jZQmgobsnJZEPY0dqlSlmfwtyjeBwyqXrjMRlafh6k+Uo/pziSC52uLs5TV+3bPNI?= =?utf-8?q?zQzg2FmvY8R/1wnk/2SXn7Bu1nPwge5IxuLgXb/frnfqvvAHVnGhvShqpdNjVtLi4?= =?utf-8?q?hZm/9xKQ0J3j+mM3pfNcCWWhByPzSivEG86YEwjwbveOTWdzx968L87ETz7FNV/EE?= =?utf-8?q?K9sME4fUrwH0yqwUxb4mO2hoyE8WRVi5lTZ226YMmP3DR8jhpC1nwt2CQyAUarZzD?= =?utf-8?q?2q5TNBBehzcMbyBYVaIb7PvQN2GDOutYbcZBBGRY2Rnh9AIqdmu25EtehIxufUeOD?= =?utf-8?q?zHCTJkkR0Tlca0qFqN?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: de15430a-e38a-48c1-bd4f-08d8c3eee278 X-MS-Exchange-CrossTenant-AuthSource: SN1PR12MB2560.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2021 00:43:24.3610 (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: uSSRzNK0lfttjnTULG947f13wFC1Bgli6ByHLmsZnMjfjINJAN49gJ/d7nbdMFbR X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB2560 Precedence: bulk List-ID: <kvm.vger.kernel.org> X-Mailing-List: kvm@vger.kernel.org |
Series |
x86: Add the feature Virtual SPEC_CTRL
|
expand
|
diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h index 84b887825f12..3fcd0624b1bc 100644 --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86/include/asm/cpufeatures.h @@ -337,6 +337,7 @@ #define X86_FEATURE_AVIC (15*32+13) /* Virtual Interrupt Controller */ #define X86_FEATURE_V_VMSAVE_VMLOAD (15*32+15) /* Virtual VMSAVE VMLOAD */ #define X86_FEATURE_VGIF (15*32+16) /* Virtual GIF */ +#define X86_FEATURE_V_SPEC_CTRL (15*32+20) /* Virtual SPEC_CTRL */ /* Intel-defined CPU features, CPUID level 0x00000007:0 (ECX), word 16 */ #define X86_FEATURE_AVX512VBMI (16*32+ 1) /* AVX512 Vector Bit Manipulation instructions*/