]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit25a72d7b11d9c5404b817cf17179791d839fa9c6
treeb32e14dee11df1917f3934f30d004cdd096abd8b
parentf3d67a525485f5de2ca05a149b2c10f3ee3d2d46
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