1. 10 5月, 2017 4 次提交
    • F
      virtio-blk: Remove useless condition around g_free() · 1d29b5b0
      Fam Zheng 提交于
      Laszlo spotted and studied this wasteful "if". He pointed out:
      
      The original virtio_blk_free_request needed an "if" as it accesses one
      field, since 671ec3f0 ("virtio-blk: Convert VirtIOBlockReq.elem to
      pointer", 2014-06-11); later on in f897bf75 ("virtio-blk: embed
      VirtQueueElement in VirtIOBlockReq", 2014-07-09) the field became
      embedded, so the "if" became unnecessary (at which point we were using
      g_slice_free(), but it is the same.
      
      Now drop it.
      Reported-by: NLaszlo Ersek <lersek@redhat.com>
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Reviewed-by: NLaszlo Ersek <lersek@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      1d29b5b0
    • T
      qemu-doc: Fix broken URLs of amnhltm.zip and dosidle210.zip · 3ba34a70
      Thomas Huth 提交于
      There are some broken URLs in the qemu-doc which reference tools that
      are not available at their original location anymore. Fortunately, they
      have been mirrored to archive.org, so point to that location instead.
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      Reviewed-by: NLaurent Vivier <lvivier@redhat.com>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      3ba34a70
    • A
      use _Static_assert in QEMU_BUILD_BUG_ON · 09d35204
      Andreas Grapentin 提交于
      QEMU_BUILD_BUG_ON should use C11's _Static_assert, if the compiler supports it,
      to provide more readable messages on failure.
      
      We check for _Static_assert in configure, and set CONFIG_STATIC_ASSERT
      accordingly. QEMU_BUILD_BUG_ON invokes _Static_assert if CONFIG_STATIC_ASSERT
      is defined, and reverts to the old way otherwise.
      
      That way, systems without C11 conforming compiler will still have the old
      messages, as verified by intentionally breaking the configure check.
      
      the following example output was generated by inverting the condition in
      QEMU_BUILD_BUG_ON:
      
      without _Static_assert:
      
      > In file included from /qemu/include/qemu/osdep.h:36:0,
      >                  from /qemu/qga/commands.c:13:
      > /qemu/qga/commands.c: In function ‘qmp_guest_exec_status’:
      > /qemu/include/qemu/compiler.h:89:12: error: negative width in bit-field ‘<anonymous>’
      >      struct { \
      >             ^
      > /qemu/include/qemu/compiler.h:96:38: note: in expansion of macro  QEMU_BUILD_BUG_ON_STRUCT’
      >  #define QEMU_BUILD_BUG_ON(x) typedef QEMU_BUILD_BUG_ON_STRUCT(x) \
      >                                       ^~~~~~~~~~~~~~~~~~~~~~~~
      > /qemu/include/qemu/atomic.h:146:5: note: in expansion of macro ‘QEMU_BUILD_BUG_ON’
      >      QEMU_BUILD_BUG_ON(sizeof(*ptr) > sizeof(void *));   \
      >      ^~~~~~~~~~~~~~~~~
      > /qemu/include/qemu/atomic.h:417:5: note: in expansion of macro ‘atomic_load_acquire’
      >      atomic_load_acquire(ptr)
      >      ^~~~~~~~~~~~~~~~~~~
      > /qemu/qga/commands.c:160:21: note: in expansion of macro ‘atomic_mb_read’
      >      bool finished = atomic_mb_read(&gei->finished);
      >                      ^~~~~~~~~~~~~~
      
      with _Static_assert:
      
      > In file included from /qemu/include/qemu/osdep.h:36:0,
      >                  from /qemu/qga/commands.c:13:
      > /qemu/qga/commands.c: In function ‘qmp_guest_exec_status’:
      > /qemu/include/qemu/compiler.h:94:30: error: static assertion failed: "not expecting: sizeof(*&gei->finished) > sizeof(void *)"
      >  #define QEMU_BUILD_BUG_ON(x) _Static_assert(!(x), #x)
      >                               ^
      > /qemu/include/qemu/atomic.h:146:5: note: in expansion of macro ‘QEMU_BUILD_BUG_ON’
      >      QEMU_BUILD_BUG_ON(sizeof(*ptr) > sizeof(void *));   \
      >      ^~~~~~~~~~~~~~~~~
      > /qemu/include/qemu/atomic.h:417:5: note: in expansion of macro ‘atomic_load_acquire’
      >      atomic_load_acquire(ptr)
      >      ^~~~~~~~~~~~~~~~~~~
      > /qemu/qga/commands.c:160:21: note: in expansion of macro ‘atomic_mb_read’
      >      bool finished = atomic_mb_read(&gei->finished);
      >                      ^~~~~~~~~~~~~~
      Signed-off-by: NAndreas Grapentin <andreas@grapentin.org>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NRichard Henderson <rth@twiddle.net>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      09d35204
    • S
      bcd711fe
  2. 07 5月, 2017 10 次提交
  3. 04 5月, 2017 1 次提交
    • S
      Merge remote-tracking branch 'kwolf/tags/for-upstream' into staging · 12a95f32
      Stefan Hajnoczi 提交于
      Block layer patches
      
      # gpg: Signature made Fri 28 Apr 2017 09:20:17 PM BST
      # gpg:                using RSA key 0x7F09B272C88F2FD6
      # gpg: Good signature from "Kevin Wolf <kwolf@redhat.com>"
      # Primary key fingerprint: DC3D EB15 9A9A F95D 3D74  56FE 7F09 B272 C88F 2FD6
      
      * kwolf/tags/for-upstream: (34 commits)
        progress: Show current progress on SIGINFO
        iotests: fix exclusion option
        iotests: clarify help text
        qemu-img: use blk_co_pwrite_zeroes for zero sectors when compressed
        qemu-img: improve convert_iteration_sectors()
        block: assert no image modification under BDRV_O_INACTIVE
        block: fix obvious coding style mistakes in block_int.h
        qcow2: Allow discard of final unaligned cluster
        block: Add .bdrv_truncate() error messages
        block: Add errp to BD.bdrv_truncate()
        block: Add errp to b{lk,drv}_truncate()
        block/vhdx: Make vhdx_create() always set errp
        qemu-img: Document backing options
        qemu-img/convert: Move bs_n > 1 && -B check down
        qemu-img/convert: Use @opts for one thing only
        block: fix alignment calculations in bdrv_co_do_zero_pwritev
        block: Do not unref bs->file on error in BD's open
        iotests: 109: Filter out "len" of failed jobs
        iotests: Fix typo in 026
        Issue a deprecation warning if the user specifies the "-hdachs" option.
        ...
      
      Message-id: 1493411622-5343-1-git-send-email-kwolf@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      12a95f32
  4. 02 5月, 2017 1 次提交
    • S
      Merge remote-tracking branch 'sthibault/tags/samuel-thibault' into staging · e619b147
      Stefan Hajnoczi 提交于
      slirp updates
      
      # gpg: Signature made Sat 29 Apr 2017 05:45:24 PM BST
      # gpg:                using RSA key 0xB0A51BF58C9179C5
      # gpg: Good signature from "Samuel Thibault <samuel.thibault@aquilenet.fr>"
      # gpg:                 aka "Samuel Thibault <sthibault@debian.org>"
      # gpg:                 aka "Samuel Thibault <samuel.thibault@gnu.org>"
      # gpg:                 aka "Samuel Thibault <samuel.thibault@inria.fr>"
      # gpg:                 aka "Samuel Thibault <samuel.thibault@labri.fr>"
      # gpg:                 aka "Samuel Thibault <samuel.thibault@ens-lyon.org>"
      # gpg:                 aka "Samuel Thibault <samuel.thibault@u-bordeaux.fr>"
      # Primary key fingerprint: 900C B024 B679 31D4 0F82  304B D017 8C76 7D06 9EE6
      #      Subkey fingerprint: AEBF 7448 FAB9 453A 4552  390E B0A5 1BF5 8C91 79C5
      
      * sthibault/tags/samuel-thibault:
        slirp: VMStatify remaining except for loop
        slirp: VMStatify socket level
        slirp: Common lhost/fhost union
        slirp: VMStatify sbuf
        slirp: VMState conversion; tcpcb
        slirp: fix pinging the virtual ipv4 DNS server
        slirp: tftp, copy sockaddr_size
        slirp/smb: Replace constant strings by glib string
        slirp: allow host port 0 for hostfwd
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      e619b147
  5. 30 4月, 2017 9 次提交
  6. 29 4月, 2017 5 次提交
  7. 28 4月, 2017 10 次提交