From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752157AbdI3Its (ORCPT ); Sat, 30 Sep 2017 04:49:48 -0400 Received: from mx2.suse.de ([195.135.220.15]:34358 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750968AbdI3Itq (ORCPT ); Sat, 30 Sep 2017 04:49:46 -0400 Date: Sat, 30 Sep 2017 10:49:34 +0200 From: Borislav Petkov To: Brijesh Singh Cc: Tom Lendacky , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andy Lutomirski , linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [Part1 PATCH v5.1 02/17] x86/mm: Add Secure Encrypted Virtualization (SEV) support Message-ID: <20170930084934.lmobbznfaompat2q@pd.tnic> References: <20170928090242.ber7gynwaldinafa@pd.tnic> <20170929212747.3324-1-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: <20170929212747.3324-1-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 On Fri, Sep 29, 2017 at 04:27:47PM -0500, Brijesh Singh wrote: > From: Tom Lendacky > > Provide support for Secure Encrypted Virtualization (SEV). This initial > support defines a flag that is used by the kernel to determine if it is > running with SEV active. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: Borislav Petkov > Cc: Andy Lutomirski > Cc: linux-kernel@vger.kernel.org > Cc: x86@kernel.org > Signed-off-by: Tom Lendacky > Signed-off-by: Brijesh Singh > --- > > Hi Boris, > > Similar to the sme_me_mask, sev_enabled must live in .data section otherwise it > will get zero'ed in clear_bss() and we will loose the value. I have encountered > this issue when booting SEV guest using qemu's -kernel option. Ah, good catch. > I have removed your R-b since was not sure if you are still okay with the change. Sure, looks good still. Reviewed-by: Borislav Petkov -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --