KVM: VMX: Don't expose PLE enable if there is no hardware support
authorWanpeng Li <wanpeng.li@hotmail.com>
Fri, 29 Sep 2017 01:06:24 +0000 (18:06 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 Oct 2017 12:01:50 +0000 (14:01 +0200)
commit0f107682cb0398265d80237c353a6fa93161d219
treeb32e14dee11df1917f3934f30d004cdd096abd8b
parent8a60aea62100c79fb5d151a1e261f11534c3dbff
KVM: VMX: Don't expose PLE enable if there is no hardware support

KVM doesn't expose the PLE capability to the L1 hypervisor, however,
ple_window still shows the default value on L1 hypervisor. This patch
fixes it by clearing all the PLE related module parameter if there is
no PLE capability.

Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/vmx.c