summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2021-03-04 18:16:37 -0800
committerPaolo Bonzini <pbonzini@redhat.com>2021-03-05 08:33:15 -0500
commit99840a75454b66d69d2a450ab04e6438d75eba48 (patch)
tree572c8e408b2e4791aaca75e5bea734566e52c194 /arch/x86/kvm/x86.c
parentbeda430177f56656e7980dcce93456ffaa35676b (diff)
downloadlwn-99840a75454b66d69d2a450ab04e6438d75eba48.tar.gz
lwn-99840a75454b66d69d2a450ab04e6438d75eba48.zip
KVM: SVM: Connect 'npt' module param to KVM's internal 'npt_enabled'
Directly connect the 'npt' param to the 'npt_enabled' variable so that runtime adjustments to npt_enabled are reflected in sysfs. Move the !PAE restriction to a runtime check to ensure NPT is forced off if the host is using 2-level paging, and add a comment explicitly stating why NPT requires a 64-bit kernel or a kernel with PAE enabled. Opportunistically switch the param to octal permissions. Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20210305021637.3768573-1-seanjc@google.com> Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
0 files changed, 0 insertions, 0 deletions