]> Pileus Git - ~andy/linux/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)
commit781e0743af3c5ba356d55bc60df59f2dded1e938
tree549ba079bf78ce53ee93852bd1ae36f810082bc0
parent62aaa2f05abd59598f132e6ebad86318291b5be0
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