commit | 3cc8f884996584630734a90c9b3c535af81e3c92 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Wed Dec 09 10:34:13 2015 +0100 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Thu Dec 17 17:33:49 2015 +0100 |
tree | e71d7f1db7792348e5496d6b4ca2622037081b44 | |
parent | 1619d1fe737d2af068aefe134386a69b76164794 [diff] |
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: Paolo Bonzini <pbonzini@redhat.com>