+2
−13
+57
−17
+0
−1
Loading
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>