Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp729452pxb; Thu, 21 Oct 2021 08:24:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwH9hTdQLvvjhEEFf2JSIyR7huSynPP7KaSMrXUyEep1f8jT8RbUqAtENqF2XyBn+/KXwu9 X-Received: by 2002:aa7:8198:0:b0:44b:e191:7058 with SMTP id g24-20020aa78198000000b0044be1917058mr6196388pfi.39.1634829853606; Thu, 21 Oct 2021 08:24:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634829853; cv=none; d=google.com; s=arc-20160816; b=Ooug0+Ka7GYw0QwsZRYCIXo0VAfodW+AuwmcTMu4vvQc9TDqpwUEkbsyhD/ec/+u2X soi53rPuI1DuF9WuUil5xFvlZmCD/BzBmI4XbPiAOiJO38WMJcJRwt4ilyAbxFDzBtp7 9gwWeQD5MZhod81Fohep0uU4IvEHhLZJnn1k8fPRF037ciOGroLdqVBaVLf96ztTqH/w qeoIO0kH/MpeH5PJmsX8Y5G13H2VePElmOcw3JdDUp7tyiBUPdrI2B82xSHR3styEXLS bdshPQUCiD3K3gRozhWT5E8Ak5lH+dIhNMKCyXdR1aKQuNT3NMrQVqz0Fsd2JUjF7Utb xj0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=pB0OKk0sXihZTGW0ponhLiCPuMdm6BJGDBBh4jppD/I=; b=GV6xszwXbtzUpb6ZLmGm49EPGg6HxpFs/6DmIKuiAzq/iySVftDbYWbGD3fqfjv2mu XZ9N86MFV8QOrhF/paQnMSbXvx712yBuDWhJGL4NEaC7al63ymLzBCzraamrJwbrlxih EE7J+xFG+sC8q2dA6cCGE7Bujuafit0tC9/INJVbVAjp2gj1oqSS6WlGz8seEcGK+YNU jzq+4dV3K/H8G9uL1OzyVRu1Og/j3EGccKgvmPBSjgvJOQNWH9LlitqM5hs33L+C2cdb aD+gYtGptlxMlCbh4J3Hkw+7LF/OPXGzjZjBkNa0Z2hwwd9sITmUgc+tyhtZW54Vq3Tc qGtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MWs6+Z1l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q2si7301397pgb.70.2021.10.21.08.23.59; Thu, 21 Oct 2021 08:24:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MWs6+Z1l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231788AbhJUPZK (ORCPT + 99 others); Thu, 21 Oct 2021 11:25:10 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:56185 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231533AbhJUPZI (ORCPT ); Thu, 21 Oct 2021 11:25:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634829771; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pB0OKk0sXihZTGW0ponhLiCPuMdm6BJGDBBh4jppD/I=; b=MWs6+Z1lBUU9D7EqZqt2r3z4J+8HqRTe91zSkMHMcFOcY3Ne2JuLbQccHaS/Z+arXbJNrz HOVbtZxCXVXMTr2Nvb/7suDYec/eZVvoC2Yf4FuLGDqv3bpv6kpkyrTAuqins4sI+m+CuB 5fuXq6145tW2ga3UNI3nY8HD/040efo= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-409-hvlpMy7PMN660PQp7qQLEQ-1; Thu, 21 Oct 2021 11:22:50 -0400 X-MC-Unique: hvlpMy7PMN660PQp7qQLEQ-1 Received: by mail-ed1-f69.google.com with SMTP id p20-20020a50cd94000000b003db23619472so680301edi.19 for ; Thu, 21 Oct 2021 08:22:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=pB0OKk0sXihZTGW0ponhLiCPuMdm6BJGDBBh4jppD/I=; b=yuyEZtg5Ig2pAd4n33iT5Lw46IdP97zajexEwDUUuDS5UAhUNBp73Xq6boIvuqff8g Q2LinIbQhhG5FDiQzvfeWkHe+6vk/h+oZLqAbTCchlC+pvuoRSDwWEYgcldmf03UMcGN g5NCS3Ra78eekFx/5nmvUTTQm5dXlj58Ux7IQ5wIH+tlkTxCLlxGky3hUDik2W04YOou XdG+HlT4ZRQKKKk5wfnM0RXiXkcn3DXiwBwkORIuPjiF3RmqChwD8QYmqBL0PlrWvE5f QHWXhxU86avdO4EdFP7BBPpwAUKuKFwIIa5oKF7lMul6rdE4l9AkrI5CrLT0gHnGo2T1 L6aA== X-Gm-Message-State: AOAM5333D/s6lV5C+9I28WhLklbuiCq5++r8qRzuFSuZzuBVHBitKmsu UaS6A7Nh7BYDb4qj6leVxnx+SByt9Dk5lz4e7uM1sqtDabvnm45sCq3KEFddVJs+qyE6dDepPPR k61xyiP+mYNcU/+OnfJ3NWol4 X-Received: by 2002:a05:6402:22d6:: with SMTP id dm22mr8188887edb.67.1634829769338; Thu, 21 Oct 2021 08:22:49 -0700 (PDT) X-Received: by 2002:a05:6402:22d6:: with SMTP id dm22mr8188866edb.67.1634829769164; Thu, 21 Oct 2021 08:22:49 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:63a7:c72e:ea0e:6045? ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.gmail.com with ESMTPSA id c8sm2772289edt.55.2021.10.21.08.22.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Oct 2021 08:22:48 -0700 (PDT) Message-ID: <7920a4e5-edb4-504c-a30b-7410e425eb14@redhat.com> Date: Thu, 21 Oct 2021 17:22:45 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [RFC 02/16] KVM: selftests: add hooks for managing encrypted guest memory Content-Language: en-US To: Michael Roth , Krish Sadhukhan Cc: linux-kselftest@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, Nathan Tempelman , Marc Orr , Steve Rutherford , Sean Christopherson , Mingwei Zhang , Brijesh Singh , Tom Lendacky , Varad Gautam , Shuah Khan , Vitaly Kuznetsov , David Woodhouse , Ricardo Koller , Jim Mattson , Wanpeng Li , Joerg Roedel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" References: <20211005234459.430873-1-michael.roth@amd.com> <20211005234459.430873-3-michael.roth@amd.com> <6b8e4fb7-fb96-bc3a-dc46-70d9f07d3c8d@oracle.com> <20211013150719.mnde2lw6ffks7pm4@amd.com> From: Paolo Bonzini In-Reply-To: <20211013150719.mnde2lw6ffks7pm4@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/10/21 17:07, Michael Roth wrote: >> >> For readability, it's probably better to adopt a standard naming convention >> for structures, members and  functions ?  For example, >> >>         encrypted_phy_pages    ->     enc_phy_pages >> >>         struct vm_memcrypt  {    ->    struct vm_mem_enc { >> >>         struct vm_memcrypt memcrypt    ->    struct vm_mem_enc  mem_enc >> >>         vm_get_encrypted_phy_pages()    -> vm_get_enc_phy_pages >> >> >> > Makes sense, I will use this naming convention for the next spin. And again I liked yours more. :) Paolo