diff options
author | Sean Christopherson <[email protected]> | 2021-03-04 18:16:37 -0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2021-03-05 08:33:15 -0500 |
commit | 99840a75454b66d69d2a450ab04e6438d75eba48 (patch) | |
tree | 572c8e408b2e4791aaca75e5bea734566e52c194 /lib/mpi/mpiutil.c | |
parent | beda430177f56656e7980dcce93456ffaa35676b (diff) |
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 <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Vitaly Kuznetsov <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions