lkml.org 
[lkml]   [2020]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 13/24] KVM: nSVM: do not reload pause filter fields from VMCB
    Date
    These fields do not change from VMRUN to VMEXIT; there is no need
    to reload them on nested VMEXIT.

    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    ---
    arch/x86/kvm/svm/nested.c | 5 -----
    1 file changed, 5 deletions(-)

    diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c
    index 9999bce9adcf..b6a1e1ff271e 100644
    --- a/arch/x86/kvm/svm/nested.c
    +++ b/arch/x86/kvm/svm/nested.c
    @@ -533,11 +533,6 @@ int nested_svm_vmexit(struct vcpu_svm *svm)
    nested_vmcb->control.event_inj = 0;
    nested_vmcb->control.event_inj_err = 0;

    - nested_vmcb->control.pause_filter_count =
    - svm->vmcb->control.pause_filter_count;
    - nested_vmcb->control.pause_filter_thresh =
    - svm->vmcb->control.pause_filter_thresh;
    -
    /* We always set V_INTR_MASKING and remember the old value in hflags */
    if (!(svm->vcpu.arch.hflags & HF_VINTR_MASK))
    nested_vmcb->control.int_ctl &= ~V_INTR_MASKING_MASK;
    --
    2.18.2

    \
     
     \ /
      Last update: 2020-05-20 19:23    [W:4.220 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site