• Wei Huang's avatar
    KVM: SVM: Add 5-level page table support for SVM · 43e540cc
    Wei Huang authored
    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: default avatarWei Huang <wei.huang2@amd.com>
    Message-Id: <20210818165549.3771014-4-wei.huang2@amd.com>
    [Tweak condition as suggested by Sean. - Paolo]
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    43e540cc
svm.c 125 KB