commit | 781e0743af3c5ba356d55bc60df59f2dded1e938 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Sun Apr 24 12:25:50 2011 +0300 |
committer | Avi Kivity <avi@redhat.com> | Sun May 22 08:39:46 2011 -0400 |
tree | 549ba079bf78ce53ee93852bd1ae36f810082bc0 | |
parent | 62aaa2f05abd59598f132e6ebad86318291b5be0 [diff] |
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>