]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nSVM: Set the shadow root level to the TDP level for nested NPT
authorSean Christopherson <seanjc@google.com>
Fri, 5 Mar 2021 01:10:45 +0000 (17:10 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:42:27 +0000 (04:42 -0400)
commitea4a81125b33318e6f79655cfaa38a5055d32e73
treef3eff8d22f7550ba400972ea3dd443e17829f5ce
parent52183338c72607892440109900fe76a608b1004f
KVM: nSVM: Set the shadow root level to the TDP level for nested NPT

Override the shadow root level in the MMU context when configuring
NPT for shadowing nested NPT.  The level is always tied to the TDP level
of the host, not whatever level the guest happens to be using.

Fixes: dd82729d7a00 ("KVM: nSVM: Correctly set the shadow NPT root level in its MMU role")
Cc: stable@vger.kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210305011101.3597423-2-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c