]> 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)
commit28999b1b9071594abb0f57e119b338706caffa4b
tree549ba079bf78ce53ee93852bd1ae36f810082bc0
parent48102c2e2fb82273549a069ee23899b93fec653e
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