qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] a1ca3e: block: enhance QEMUIOVector structure


From: Peter Maydell
Subject: [Qemu-commits] [qemu/qemu] a1ca3e: block: enhance QEMUIOVector structure
Date: Tue, 26 Feb 2019 06:04:58 -0800

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: a1ca3ed5ece383de86994b04e2fef01dad7e7e95
      
https://github.com/qemu/qemu/commit/a1ca3ed5ece383de86994b04e2fef01dad7e7e95
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M include/qemu/iov.h

  Log Message:
  -----------
  block: enhance QEMUIOVector structure

Add a possibility of embedded iovec, for cases when we need only one
local iov.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 0d93ed08454e76fa943f6f71964362296d41b12e
      
https://github.com/qemu/qemu/commit/0d93ed08454e76fa943f6f71964362296d41b12e
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M block/io.c

  Log Message:
  -----------
  block/io: use qemu_iovec_init_buf

Use new qemu_iovec_init_buf() instead of
qemu_iovec_init_external( ... , 1), which simplifies the code.

While being here, use qemu_try_blockalign0 as well.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: ae5a9592ce0d5c11e40667f217b2e2ceba33927f
      
https://github.com/qemu/qemu/commit/ae5a9592ce0d5c11e40667f217b2e2ceba33927f
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M block/block-backend.c

  Log Message:
  -----------
  block/block-backend: use QEMU_IOVEC_INIT_BUF

Use new QEMU_IOVEC_INIT_BUF() instead of
qemu_iovec_init_external( ... , 1), which simplifies the code.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 31e0a6e1af78fcca60fa30c345fb7b54d49da0c9
      
https://github.com/qemu/qemu/commit/31e0a6e1af78fcca60fa30c345fb7b54d49da0c9
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M block/backup.c

  Log Message:
  -----------
  block/backup: use qemu_iovec_init_buf

Use new qemu_iovec_init_buf() instead of
qemu_iovec_init_external( ... , 1), which simplifies the code.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: ee7a883ace6f19d3b3d2c2ef7e4ca86232ab523a
      
https://github.com/qemu/qemu/commit/ee7a883ace6f19d3b3d2c2ef7e4ca86232ab523a
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M block/commit.c

  Log Message:
  -----------
  block/commit: use QEMU_IOVEC_INIT_BUF

Use new QEMU_IOVEC_INIT_BUF() instead of
qemu_iovec_init_external( ... , 1), which simplifies the code.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 8040446d3080ebd446c619364f60b7643732a6ab
      
https://github.com/qemu/qemu/commit/8040446d3080ebd446c619364f60b7643732a6ab
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M block/stream.c

  Log Message:
  -----------
  block/stream: use QEMU_IOVEC_INIT_BUF

Use new QEMU_IOVEC_INIT_BUF() instead of
qemu_iovec_init_external( ... , 1), which simplifies the code.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: b2589d66b40ed0595d5b4c16827324d0f98c5106
      
https://github.com/qemu/qemu/commit/b2589d66b40ed0595d5b4c16827324d0f98c5106
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M block/parallels.c

  Log Message:
  -----------
  block/parallels: use QEMU_IOVEC_INIT_BUF

Use new QEMU_IOVEC_INIT_BUF() instead of
qemu_iovec_init_external( ... , 1), which simplifies the code.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 30d780f8fe98f4a417f505d5b7354ba5635bd193
      
https://github.com/qemu/qemu/commit/30d780f8fe98f4a417f505d5b7354ba5635bd193
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M block/qcow.c

  Log Message:
  -----------
  block/qcow: use qemu_iovec_init_buf

Use new qemu_iovec_init_buf() instead of
qemu_iovec_init_external( ... , 1), which simplifies the code.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: c793d4ff20b3470a0110638b46e83de0908e1652
      
https://github.com/qemu/qemu/commit/c793d4ff20b3470a0110638b46e83de0908e1652
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M block/qcow2.c

  Log Message:
  -----------
  block/qcow2: use qemu_iovec_init_buf

Use new qemu_iovec_init_buf() instead of
qemu_iovec_init_external( ... , 1), which simplifies the code.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 342544f98b8e27adef17bb2ca7964c6efb3698d6
      
https://github.com/qemu/qemu/commit/342544f98b8e27adef17bb2ca7964c6efb3698d6
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M block/qed-table.c
    M block/qed.c

  Log Message:
  -----------
  block/qed: use qemu_iovec_init_buf

Use new qemu_iovec_init_buf() instead of
qemu_iovec_init_external( ... , 1), which simplifies the code.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 199d95b043f4d160deb6162527b5141bd6b7bdc9
      
https://github.com/qemu/qemu/commit/199d95b043f4d160deb6162527b5141bd6b7bdc9
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M block/vmdk.c

  Log Message:
  -----------
  block/vmdk: use qemu_iovec_init_buf

Use new qemu_iovec_init_buf() instead of
qemu_iovec_init_external( ... , 1), which simplifies the code.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: c075a0af22442e88226a6cef22da3fafccfb5d7e
      
https://github.com/qemu/qemu/commit/c075a0af22442e88226a6cef22da3fafccfb5d7e
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M qemu-img.c

  Log Message:
  -----------
  qemu-img: use qemu_iovec_init_buf

Use new qemu_iovec_init_buf() instead of
qemu_iovec_init_external( ... , 1), which simplifies the code.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: f556f37b110edbee7b59ba6e2de7a6b84e90cab3
      
https://github.com/qemu/qemu/commit/f556f37b110edbee7b59ba6e2de7a6b84e90cab3
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M migration/block.c

  Log Message:
  -----------
  migration/block: use qemu_iovec_init_buf

Use new qemu_iovec_init_buf() instead of
qemu_iovec_init_external( ... , 1), which simplifies the code.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 405d8fe0ba62ddb5d027ad7bc77c6ee88460ad23
      
https://github.com/qemu/qemu/commit/405d8fe0ba62ddb5d027ad7bc77c6ee88460ad23
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M tests/test-bdrv-drain.c

  Log Message:
  -----------
  tests/test-bdrv-drain: use QEMU_IOVEC_INIT_BUF

Use new QEMU_IOVEC_INIT_BUF() instead of
qemu_iovec_init_external( ... , 1), which simplifies the code.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: e5863d49e41b1b4b695f854c711a55d2584ee367
      
https://github.com/qemu/qemu/commit/e5863d49e41b1b4b695f854c711a55d2584ee367
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M hw/ide/atapi.c
    M hw/ide/core.c
    M include/hw/ide/internal.h

  Log Message:
  -----------
  hw/ide: drop iov field from IDEState

@iov is used only to initialize @qiov. Let's use new
qemu_iovec_init_buf() instead, which simplifies the code.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 5bbe9325a07520dbeadcc96b02a3b8f471f73e4a
      
https://github.com/qemu/qemu/commit/5bbe9325a07520dbeadcc96b02a3b8f471f73e4a
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M hw/ide/core.c
    M include/hw/ide/internal.h

  Log Message:
  -----------
  hw/ide: drop iov field from IDEBufferedRequest

@iov is used only to initialize @qiov. Let's use new
qemu_iovec_init_buf() instead, which simplifies the code.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 9942586b3f1879244d51de4efb44e18b93514b9a
      
https://github.com/qemu/qemu/commit/9942586b3f1879244d51de4efb44e18b93514b9a
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M hw/ide/atapi.c
    M include/hw/ide/internal.h

  Log Message:
  -----------
  hw/ide: drop iov field from IDEDMA

@iov is used only to initialize @qiov. Let's use new
qemu_iovec_init_buf() instead, which simplifies the code.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 00f639fb8f3e2b34f0e9767619cb16604a844a5f
      
https://github.com/qemu/qemu/commit/00f639fb8f3e2b34f0e9767619cb16604a844a5f
  Author: Stefano Garzarella <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M hw/block/virtio-blk.c

  Log Message:
  -----------
  virtio-blk: add acct_failed param to virtio_blk_handle_rw_error()

We add acct_failed param in order to use virtio_blk_handle_rw_error()
also when is not required to call block_acct_failed(). (eg. a discard
operation is failed)

Reviewed-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Stefano Garzarella <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: bbe8bd4d85d80442f87774d7bffaca11f2c02b9b
      
https://github.com/qemu/qemu/commit/bbe8bd4d85d80442f87774d7bffaca11f2c02b9b
  Author: Stefano Garzarella <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M hw/block/virtio-blk.c
    M include/hw/virtio/virtio-blk.h

  Log Message:
  -----------
  virtio-blk: add host_features field in VirtIOBlock

Since configurable features for virtio-blk are growing, this patch
adds host_features field in the struct VirtIOBlock. (as in virtio-net)
In this way, we can avoid to add new fields for new properties and
we can directly set VIRTIO_BLK_F* flags in the host_features.

We update "config-wce" and "scsi" property definition to use the new
host_features field without change the behaviour.

Suggested-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Stefano Garzarella <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 5c81161f804144b146607f890e84613a4cbad95c
      
https://github.com/qemu/qemu/commit/5c81161f804144b146607f890e84613a4cbad95c
  Author: Stefano Garzarella <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M hw/block/virtio-blk.c
    M hw/core/machine.c

  Log Message:
  -----------
  virtio-blk: add "discard" and "write-zeroes" properties

In order to avoid migration issues, we enable DISCARD and
WRITE_ZEROES features only for machine type >= 4.0

As discussed with Michael S. Tsirkin and Stefan Hajnoczi on the
list [1], DISCARD operation should not have security implications
(eg. page cache attacks), so we can enable it by default.

[1] https://lists.gnu.org/archive/html/qemu-devel/2019-02/msg00504.html

Suggested-by: Dr. David Alan Gilbert <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Stefano Garzarella <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: ba550851f5de642b8a1359e2c5c27cbb5a52ae61
      
https://github.com/qemu/qemu/commit/ba550851f5de642b8a1359e2c5c27cbb5a52ae61
  Author: Stefano Garzarella <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M hw/net/virtio-net.c
    M hw/virtio/virtio.c
    M include/hw/virtio/virtio.h

  Log Message:
  -----------
  virtio-net: make VirtIOFeature usable for other virtio devices

In order to use VirtIOFeature also in other virtio devices, we move
its declaration and the endof() macro (renamed in virtio_endof())
in virtio.h.
We add virtio_feature_get_config_size() function to iterate the array
of VirtIOFeature and to return the config size depending on the
features enabled. (as virtio_net_set_config_size() did)

Suggested-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Stefano Garzarella <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 20764be0421c3d5d97f84219d55a412f3cd2ca9a
      
https://github.com/qemu/qemu/commit/20764be0421c3d5d97f84219d55a412f3cd2ca9a
  Author: Stefano Garzarella <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M hw/block/virtio-blk.c
    M include/hw/virtio/virtio-blk.h

  Log Message:
  -----------
  virtio-blk: set config size depending on the features enabled

Starting from DISABLE and WRITE_ZEROES features, we use an array of
VirtIOFeature (as virtio-net) to properly set the config size
depending on the features enabled.

Reviewed-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Stefano Garzarella <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 37b06f8d46fe602e630e4bdce24e80a3e0f70cc2
      
https://github.com/qemu/qemu/commit/37b06f8d46fe602e630e4bdce24e80a3e0f70cc2
  Author: Stefano Garzarella <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M hw/block/virtio-blk.c
    M include/hw/virtio/virtio-blk.h

  Log Message:
  -----------
  virtio-blk: add DISCARD and WRITE_ZEROES features

This patch adds the support of DISCARD and WRITE_ZEROES commands,
that have been introduced in the virtio-blk protocol to have
better performance when using SSD backend.

We support only one segment per request since multiple segments
are not widely used and there are no userspace APIs that allow
applications to submit multiple segments in a single call.

Reviewed-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Stefano Garzarella <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: f6cd8a6366d6bad4a557616a5f70c6d2e374b8c1
      
https://github.com/qemu/qemu/commit/f6cd8a6366d6bad4a557616a5f70c6d2e374b8c1
  Author: Stefano Garzarella <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M tests/virtio-blk-test.c

  Log Message:
  -----------
  tests/virtio-blk: change assert on data_size in virtio_blk_request()

The size of data in the virtio_blk_request must be a multiple
of 512 bytes for IN and OUT requests, or a multiple of the size
of struct virtio_blk_discard_write_zeroes for DISCARD and
WRITE_ZEROES requests.

Reviewed-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Reviewed-by: Thomas Huth <address@hidden>
Signed-off-by: Stefano Garzarella <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: ca1a98042bad3fe749c5d3d882f3bd5e956b7690
      
https://github.com/qemu/qemu/commit/ca1a98042bad3fe749c5d3d882f3bd5e956b7690
  Author: Stefano Garzarella <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M tests/virtio-blk-test.c

  Log Message:
  -----------
  tests/virtio-blk: add virtio_blk_fix_dwz_hdr() function

This function is useful to fix the endianness of struct
virtio_blk_discard_write_zeroes headers.

Reviewed-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Stefano Garzarella <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 06879094bb7a50dd5ee503f3f0e208e0cd91dbc3
      
https://github.com/qemu/qemu/commit/06879094bb7a50dd5ee503f3f0e208e0cd91dbc3
  Author: Stefano Garzarella <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M tests/virtio-blk-test.c

  Log Message:
  -----------
  tests/virtio-blk: add test for WRITE_ZEROES command

If the WRITE_ZEROES feature is enabled, we check this command
in the test_basic().

Reviewed-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Acked-by: Thomas Huth <address@hidden>
Signed-off-by: Stefano Garzarella <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 9a9f4b74fa547b68edb38fa414999836770a4735
      
https://github.com/qemu/qemu/commit/9a9f4b74fa547b68edb38fa414999836770a4735
  Author: Stefano Garzarella <address@hidden>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M tests/virtio-blk-test.c

  Log Message:
  -----------
  tests/virtio-blk: add test for DISCARD command

If the DISCARD feature is enabled, we try this command in the
test_basic(), checking only the status returned by the request.

Reviewed-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Stefano Garzarella <address@hidden>
Message-id: address@hidden
Message-Id: <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: d88d85f1f0625d57e9f354aa0874c4c8b5d1fb47
      
https://github.com/qemu/qemu/commit/d88d85f1f0625d57e9f354aa0874c4c8b5d1fb47
  Author: Peter Maydell <address@hidden>
  Date:   2019-02-25 (Mon, 25 Feb 2019)

  Changed paths:
    M block/backup.c
    M block/block-backend.c
    M block/commit.c
    M block/io.c
    M block/parallels.c
    M block/qcow.c
    M block/qcow2.c
    M block/qed-table.c
    M block/qed.c
    M block/stream.c
    M block/vmdk.c
    M hw/block/virtio-blk.c
    M hw/core/machine.c
    M hw/ide/atapi.c
    M hw/ide/core.c
    M hw/net/virtio-net.c
    M hw/virtio/virtio.c
    M include/hw/ide/internal.h
    M include/hw/virtio/virtio-blk.h
    M include/hw/virtio/virtio.h
    M include/qemu/iov.h
    M migration/block.c
    M qemu-img.c
    M tests/test-bdrv-drain.c
    M tests/virtio-blk-test.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into 
staging

Pull request

# gpg: Signature made Fri 22 Feb 2019 14:07:01 GMT
# gpg:                using RSA key 9CA4ABB381AB73C8
# gpg: Good signature from "Stefan Hajnoczi <address@hidden>" [full]
# gpg:                 aka "Stefan Hajnoczi <address@hidden>" [full]
# Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35  775A 9CA4 ABB3 81AB 73C8

* remotes/stefanha/tags/block-pull-request: (27 commits)
  tests/virtio-blk: add test for DISCARD command
  tests/virtio-blk: add test for WRITE_ZEROES command
  tests/virtio-blk: add virtio_blk_fix_dwz_hdr() function
  tests/virtio-blk: change assert on data_size in virtio_blk_request()
  virtio-blk: add DISCARD and WRITE_ZEROES features
  virtio-blk: set config size depending on the features enabled
  virtio-net: make VirtIOFeature usable for other virtio devices
  virtio-blk: add "discard" and "write-zeroes" properties
  virtio-blk: add host_features field in VirtIOBlock
  virtio-blk: add acct_failed param to virtio_blk_handle_rw_error()
  hw/ide: drop iov field from IDEDMA
  hw/ide: drop iov field from IDEBufferedRequest
  hw/ide: drop iov field from IDEState
  tests/test-bdrv-drain: use QEMU_IOVEC_INIT_BUF
  migration/block: use qemu_iovec_init_buf
  qemu-img: use qemu_iovec_init_buf
  block/vmdk: use qemu_iovec_init_buf
  block/qed: use qemu_iovec_init_buf
  block/qcow2: use qemu_iovec_init_buf
  block/qcow: use qemu_iovec_init_buf
  ...

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/ef80b99ce7ff...d88d85f1f062



reply via email to

[Prev in Thread] Current Thread [Next in Thread]