KVM: x86: VMX: Make smaller physical guest address space support user-configurable
authorMohammed Gamal <mgamal@redhat.com>
Thu, 3 Sep 2020 14:11:22 +0000 (16:11 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 23 Sep 2020 13:47:24 +0000 (09:47 -0400)
commitb96e6506c2ea7c8e3ef0860169b6d0ba2f1aca9f
tree6927cdc044f7b7ae2ff622019e367181bc9ee760
parent32251b07d532174d66941488c112ec046f646157
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>
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/vmx/vmx.h
arch/x86/kvm/x86.c