Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751463AbdILUIW (ORCPT ); Tue, 12 Sep 2017 16:08:22 -0400 Received: from mx2.suse.de ([195.135.220.15]:41744 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750949AbdILUIT (ORCPT ); Tue, 12 Sep 2017 16:08:19 -0400 Date: Tue, 12 Sep 2017 22:08:13 +0200 From: Borislav Petkov To: Brijesh Singh Cc: linux-kernel@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org, Thomas Gleixner , Joerg Roedel , "Michael S . Tsirkin" , Paolo Bonzini , =?utf-8?B?XCJSYWRpbSBLcsSNbcOhxZlcIg==?= , Tom Lendacky Subject: Re: [RFC Part2 PATCH v3 07/26] KVM: SVM: Add SEV feature definitions to KVM Message-ID: <20170912200813.acqyv5tfyt6jzswf@pd.tnic> References: <20170724200303.12197-1-brijesh.singh@amd.com> <20170724200303.12197-8-brijesh.singh@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170724200303.12197-8-brijesh.singh@amd.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1069 Lines: 34 On Mon, Jul 24, 2017 at 03:02:44PM -0500, Brijesh Singh wrote: > 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; > -- Reviewed-by: Borislav Petkov -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --