]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Add 5-level page table support for SVM
authorWei Huang <wei.huang2@amd.com>
Wed, 18 Aug 2021 16:55:49 +0000 (11:55 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 20 Aug 2021 20:07:56 +0000 (16:07 -0400)
commitb6764a6acd50779f67e1340bdf3bf0e99fa9658a
treef847e57ddee4c8bd6ee674f50ecb13e5f190123f
parentdccabee0c73d19998ec41a7ffc4a308f06a509a6
KVM: SVM: Add 5-level page table support for SVM

When the 5-level page table is enabled on host OS, the nested page table
for guest VMs must use 5-level as well. Update get_npt_level() function
to reflect this requirement. In the meanwhile, remove the code that
prevents kvm-amd driver from being loaded when 5-level page table is
detected.

Signed-off-by: Wei Huang <wei.huang2@amd.com>
Message-Id: <20210818165549.3771014-4-wei.huang2@amd.com>
[Tweak condition as suggested by Sean. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c