1. 14 Oct, 2014 1 commit
  2. 29 Aug, 2014 3 commits
  3. 30 Jun, 2014 2 commits
  4. 27 Jun, 2014 1 commit
    • Hani Benhabiles's avatar
      nbd: Don't validate from and len in NBD_CMD_DISC. · 8c5d1abb
      Hani Benhabiles authored
      These values aren't used in this case.
      
      Currently, the from field in the request sent by the nbd kernel module leading
      to a false error message when ending the connection with the client.
      
      $ qemu-nbd some.img -v
      // After nbd-client -d /dev/nbd0
      nbd.c:nbd_trip():L1031: From: 18446744073709551104, Len: 0, Size: 20971520,
      Offset: 0
      nbd.c:nbd_trip():L1032: requested operation past EOF--bad client?
      nbd.c:nbd_receive_request():L638: read failed
      Signed-off-by: default avatarHani Benhabiles <kroosec@gmail.com>
      Cc: qemu-stable@nongnu.org
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      8c5d1abb
  5. 23 May, 2014 1 commit
  6. 21 Feb, 2014 3 commits
  7. 16 Dec, 2013 1 commit
  8. 06 Sep, 2013 1 commit
  9. 22 Aug, 2013 1 commit
  10. 03 May, 2013 2 commits
    • Stefan Hajnoczi's avatar
      nbd: support large NBD requests · 2d821488
      Stefan Hajnoczi authored
      The Linux nbd driver recently increased the maximum supported request
      size up to 32 MB:
      
        commit 078be02b80359a541928c899c2631f39628f56df
        Author: Michal Belczyk <belczyk@bsd.krakow.pl>
        Date:   Tue Apr 30 15:28:28 2013 -0700
      
            nbd: increase default and max request sizes
      
            Raise the default max request size for nbd to 128KB (from 127KB) to get it
            4KB aligned.  This patch also allows the max request size to be increased
            (via /sys/block/nbd<x>/queue/max_sectors_kb) to 32MB.
      
      QEMU's 1 MB buffers are too small to handle these requests.
      
      This patch allocates data buffers dynamically and allows up to 32 MB per
      request.
      Reported-by: default avatarNick Thomas <nick@bytemark.co.uk>
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      2d821488
    • Stefan Hajnoczi's avatar
      nbd: use g_slice_new() instead of a freelist · e1adb27a
      Stefan Hajnoczi authored
      Use GLib's efficient slice allocator instead of open-coding the request
      freelist.  This patch simplifies the NBDRequest code.
      
      Now we qemu_blockalign() the req->data buffer each time but the next
      patch switches from a fixed size buffer to a dynamic size anyway.
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      e1adb27a
  11. 02 Apr, 2013 1 commit
  12. 22 Mar, 2013 2 commits
  13. 19 Dec, 2012 2 commits
  14. 28 Nov, 2012 1 commit
  15. 13 Nov, 2012 1 commit
  16. 23 Oct, 2012 2 commits
  17. 25 Sep, 2012 1 commit
  18. 19 Sep, 2012 10 commits
  19. 18 Sep, 2012 1 commit
  20. 13 Aug, 2012 1 commit
  21. 10 May, 2012 2 commits