• Avi Kivity's avatar
    KVM: MMU: Add unlikely() annotations to walk_addr_generic() · 781e0743
    Avi Kivity authored
    walk_addr_generic() is a hot path and is also hard for the cpu to predict -
    some of the parameters (fetch_fault in particular) vary wildly from
    invocation to invocation.
    
    Add unlikely() annotations where appropriate; all walk failures are
    considered unlikely, as are cases where we have to mark the accessed or
    dirty bit, as they are slow paths both in kvm and on real processors.
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    781e0743
paging_tmpl.h 21.8 KB