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)
commit18abdc3425aa546424672d3b1f932ecc55132368
tree320e6c3f4fe3f0dbe2509cc81038d5aec3b9c825
parent7fbc85a5fb2b018d7030cba53f4c42ab90304acd
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