From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brijesh Singh Subject: Re: [Part2 PATCH v5 08/31] KVM: Introduce KVM_MEMORY_ENCRYPT_REGISTER_REGION ioctl Date: Wed, 4 Oct 2017 12:18:24 -0500 Message-ID: <128f8fd1-52e7-e9a7-5bb0-317540e2f449@amd.com> References: <20171004131412.13038-1-brijesh.singh@amd.com> <20171004131412.13038-9-brijesh.singh@amd.com> <20171004151932.ama7jg6jv5w65fan@pd.tnic> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: brijesh.singh@amd.com, x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Joerg Roedel , Tom Lendacky To: Borislav Petkov Return-path: In-Reply-To: <20171004151932.ama7jg6jv5w65fan@pd.tnic> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 10/04/2017 10:19 AM, Borislav Petkov wrote: >> +}; >> + >> +#define KVM_MEMORY_ENCRYPT_REGISTER_REGION _IOR(KVMIO, 0xbb,\ >> + struct kvm_enc_region) >> +#define KVM_MEMORY_ENCRYPT_UNREGISTER_REGION _IOR(KVMIO, 0xbc,\ >> + struct kvm_enc_region) > > Yuck, those are needlessly too long. They could be just as understandable if > they were called: > > #define KVM_MEM_ENC_REG_REGION _IOR(KVMIO, 0xbb, struct kvm_enc_region) > #define KVM_MEM_ENC_UNREG_REGION _IOR(KVMIO, 0xbc, struct kvm_enc_region) > > or so... I know, it'll need to change the qemu patches but it is more > compact this way, IMO, and you don't have to break the _IOR line. > Thanks for the patch Boris, I will take care of removing the wrapper from kvm_vm_ioctl_mem_enc_op(). As per shorting the name is concerned, if am open to suggestion. lets see if Paolo or Radim have any comments on naming. If not, then I will shorten the name in next rev. -Brijesh