1. 08 1月, 2013 1 次提交
  2. 07 1月, 2013 1 次提交
  3. 06 1月, 2013 2 次提交
  4. 05 1月, 2013 6 次提交
  5. 04 1月, 2013 15 次提交
  6. 03 1月, 2013 7 次提交
    • S
      dataplane: use linux-headers/ for virtio includes · ef4929fb
      Stefan Hajnoczi 提交于
      The hw/dataplane/vring.c code includes linux/virtio_ring.h.  Ensure that
      we use linux-headers/ instead of the system-wide headers, which may be
      out-of-date on older distros.
      
      This resolves the following build error on Debian 6:
      
        CC    hw/dataplane/vring.o
      cc1: warnings being treated as errors
      hw/dataplane/vring.c: In function 'vring_enable_notification':
      hw/dataplane/vring.c:71: error: implicit declaration of function 'vring_avail_event'
      hw/dataplane/vring.c:71: error: nested extern declaration of 'vring_avail_event'
      hw/dataplane/vring.c:71: error: lvalue required as left operand of assignment
      
      Note that we now build dataplane/ for each target instead of only once.
      There is no way around this since linux-headers/ is only available for
      per-target objects - and it's how virtio, vfio, kvm, and friends are
      built.
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      ef4929fb
    • S
      configure: Write new file "config-all-disas.mak" when running configure · dbd99ae3
      Stefan Weil 提交于
      Incremental builds added new lines to that file each time when configure
      was run.
      
      Now a new file with a comment line is written.
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      dbd99ae3
    • S
      tci: Fix broken builds with TCG interpreter · 50348333
      Stefan Weil 提交于
      TCI no longer compiled after commit 76cad711.
      
      The TCI disassembler depends on data structures which are different for
      each QEMU target, so it cannot be compiled as a universal-obj today.
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      50348333
    • M
      savevm.c: cleanup system includes · 74e91370
      Michael Tokarev 提交于
      savevm.c suffers from the same problem as some other files.
      Some years ago savevm.c was created from vl.c, moving some
      code from there into a separate file.  At that time, all
      includes were just copied from vl.c to savevm.c, without
      checking which ones are needed and which are not.
      
      But actually most of that stuff is _not_ needed.  More, some
      stuff is wrong, for example, *BSD #ifdef'ery around <util.h>
      vs <libutil.h> - for one, it fails to build on Debian/kFreebsd.
      
      Just remove all this.  Maybe there's a possibility to clean
      it up further - like removing <windows.h> (and maybe including
      winsock.h for htons etc), and maybe it's possible to remove
      some internal #includes too, but I didn't check this.
      
      While at it, remove duplicate #include of qemu/timer.h.
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      74e91370
    • M
      disallow -daemonize usage of stdio (curses display, -nographic, -serial stdio etc) · ab51b1d5
      Michael Tokarev 提交于
      Curses display requires stdin/out to stay on the terminal,
      so -daemonize makes no sense in this case.  Instead of
      leaving display uninitialized like is done since 995ee2bf,
      explicitly detect this case earlier and error out.
      
      -nographic can actually be used with -daemonize, by redirecting
      everything to a null device, but the problem is that according
      to documentation and historical behavour, -nographic redirects
      guest ports to stdin/out, which, again, makes no sense in case
      of -daemonize.  Since -nographic is a legacy option, don't bother
      fixing this case (to allow -nographic and -daemonize by redirecting
      guest ports to null instead of stdin/out in this case), but disallow
      it completely instead, to stop garbling host terminal.
      
      If no display display needed and user wants to use -nographic,
      the right way to go is to use
        -serial null -parallel null -monitor none -display none -vga none
      instead of -nographic.
      
      Also prevent the same issue -- it was possible to get garbled
      host tty after
      
        -nographic -daemonize
      
      and it is still possible to have it by using
      
        -serial stdio -daemonize
      
      Fix this by disallowing opening stdio chardev when -daemonize
      is specified.
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      ab51b1d5
    • A
      Merge remote-tracking branch 'stefanha/block' into staging · 217da7fd
      Anthony Liguori 提交于
      * stefanha/block:
        sheepdog: pass oid directly to send_pending_req()
        sheepdog: don't update inode when create_and_write fails
        block/raw-win32: Fix compiler warnings (wrong format specifiers)
        qemu-img: report size overflow error message
        cutils: change strtosz_suffix_unit function
        virtio-blk: Return UNSUPP for unknown request types
        virtio-blk: add x-data-plane=on|off performance feature
        dataplane: add virtio-blk data plane code
        virtio-blk: restore VirtIOBlkConf->config_wce flag
        iov: add qemu_iovec_concat_iov()
        test-iov: add iov_discard_front/back() testcases
        iov: add iov_discard_front/back() to remove data
        dataplane: add Linux AIO request queue
        dataplane: add event loop
        dataplane: add virtqueue vring code
        dataplane: add host memory mapping code
        configure: add CONFIG_VIRTIO_BLK_DATA_PLANE
        raw-posix: add raw_get_aio_fd() for virtio-blk-data-plane
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      217da7fd
    • S
      tcg: Remove unneeded assertion · 9a8a5ae6
      Stefan Weil 提交于
      Commit 7f6f0ae5 added two assertions.
      
      One of these assertions is not needed:
      The pointer ts is never NULL because it is initialized with the
      address of an array element.
      Reviewed-by: NRichard Henderson <rth@twiddle.net>
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      9a8a5ae6
  7. 02 1月, 2013 8 次提交