Skip to content
Commit 9506d57d authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: emulate: avoid per-byte copying in instruction fetches



We do not need a memory copying loop anymore in insn_fetch; we
can use a byte-aligned pointer to access instruction fields directly
from the fetch_cache.  This eliminates 50-150 cycles (corresponding to
a 5-10% improvement in performance) from each instruction.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 5cfc7e0f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment