lkml.org 
[lkml]   [2018]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 3/5] KVM: VMX: Bring the common code to header file
2018-03-16 16:37-0400, Babu Moger:
> This patch brings some of the code from vmx to x86.h header file. Now, we
> can share this code between vmx and svm. Modified couple functions to make
> it common.
>
> Signed-off-by: Babu Moger <babu.moger@amd.com>
> ---
> diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
> @@ -6683,8 +6652,9 @@ static void shrink_ple_window(struct kvm_vcpu *vcpu)
> struct vcpu_vmx *vmx = to_vmx(vcpu);
> int old = vmx->ple_window;
>
> - vmx->ple_window = __shrink_ple_window(old,
> - ple_window_shrink, ple_window);
> + vmx->ple_window = __shrink_ple_window(old, ple_window,
> + ple_window_shrink,
> + 0);

I have preserved the old minumum (ple_window, so we could't get
uselessly small values).

\
 
 \ /
  Last update: 2018-03-28 22:27    [W:0.076 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site