[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Yie0EonK6sW2gBkm@google.com>
Date: Tue, 8 Mar 2022 19:52:50 +0000
From: Sean Christopherson <seanjc@...gle.com>
To: Paolo Bonzini <pbonzini@...hat.com>
Cc: linux-kernel@...r.kernel.org, kvm@...r.kernel.org,
dmatlack@...gle.com
Subject: Re: [PATCH v2 23/25] KVM: x86/mmu: replace direct_map with
root_role.direct
On Mon, Feb 21, 2022, Paolo Bonzini wrote:
> direct_map is always equal to the direct field of the root page's role:
>
> - for shadow paging, direct_map is true if CR0.PG=0 and root_role.direct is
> copied from cpu_mode.base.direct
>
> - for TDP, it is always true and root_role.direct is also always true
>
> - for shadow EPT, it is always false and root_role.direct is also always
Uber nit, s/EPT/TDP to cover shadow NPT, which at this point we are 100% sure is
indirect ;-)
> false
>
> Signed-off-by: Paolo Bonzini <pbonzini@...hat.com>
Reviewed-by: Sean Christopherson <seanjc@...gle.com>
Powered by blists - more mailing lists