From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07AC2C433F5 for ; Wed, 29 Sep 2021 11:13:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D30236128C for ; Wed, 29 Sep 2021 11:13:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244829AbhI2LPI (ORCPT ); Wed, 29 Sep 2021 07:15:08 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:44866 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243377AbhI2LPH (ORCPT ); Wed, 29 Sep 2021 07:15:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632914006; 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=dTZq+ux4mB9YNHTA5OTzVEdASfmrzoHTVqIYcJ0NyoY=; b=C9vnBjKPJrEM7llD7zAyOTUdS0k3FPjeKsfQeEgoL+k+HgM8RQS3vi6VJEKMODvRD8BBQg 84DANab/ecUPzIlkt5uQV2I/qhpKN3BdZFbe3bnrCkir7NDo1cBKyQw0A7Kujp6v+Y0aUg 0+2GmGD8vKwJuz4khtPbgo54lmRgkFk= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-318-LweKIMcoNhGFh3TMouD4qg-1; Wed, 29 Sep 2021 07:13:25 -0400 X-MC-Unique: LweKIMcoNhGFh3TMouD4qg-1 Received: by mail-ed1-f71.google.com with SMTP id ec14-20020a0564020d4e00b003cf5630c190so2062663edb.3 for ; Wed, 29 Sep 2021 04:13:24 -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=dTZq+ux4mB9YNHTA5OTzVEdASfmrzoHTVqIYcJ0NyoY=; b=4OG8DNJcPwaGJYGa+g5lwAjRM3rUl6W0r4yVG+bMh01UzqXnuAi0B00rZCDtjw5YFM OdROu/fBFcmJuGlW/9ISCzXXYhbUrABbzWUFd5xMo9/PjqFF99X6B/0hGeFxoS5qNqBn b5m9yES7KTAcHAi4kXBu93sb64HOT/JfKVPlbTe5LPjrZebayY3Euij3i3bxGJ6h9kAc DXI6iupuc+wV1nBXbQVOU/jx3vq/mfyZa78CGuHkcRmX4jHStBhNFmJm2mG9xgWNB0An VbtHGVFZNs8UmBxynk5MJ4169BPR32frT0o87hZp0gfhH4nKR0ta95ICFY8BPH4nv09i Zhag== X-Gm-Message-State: AOAM530MF4BWrCrOo/ga7VDyrrEtrkC50QUcydTVI57HoWO/UvFvo1sq 5jNOX1zCYErgVjD2D6JAocrstwy9P+xiqYBfghpMw8GPpFCRvmvTX7a1P2tRJfA4yFf5IJhrYBk FSb+Ec+vCekDus1A22WtO38qA X-Received: by 2002:a17:906:3157:: with SMTP id e23mr13304317eje.29.1632914003982; Wed, 29 Sep 2021 04:13:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJ8c5/66N3weJQN+Q75ZY2UDR73SjqQypZMhax7EeuFS93w2FyUhjDjm1n8+TpHXC55CuSLw== X-Received: by 2002:a17:906:3157:: with SMTP id e23mr13304286eje.29.1632914003709; Wed, 29 Sep 2021 04:13:23 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id c10sm1180946eje.37.2021.09.29.04.13.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Sep 2021 04:13:23 -0700 (PDT) Message-ID: <9aec9f47-3390-de0d-e125-c7cef14df894@redhat.com> Date: Wed, 29 Sep 2021 13:13:21 +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 PATCH 2/3] nSVM: introduce smv->nested.save to cache save area fields Content-Language: en-US To: Sean Christopherson Cc: Maxim Levitsky , Emanuele Giuseppe Esposito , kvm@vger.kernel.org, Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org References: <20210903102039.55422-1-eesposit@redhat.com> <20210903102039.55422-3-eesposit@redhat.com> <82acae8f-6b27-928f-0c00-1df8fc9d26b8@redhat.com> From: Paolo Bonzini In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29/09/21 00:23, Sean Christopherson wrote: > On a related topic, this would be a good opportunity to resolve the naming > discrepancies between VMX and SVM. VMX generally refers to vmcs12 as KVM's copy > of L1's VMCS, whereas SVM generally refers to vmcb12 as the "direct" mapping of > L1's VMCB. I'd prefer to go with VMX's terminology, i.e. rework nSVM to refer to > the copy as vmcb12, but I'm more than a bit biased since I've spent so much time > in nVMX, I agree, and I think Emanuele's patches are a step in the right direction. Once we ensure that all state in svm->nested is cached vmcb12 content, we can get rid of vmcb12 pointers in the functions. Paolo