]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Enhance comments for MMU roles and nested transition trickiness
authorSean Christopherson <seanjc@google.com>
Tue, 22 Jun 2021 17:57:34 +0000 (10:57 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Jun 2021 22:00:47 +0000 (18:00 -0400)
commit23db503b5eddb5f03061fffdfb610fab88456de6
treec16fcc40451936520f306f9221854afae93b47a1
parent623d72f8367acd7d461c5bf58f5a88c21422bcb7
KVM: x86: Enhance comments for MMU roles and nested transition trickiness

Expand the comments for the MMU roles.  The interactions with gfn_track
PGD reuse in particular are hairy.

Regarding PGD reuse, add comments in the nested virtualization flows to
call out why kvm_init_mmu() is unconditionally called even when nested
TDP is used.

Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210622175739.3610207-50-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm/nested.c
arch/x86/kvm/vmx/nested.c