Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753683AbdGXUGZ (ORCPT ); Mon, 24 Jul 2017 16:06:25 -0400 Received: from mail-dm3nam03on0066.outbound.protection.outlook.com ([104.47.41.66]:3232 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753073AbdGXUEP (ORCPT ); Mon, 24 Jul 2017 16:04:15 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; From: Brijesh Singh To: linux-kernel@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org Cc: Thomas Gleixner , Borislav Petkov , Joerg Roedel , "Michael S . Tsirkin" , Paolo Bonzini , =?UTF-8?q?=5C=22Radim=20Kr=C4=8Dm=C3=A1=C5=99=5C=22?= , Tom Lendacky , Brijesh Singh Subject: [RFC Part2 PATCH v3 08/26] KVM: X86: Extend CPUID range to include new leaf Date: Mon, 24 Jul 2017 15:02:45 -0500 Message-Id: <20170724200303.12197-9-brijesh.singh@amd.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170724200303.12197-1-brijesh.singh@amd.com> References: <20170724200303.12197-1-brijesh.singh@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: DM3PR12CA0049.namprd12.prod.outlook.com (10.161.151.17) To BY2PR12MB0145.namprd12.prod.outlook.com (10.162.82.18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 62d0d1fa-1436-41a7-70f7-08d4d2cf0ebc X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BY2PR12MB0145; X-Microsoft-Exchange-Diagnostics: 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j1aHK+5Kq6DRrejm67jrYHFWpypBSw4xTSaO2qsPnV2dqhMT9Db0dYexEhfkXvE+AObdU4FBewGPAkcnuVIFPLvvhg1g26jZYm8/98GcY1znxk/e6+zt5hC3cOhXk8AvQrutBszb0oXaqeg65L8gzfTD7QvaCf+gt5AE9xgS8goKH9+e8IAEPnScF3k3BjI4QpmpjiVl3FHg0oW6r+ik25bAjw/teXJ1jmNrvCFHgiCcCy5j7qHlHfJiZsrSV+dGpEJDsh6p4taQmPU/XZtfxYbpMUx0aLaGBvZJ+PGw6JYahawcJm/ar7vu6cyJxnfr5M+6FXlwN4lcsOmskq3ltZJMKYAYzbRVZbeu6qhBD3EiX2/A+X9y8f6wNnnBg9CovDzWcRYk1rkH2dqSXo/JUPbdw3IUOc= X-Microsoft-Exchange-Diagnostics: 1;BY2PR12MB0145;20:msviM16RGDCJZRUZGIQeoyc29iypuwUrR0yb0yTU2iC53JfPJ0PyG48BXWnAUvxs+8kAGfXzPoQiqwdw05xZyoant6SX6KTNd3GhdX2IWRsjPBTxr+5TtLN+E3W7Mnjye72jGX+2EAOjN3fG5KCNbOwYpXyGSvW4MUllG04M/D20FsrGAiDvhAfSOCKslaO1uf6Gra0Wm5Uetg9L7DZjQqJpa6xbT0IH3W5xMnIvuD2rLjpbRJgpVaVRWaepyt3zyHgTmQv0bziSOp+PuoELCbYeBe+v0lNPecz3E9GDPCyBPswNHDmaTBdPf4nTR10wAJhMICJBx/q9KpzTqiejQR4h0T+wwYGfcrWCNVmNCqOlyFkK5P0lYuQugVtr2VIxB4i+NDA2RbK3pRf+D8+CFIYIx4Lt9FUvbOCVZR08GFN0M8dXZvxm+7b2DU/uOYPMM9yK3F3trtb7sAhsX3Yw4f2VNVFH/hKBx5/wpDhqQT3duF0iT0waHSPGNu1KhflD 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)(3002001)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BY2PR12MB0145;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BY2PR12MB0145; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR12MB0145;4:U/ZN248n+4kCsgtDSJAWIRHeDSGxsWMJzKLxH1+JUb?= =?us-ascii?Q?FQdjz6uQGBwibXJjC+OaiETFQZh1nByJGTTC9B8HLjj8UXFHG1kToLfe2qc/?= =?us-ascii?Q?CSrMnt0U7LZgbyCVUWc/dFuOoGVqcVp6/TXWRPLQTYyneeoR3xc1nsjcqkok?= =?us-ascii?Q?7hMVNmeL0SK6gnh4d9e5K8sxYK4b9QPDQfvu5pNmOnkfPNgEOzyUMg3nihIi?= =?us-ascii?Q?z+NrDSrb6zGgQWS4G33f8kLGI/hvpo81LPtnlg600f/S9Zt8JfAzi3IXC/Q7?= =?us-ascii?Q?yi0hzuY3SY2jej+qcRLcmFjvzlw6pxPBcLhFNS5eUtac6iHjj3SKjk0xwoEH?= =?us-ascii?Q?rs63YDJZ91+AP6e5EiOHwKhJ4bZgwngb3EFjkvuelfQC4/JFOgIwtpJjn3Qb?= =?us-ascii?Q?K4V7DDjmUIN18e2eqgnK+aQNiI9GjBQebLbYWK1Uhylbuf5BfyFsB3PBuil8?= =?us-ascii?Q?EeamLsXU4q7ulj7/ZB5iQ/jYSbpMvqO2ON2dVUUl+VQP9dHhCSiWmU/JHtcn?= =?us-ascii?Q?salK4PYPDZ7oBnCwDxq1nQam6Iqac1glb0bJSCPcCSULTElm0FGOBu7wHCOS?= =?us-ascii?Q?i5Fn/0U6YjAcZ/ZIaTM+/TvSKlwuBLPmlDjFUKGFvP52NcyHDsMbWicMZgFc?= =?us-ascii?Q?M3s8YviGco6p41c9W8HPQ0uvmTGfrM9Bc9Y1cnk59d01tw5H+DKrKU2Orki1?= =?us-ascii?Q?trW8J4wypKtyuiLbcOnbOsXe7JYxqp75xuhuJyYX210xrBs8C/mAXA0czdhJ?= =?us-ascii?Q?OLl2mkr4Hhk2qUkdnfGkBIQGTF2K5zIIVLo3CZmTOkXXu5M+yn9QFqZyysD+?= =?us-ascii?Q?H6e0BF4AAn5fPn85/obP8BPm5LGNIKUWT+Oc6GGBS2+dxwxubhuZLM8ZJAJZ?= =?us-ascii?Q?PU3NS1ryvcV+KgoL1+BUtZ8SYvrg0kloqgOvn1Xp9DebQ9OKe07OHBAZo0th?= =?us-ascii?Q?2MnvlLTnvyJDV48f+1XioQjsrIA6KMTUrfuZ8MqfmzgJY8+Q8DUwkRWM3Gsm?= =?us-ascii?Q?35De4UnactLQuMIPMUMckBvGFUMoXRNP12Un5U/F37LaNG2uj/iETIsMRQ5j?= =?us-ascii?Q?jWFR2PNj3XFBA064PgY8A+mAO40JdFowhCaTdvhoRmjJGfZf71A1/Y76fEhG?= =?us-ascii?Q?U8E7f9ihPNyy8nCZ9uMkbcutPugtDj99tPzBtEMFAOsF0zlxBmZea1vsLqeb?= =?us-ascii?Q?7c3KDG5MlrkJkHQ5/bx3+4HbzopficQRGB?= X-Forefront-PRVS: 0378F1E47A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(7370300001)(6009001)(39450400003)(39410400002)(39400400002)(39850400002)(39860400002)(39840400002)(189002)(199003)(7350300001)(68736007)(53416004)(105586002)(54906002)(97736004)(50466002)(6486002)(48376002)(2906002)(106356001)(33646002)(6116002)(1076002)(53936002)(3846002)(189998001)(101416001)(6666003)(2950100002)(478600001)(50986999)(76176999)(81156014)(50226002)(38730400002)(47776003)(5003940100001)(86362001)(25786009)(4326008)(36756003)(42186005)(8676002)(81166006)(110136004)(5660300001)(66066001)(7736002)(305945005);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR12MB0145;H:ubuntu-010236106000.amd.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR12MB0145;23:AfPHmBo5zl0rh/z/2DZmj4tRvJQ/kDfxpq8ziHaxR?= =?us-ascii?Q?f9Hn0xKAgctABGOWhD//IqGJSE4bXUD8QevC1lpBhm6rtqS+x34+/I1bGkVe?= =?us-ascii?Q?28F1E2YKkABF3m4f8tQOlWh2XwumXuMwAGgMhFAniww7dNpYoePQJttyO2g7?= =?us-ascii?Q?H0NNsnMzk40TiT2n/wQ7Wgy7bAxJRMBuxblhi/vUd5PUUow/JJb3pcwqmljb?= =?us-ascii?Q?nQEHldm0F4fu/yMVZVPxD3gUs0CreraRQxUe/oeUOs80EYKOwR4Zq53gTMmJ?= =?us-ascii?Q?YwCzqRYoZjjkbpMY7PyH1gB4fWbP8RdGxplB1yY57WTuLGv6n0WE1b0vGmy1?= =?us-ascii?Q?M02zPbjjM9QYLF33PRmyYFczSr6IzpxRY+qFNJgv+qNP3laMTZ98Ce23OZ05?= =?us-ascii?Q?ZOEE8aKpx/q8HqRiTzxmXdfusTzoLK8Jd3Dj7Plluz9mK2VM3LHEZnvV1JAh?= =?us-ascii?Q?reSAeS75C7gtkaNORCdDyA3EgASn1Ap4Ckzmv0NGDjtaH3X9uVao5w2xyGmT?= =?us-ascii?Q?ov8zdykWrA9l7tjYwSvbuO2kdb9B/4ryH/igMrIkZjkJ3AVdHr2AT0yTxhcK?= =?us-ascii?Q?inARfUBqq1fPakoob2IKbQ5A/+nlWkxAJpED411rdqKUKEzw/RHSjp34hZuI?= =?us-ascii?Q?gqTwGNgyzV8+nU76/7e8ZPRuHcgr87RZ57v4bo/7oTlZqi6sfTE46lECBqbD?= =?us-ascii?Q?F5uXDiR+SH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cxNjQ5nGfcUEQHK6MG3DkxwDF+wjAQX6mU7J0eEvY9WweLzZrnYBgdMiZpsQ5CVceXkGCtHxSRr0YR4JHv3sH3As6nx1fn9KuIBgmaJHB4Ek5v57ClYNEmoTZj9L0XZX3vjaD4tqpDTwpxFKzg9OsSBFgqNLPktun8Jns0MlUtme7eftLP5aCF4/SJYYH6Z1KRj6aUK/K8W25gxWSn7lFa3hm9UAF2qjcn1Yuh1xmA64XybsuikdgRKecvdU1+DZGnqMDNoDcfskgLG+rn8Xp2TNVXsWK/EP65U/LPCrAhzYVkbsqeU7U6kqtXmoTUZNGffF1UJhA= X-Microsoft-Exchange-Diagnostics: 1;BY2PR12MB0145;20:Ob5ln77uTlJBC302L200lZXSTarEjUCgTbFTVNWXcHwi3SCp+HBNqj4BeSRiSKvF3k2h/VjU7ueT7vGWyI5vfVnCNK/kTVRZ8L3BNgrj1tnw4LmCTLvr5CC+D4n1K2MG8lN7xiA0Bx3fl/aUuN+uIU0TwIGWIiSa2I3xDcSO1G2b+491+yGDpBGnxqyHARDAdOSL0NcXoGmUcv9/5uATZM2IiVp5sNmwMOX+E2yMMDwa9zgBkXz0Snrt7xwzD2jG X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2017 20:03:30.3845 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR12MB0145 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1295 Lines: 42 This CPUID provides the memory encryption support information on AMD Platform. The complete description for CPUID leaf is available in APM volume 2, Section 15.34 Signed-off-by: Brijesh Singh --- arch/x86/kvm/cpuid.c | 2 +- arch/x86/kvm/svm.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c index 59ca2ee..372e969 100644 --- a/arch/x86/kvm/cpuid.c +++ b/arch/x86/kvm/cpuid.c @@ -599,7 +599,7 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function, entry->edx = 0; break; case 0x80000000: - entry->eax = min(entry->eax, 0x8000001a); + entry->eax = min(entry->eax, 0x8000001f); break; case 0x80000001: entry->edx &= kvm_cpuid_8000_0001_edx_x86_features; diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 1cd7c78..256c9df 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -5131,6 +5131,12 @@ static void svm_set_supported_cpuid(u32 func, struct kvm_cpuid_entry2 *entry) entry->edx |= SVM_FEATURE_NPT; break; + case 0x8000001F: + /* Support memory encryption cpuid if host supports it */ + if (boot_cpu_has(X86_FEATURE_SEV)) + cpuid(0x8000001f, &entry->eax, &entry->ebx, + &entry->ecx, &entry->edx); + } } -- 2.9.4