]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Remove ple_window_actual_max
authorBabu Moger <babu.moger@amd.com>
Fri, 16 Mar 2018 20:37:23 +0000 (16:37 -0400)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 28 Mar 2018 20:47:06 +0000 (22:47 +0200)
commitfb8491032777f5c6d49e80d23fcef9cb76f79507
tree320e6c3f4fe3f0dbe2509cc81038d5aec3b9c825
parent1a92c9c913f0d7346608a0251f5ed44682ec90b4
KVM: VMX: Remove ple_window_actual_max

Get rid of ple_window_actual_max, because its benefits are really
minuscule and the logic is complicated.

The overflows(and underflow) are controlled in __ple_window_grow
and _ple_window_shrink respectively.

Suggested-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Babu Moger <babu.moger@amd.com>
[Fixed potential wraparound and change the max to UINT_MAX. - Radim]
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/vmx.c