Skip to content
Commit 3cc8f884 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

memory: try to inline constant-length reads



memcpy can take a large amount of time for small reads and writes.
Handle the common case of reading s/g descriptors from memory (there
is no corresponding "write" case that is as common, because writes
often use address_space_st* functions) by inlining the relevant
parts of address_space_read into the caller.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 1619d1fe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment