Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754340AbdIEWGn (ORCPT ); Tue, 5 Sep 2017 18:06:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:38489 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754106AbdIEWGk (ORCPT ); Tue, 5 Sep 2017 18:06:40 -0400 Date: Wed, 6 Sep 2017 00:06:25 +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 , Radim =?utf-8?B?S3LEjW3DocWZ?= , Tom Lendacky Subject: Re: [RFC Part2 PATCH v3 01/26] Documentation/virtual/kvm: Add AMD Secure Encrypted Virtualization (SEV) Message-ID: <20170905220625.oob7bzl6mzgtljpr@pd.tnic> References: <20170724200303.12197-1-brijesh.singh@amd.com> <20170724200303.12197-2-brijesh.singh@amd.com> <20170905172130.24fgl6xsrfovsbsp@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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: 876 Lines: 30 On Tue, Sep 05, 2017 at 04:39:14PM -0500, Brijesh Singh wrote: > I was trying map with SEV firmware spec command names but I see your > point and will call it "KVM_SEV_GET_GUEST_STATUS". > > > > > + > > > +enum { > > > + /* guest state is not known */ > > > + SEV_STATE_INVALID = 0; > > > > not known or invalid? > > > Again, was trying to follow the spec naming convention but I can go > with UNKNOWN .. Yeah, but they will now differ from the spec, which weakens my point considerably. I guess using KVM_SEV_ everywhere is the optimal solution for the commands and the SEV_STATE_ for the states. Because having them differ from the spec - esp. for the sake of some more precise naming - is worse. IMO, of course. -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --