]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Add unlikely() annotations to walk_addr_generic()
authorAvi Kivity <avi@redhat.com>
Sun, 24 Apr 2011 09:25:50 +0000 (12:25 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 22 May 2011 12:39:46 +0000 (08:39 -0400)
commit3a66d800b5d6bd4d9419ee9de82ce43f8dd8536d
tree549ba079bf78ce53ee93852bd1ae36f810082bc0
parent160b6fbaa0a9ce2cadf44cdb7e5d95c21e81ae87
KVM: MMU: Add unlikely() annotations to walk_addr_generic()

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: Avi Kivity <avi@redhat.com>
arch/x86/kvm/paging_tmpl.h