lkml.org 
[lkml]   [2018]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v2 6/6] KVM: nVMX: optimize prepare_vmcs02{,_full} for Enlightened VMCS case
    From
    Date
    On 21/06/2018 14:30, Vitaly Kuznetsov wrote:
    > +static __always_inline bool evmcs_needs_write(struct vcpu_vmx *vmx,
    > + u16 clean_field)
    > +{
    > + if (vmx->nested.dirty_vmcs12)
    > + return true;

    Why is this needed? If it weren't for it, you could pass hv_evmcs
    directly to evmcs_needs_write, which would simplify the code a bit in
    the caller.

    Paolo

    > + return !(vmx->nested.hv_evmcs->hv_clean_fields & clean_field);

    \
     
     \ /
      Last update: 2018-07-24 19:09    [W:5.688 / U:0.104 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site