diff options
author | Mohammed Gamal <mgamal@redhat.com> | 2020-09-03 16:11:22 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-09-23 15:47:24 +0200 |
commit | b96e6506c2ea7c8e3ef0860169b6d0ba2f1aca9f (patch) | |
tree | 6927cdc044f7b7ae2ff622019e367181bc9ee760 /arch/x86/kvm/x86.c | |
parent | Merge tag 'kvm-s390-master-5.9-1' of git://git.kernel.org/pub/scm/linux/kerne... (diff) | |
download | linux-b96e6506c2ea7c8e3ef0860169b6d0ba2f1aca9f.tar.xz linux-b96e6506c2ea7c8e3ef0860169b6d0ba2f1aca9f.zip |
KVM: x86: VMX: Make smaller physical guest address space support user-configurable
This patch exposes allow_smaller_maxphyaddr to the user as a module parameter.
Since smaller physical address spaces are only supported on VMX, the
parameter is only exposed in the kvm_intel module.
For now disable support by default, and let the user decide if they want
to enable it.
Modifications to VMX page fault and EPT violation handling will depend
on whether that parameter is enabled.
Signed-off-by: Mohammed Gamal <mgamal@redhat.com>
Message-Id: <20200903141122.72908-1-mgamal@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index e3de0fe5af37..67362607e396 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -188,7 +188,7 @@ static struct kvm_shared_msrs __percpu *shared_msrs; u64 __read_mostly host_efer; EXPORT_SYMBOL_GPL(host_efer); -bool __read_mostly allow_smaller_maxphyaddr; +bool __read_mostly allow_smaller_maxphyaddr = 0; EXPORT_SYMBOL_GPL(allow_smaller_maxphyaddr); static u64 __read_mostly host_xss; |