Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751405AbdILVIg (ORCPT ); Tue, 12 Sep 2017 17:08:36 -0400 Received: from mx2.suse.de ([195.135.220.15]:46056 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750962AbdILVIf (ORCPT ); Tue, 12 Sep 2017 17:08:35 -0400 Date: Tue, 12 Sep 2017 23:08:29 +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 10/26] KVM: Introduce KVM_MEMORY_ENCRYPT_REGISTER/UNREGISTER_RAM ioctl Message-ID: <20170912210829.cgkuywukf234duk7@pd.tnic> References: <20170724200303.12197-1-brijesh.singh@amd.com> <20170724200303.12197-11-brijesh.singh@amd.com> <20170912202940.qmq5oq2cx2cmhwqg@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: 893 Lines: 21 On Tue, Sep 12, 2017 at 03:50:55PM -0500, Brijesh Singh wrote: > Sure, I can do that. In one of the feedback Paolo recommended > KVM_MEMORY_ENCRYPT_* ioctl name hence I tried to stick with the same name > for structure. I am flexible to use 'struct enc_region' but I personally > prefer to keep "mem" somewhere in the structure naming to indicate its for > *memory* encryption -- maybe struct kvm_mem_enc_region. I'd drop the "kvm_" prefix: struct mem_enc_region; But I sense we're bikeshedding here and I'd leave it up to you guys. My only intent was to shorten those so that they fit on a single line. In general, I like using small struct names which do not look like sentences and which give you code that reads quickly, at a glance. But this is just me. -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --