Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753556AbdGXUGC (ORCPT ); Mon, 24 Jul 2017 16:06:02 -0400 Received: from mail-by2nam01on0070.outbound.protection.outlook.com ([104.47.34.70]:17488 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751753AbdGXUDx (ORCPT ); Mon, 24 Jul 2017 16:03:53 -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 07/26] KVM: SVM: Add SEV feature definitions to KVM Date: Mon, 24 Jul 2017 15:02:44 -0500 Message-Id: <20170724200303.12197-8-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: bf47782b-f3e3-4371-ef8e-08d4d2cf0df8 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: 1;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yP2XqjvwmmxEJcF5Bp4Gx+1gtifaJbiFAUZeYlU9ycJjiUUu6Ma6hGN8aV1bOVc3YrY5gQXZ6CEm2us7/ZH3XJ/Nt5KvD28L0mw2ZxK6sjKLOO5KH9B9LE0kNU/8JPHo4N/RwktHLbi7HcIH79/hoLyJ6GAsEnLlkVj8Ey67s+MMAZlKAFVbXyluPDJiDQyGcXeUqg0Vj8JGzgQndWsRALNhlLzRj9qux+ZZbuzW3xnBnBUvebgcE813o7bLaLTSmOT482n3toqwt5MMg7RwtGcBW8ySygF5vNsn3T4aKfE58Amqm2F0w1RccpWaAK9rUMdcYgyqX80xQ/N7Ossz3Z4YazNJVi+JC3Z6k7Rq8bLO4V8= X-Microsoft-Exchange-Diagnostics: 1;BY2PR12MB0145;20:ARNomsvX2iVL8YTpfg51wuV4eg6BjMb0NWrutHxphlzBXKJdLdflyppg8zyliDon9H+Y0pYinq4hK2GTkLmAfjNXry85ze7iDoypqaIc8Q36Eyp1gvsE9fap74hX/ReFOqHOn7go1ycGEWigZW1Bmq4cNv3/OQl+vUBB2cOvM2v9hicpgu0vSXZVKjKF73MT5NHUqHn1Pbh92Tu8keL+g1q5uCnRopLLEqXD58cQy3UFFiUUTSE/U9QhDTS5El4tl48usv0YtZQ+90n5HNcoFs4fbM+04k1lUEET5ij4+/jFTNsviozbVlbv7LBuqAkk3bOV/inVZfWZc2/3oO87xk/YtjwgcGjPKA/iejeS2Tvf/YDZ46+r3+Jdd0gO/qqw+dVimbL6ggQoyr0F2AZAihCnjEUtqBNvwyQvp8bLChP0g9O5ZZpXms3WXcck3arAUvCLIKz1PkWMuuGhNRCZLrJgmk2PJbdY7U9180GkKvywQampAo5iqPC/klHNXUYO 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:BDeN+Vz0SeTJKgkbbKM74onZlQbZJF6s9qY7SYSbxS?= =?us-ascii?Q?6uTqJSXvXPyENN+6IUvxWq9shKO6/1/LAQKsCopBe12Z984m8Bt0RAobWxP/?= =?us-ascii?Q?yHHYM6EnOf/D0EnB37NqKUr9f1mL2m+CkxcX/rYZk2IPIqzbfb+k5LY2qsKT?= =?us-ascii?Q?MS7xnAvhchYrtznbiv6miHohfHvWdUbZe5levyEtKohROgXw2qYEXozB09N1?= =?us-ascii?Q?G6ybeDVYH9b2Jjp7382f9xIeI8uLwY/BtwivbcoAplB6o7qANKkFL8O00MPm?= =?us-ascii?Q?MtovC87+Xv+aBSsP4x7DJl/BrKwPBV6Nx8pnRoyXf4qNeT9+ycO9sePCljYk?= =?us-ascii?Q?PeD+XSK0uO9qtKN/qLGRa27d/Pxs8l604DXs8J8pMqlRbS2kMF7Ov4DBsbno?= =?us-ascii?Q?LAQ7+pLHbRpoxVJL+Z9Jlc3+ZJ/Tw5znQ1EExB2ZVKOUrwMHONzuufPkkgve?= =?us-ascii?Q?LUnG5/Wt6vFNhUQ3yT1PGf2y2/xNgjBuXKrZXLDvLiDGUffnKepNLw7mz57j?= =?us-ascii?Q?JAqSPDV1m4VdvmCum2gX05QOATT63L13NMIIFuXSGJzfn1NPK5HmoHrRjjOQ?= =?us-ascii?Q?rsbVdaPwmeZLW2UUH2wHmmt4rEBj9BE/njJoTMlCR9TQg0DHRznsKsZ85iEG?= =?us-ascii?Q?PfkKpwm5oc1cCBD94nOzkHaJDPvKXy3bMTEcSG1estdntXM2kZ0IKRnQDQ14?= =?us-ascii?Q?cbqK0FPNnzCN1QFY3rC9nlLMALRIU92wX/9MHucdMOxihe5LNPAr8diYPzVC?= =?us-ascii?Q?KFwpAMexwhTYZ5uNNwBhQSBjnKldjn28rl+WF81QvHz/v47XcHr31EUP6hgv?= =?us-ascii?Q?vG5CzDjqJSRG/WltjymPvkiPQg6sKMlAOm07jPAB2wo1XWDlEf7uPO/GPyDC?= =?us-ascii?Q?ct1d2AXF76RsJFLQBuKX6dypY3+Ch3P0/x2JSKT2GpJabk+VRUoToYsMPP5C?= =?us-ascii?Q?AKGRexkTNZ6KGuLuyMN2RTnNh1icDNHSKdW/oR51DUNYW/ZYryScYH0OGFFR?= =?us-ascii?Q?6IwfoM91iU0EtiKU948YfHStYd9wduEQ5udHCvQMN8TufFvNoxa2z8jws0so?= =?us-ascii?Q?4VH2BbTyAGGGSNylSSLHEm55KklB12wfcV+4V3NIKDtKL652KUUnNMu0zWKw?= =?us-ascii?Q?0XAh+vE/DEgvaLyZSiyEV3diythDfmMOl6RyWFquIpY1rUNYam395FxwOWLH?= =?us-ascii?Q?bM7pwXW437zjyA8tr//UCLh0VXSydfyN/f?= 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)(575784001)(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:CgLGKIPCd+Z6g+l8u2d3C0yMWrwIZ/84I3h+kA3fy?= =?us-ascii?Q?EfrEaoAgpT0ccKsGkxINCrmY1pSqPvFP4x8H+FFHtSWthBdLNr8x9KYtm3uf?= =?us-ascii?Q?hhHwZaIId69zDuyOAFpHNUW/xtNdcaGh6Wid5zBg61atuUcrQqHifIfn1FUB?= =?us-ascii?Q?tTREdv/8K9Mo6S6sL3enZMxkvROaHrBnQR5XwTxNMyekfAZWQxeDyF4IvKEc?= =?us-ascii?Q?a/BxLMwsE4bRn9ZPMU8Y5N0bf2zezRylNvPjC3FapROXDYZOLwtLrXnG02GC?= =?us-ascii?Q?aCLVRSSoSZbB5rG+UushYP7vd7u0Ns0XRbXFoxfTg+nKGOroomDbeRX9nEsg?= =?us-ascii?Q?mYhUXiXFeKxhQ2NOAF8BL2NHinUvo6m0cP38rvfMN1z+tojLfPFujn59mw28?= =?us-ascii?Q?nPE0vQimETFINHkbPCV8idTsgZPqRrHxfBSJsZnXQ8P2aNhOXDV2gn9Lhtpj?= =?us-ascii?Q?qpD8H74A6en+bzMqQPZOjgFaD2byhNVSbY19E1iIzSjIfg30W80jrauAdJ7P?= =?us-ascii?Q?26nL2zVGPdTJLZUZKeHlYmzHP2TGB0cqyvBKAMhYvfVeMjN1/ZEvp5XZa+Am?= =?us-ascii?Q?1pFZ1Y/g2z6148d5NqfO/j+G1BSrHeqPNcoqRSiwTtKcx4y5PInn8xEcctYT?= =?us-ascii?Q?9W7eHnqasgzVsAQ8GW+YvZGUKxdEh/m5JwVgLcSBdy5lwUdy7mjAXFY/tjY6?= =?us-ascii?Q?4iD7/TCoBzyxFzVKgxcKr0B93IrYscy/sn4kdRZ9u/UDi0H+tNJy5XJFwwAx?= =?us-ascii?Q?YcKi7K7G/PX5nT8GYYC8DJCTAVehU0r5quTRhPAhNIjKu06PUa4yfJ5wdEBd?= =?us-ascii?Q?5p4UST+n5kqUI7YTq6QBk7syGvuDNu+tnaPpsvm1ykr+99RW8ZHcQJAOLY/2?= =?us-ascii?Q?tXGkvKzDB/UiHmLwscK7hFDuIWd4mULamamcndUjGH/JjtYGEQp0542TULEM?= =?us-ascii?Q?imwtnWWhxOeJbMNmI36kLc0NZHyuPiRElDb22krl5MT0dLiFpHADcx6ZER3H?= =?us-ascii?Q?syxpEH6UIIax/LGgaZaeprd3SkNEt+EV8+6ejp1gc4QeTHq56UhMiLfiF3P5?= =?us-ascii?Q?4izFCY7yqVRJCdCljd8pwoFgROufCD5ZJbkspYlEBG5exW9Y9oU0GnpUNmMb?= =?us-ascii?Q?9YwIDDTjrmfThEC2OSwIM8TEjXh0x2iX5nHB+wx8Pmr2Qet+gM9YRUdypqGM?= =?us-ascii?Q?gp1QnloKW05Q757EbscJgVxzSiTbkCoRfhEBhj3RGgZMSrGM2jezJjxDtxCN?= =?us-ascii?Q?G95bOFsz1Z+hOWRyxSeVps3dIhhFHPl5olHtN4WX6CFwBTWpwvN/0awW+TS2?= =?us-ascii?B?dz09?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR12MB0145;6:sMQ5nEK1kgLNN+fDmtNI2maaaf3SEo1BwteUCrhsy9?= =?us-ascii?Q?DMyZHEqw4hdoTJKveLUeKKlJmz5AOkvz9DSahIWPrhA1hE9zOW80YT14lJDv?= =?us-ascii?Q?OaY3ifrWF+RxlBywBqHWp12wkOEyqUEKuzh/TujixkZEai4UVxhVdx0CGm+6?= =?us-ascii?Q?JBs2j/PkC3gdB9VnIUtWGsj8BGqnrrs6GKnVAkddOoPE9UvlJNw49+GHkBOl?= =?us-ascii?Q?fBQkm9rKRE3zRjN+StZ3gV4VlPGbiMg2NT1xskZawjCWW1ca6XedjYXXzaGM?= =?us-ascii?Q?Yykf4u86V38n5iVwKnpb/HFzrm7baO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WWFPkRjuFKtesk/5H9ObPm6yGgOJ6FDDp9yZqEu4onxUMCV2QbLGHtw4ANlrxagII5Q9LjQKaM7gjxvSECTDMDDzvcSaOk7BCBqRM/h7QYst/YCdCNlaHUSFpG75TRHCw131YWTsXnbIDNGTdNl2GYUopznXUHiXPJutkAog5QOC8e0XjjD2d6uLgnZIfPblBOSSddMlSqrDa0pmLt2ijOdy3FXlSlSwenjUoQykcAZLW66nU9QMaytFPWSRRw8bVVWUhB3vP3/ovy6UPXIk8RVA1WzAByhQcT6wLB5iEtc1CksXISbh89oBhMjQLWITN1gP5Ys5bPY39VhAuc6s/civJehnju;24:dlalk8HcaXHhqQML1xjL95qGfEYzABe87YGnAzyCv+mXs6VN2SKcUC9W1Pb9TSQmhNgPE/XlFnWNApkTIyYsflmmSh3eFNZdhnamzR4VazI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BY2PR12MB0145;7:IPZHkiTEckien174gRIdwb+hVNfh+o/VpnDMPuv44fyMwxR69ELuZZd1k6rLyiWVQdytRViOccGP3t5xEIm8kcGcrfTZwmgxzaRNfW8MhouyKW4aBCRaU3NpncJZaIAGOeJCYFeFeLMTTtRpX/34fjogzD5HaalavDJ/2h4L3gHUR8kQALnXxauxF7XduFschFAK3weuJy6N9H+BChX94b7cW0FuorbEe/BmCEAnHpKjo4Z3kPi7fAKgl21I1RxjnBDJg1P+e+7et0ktZWFAcohzoe5BtWBwGW9rXm8558f3lLKEOv+dH/r1f2tLI+ar5NiLq1pfVzJTK0262NP/GKHnFDSj6qrEGq4aOh1gUPj1esCVb/7znvuFAo+/0tHlVmzapYG5HtnGt+B+IfrkcXWE4XIbac5nmWHz+vStQyADxvFeS8hvX9Sc3K/GhR8i1VZpDYr3S7b9fTFeACLUFYEVQj9W9hmFNSUKSRhh9ELOfAl4mszwztWbPRB0RlFwFDn44WDcEtnfH65SvL6Jui/S2g9Smr99uhudqxp9pyoOdRdhly66u8N6020Khs/YYB3X7CRxuy6puqpZkzpRulhaHNx3Y7dT01GnGt2q/xe+ZeT9+cB1vwGkyfsW/cQQcBCXkmMe0Qx6YGik415bPmrAYxpD0gIvAR+rzHiKCk4M2ZgEgCPLprH5EeUaWv/j3JmNFW21shCtVrzCHLtuIO9zLbs3w1jz/ouMAhavMBQfB5UJYFYbujdRI7u8u5KRkQH3T86y+wECqLEPlNEktRdlg3jvXf+okC3ok5atlxE= X-Microsoft-Exchange-Diagnostics: 1;BY2PR12MB0145;20:3XgBditQ97/MqYeeQ/FkqRXD1oU7vmka7Vfvhpo0c6c2Inq2EISAhog9OZ8rF9vsuwRNKuByD08hMEQ4HV81UPHkfan3IF6me/4Gu+tvHQx0Ki5xfM8cnQ7X1cCMC5RfvGO6oF3fG6TzIW12pLYeTVig4fgcgehENhJt65PGyx0zC5r3rIHNoH3YetXjJJgiFxAhRECyC7lPlcQsULjrbQPybgkwcwbbWNpUlNlBiJ6Gjs8PPGKPW8EgsjGsYnWN X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2017 20:03:29.1032 (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: 789 Lines: 25 From: Tom Lendacky Define the SEV enable bit for the VMCB control structure. The hypervisor will use this bit to enable SEV in the guest. Signed-off-by: Tom Lendacky Signed-off-by: Brijesh Singh --- arch/x86/include/asm/svm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/svm.h b/arch/x86/include/asm/svm.h index a3d9e0b..0be01f9 100644 --- a/arch/x86/include/asm/svm.h +++ b/arch/x86/include/asm/svm.h @@ -140,6 +140,7 @@ struct __attribute__ ((__packed__)) vmcb_control_area { #define SVM_VM_CR_SVM_DIS_MASK 0x0010ULL #define SVM_NESTED_CTL_NP_ENABLE BIT(0) +#define SVM_NESTED_CTL_SEV_ENABLE BIT(1) struct __attribute__ ((__packed__)) vmcb_seg { u16 selector; -- 2.9.4