]> 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)
commit23bca3ec29ebe1fa5ce55b251ba0a4718827c1b3
treec16fcc40451936520f306f9221854afae93b47a1
parent45ed2b9ade40192ced87632df500ad61f490bf75
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