Skip to content
  • Paolo Bonzini's avatar
    3cc8f884
    memory: try to inline constant-length reads · 3cc8f884
    Paolo Bonzini authored
    
    
    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>
    3cc8f884
    memory: try to inline constant-length reads
    Paolo Bonzini authored
    
    
    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>
Loading