Skip to content
  • Paolo Bonzini's avatar
    virtio-scsi: work around bug in old BIOSes · 55783a55
    Paolo Bonzini authored
    
    
    Old BIOSes left some padding by mistake after the req_size/resp_size.
    New QEMU does not like it, thinking it is a bidirectional command.
    
    As a workaround, we can check if the ANY_LAYOUT bit is set; if not, we
    always consider the first buffer as the virtio-scsi request/response,
    because, back when QEMU did not support ANY_LAYOUT, it expected the
    payload to start at the second element of the iovec.
    
    This can show up during migration.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    55783a55