<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/tests/qemu-iotests, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/tests/qemu-iotests?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/tests/qemu-iotests?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-11-14T10:31:52+00:00</updated>
<entry>
<title>tests/stream-under-throttle: New test</title>
<updated>2022-11-14T10:31:52+00:00</updated>
<author>
<name>Hanna Reitz</name>
</author>
<published>2022-11-10T16:09:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=46530d3560b6fd5de38b6f4e45ce7d7135b9add7'/>
<id>urn:sha1:46530d3560b6fd5de38b6f4e45ce7d7135b9add7</id>
<content type='text'>
Test streaming a base image into the top image underneath two throttle
nodes.  This was reported to make qemu 7.1 hang
(https://gitlab.com/qemu-project/qemu/-/issues/1215), so this serves as
a regression test.

Signed-off-by: Hanna Reitz &lt;hreitz@redhat.com&gt;
Message-Id: &lt;20221110160921.33158-1-hreitz@redhat.com&gt;
Reviewed-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>iotests/151: Test active requests on mirror start</title>
<updated>2022-11-10T12:33:57+00:00</updated>
<author>
<name>Hanna Reitz</name>
</author>
<published>2022-11-09T16:54:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=7b5929c73485b31ebc87c4c20328a6cb40519b71'/>
<id>urn:sha1:7b5929c73485b31ebc87c4c20328a6cb40519b71</id>
<content type='text'>
Have write requests happen to the source node right when we start a
mirror job.  The mirror filter node may encounter MirrorBDSOpaque.job
being NULL, but this should not cause a segfault.

Signed-off-by: Hanna Reitz &lt;hreitz@redhat.com&gt;
Message-Id: &lt;20221109165452.67927-6-hreitz@redhat.com&gt;
Reviewed-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>iotests/151: Test that active mirror progresses</title>
<updated>2022-11-10T12:33:56+00:00</updated>
<author>
<name>Hanna Reitz</name>
</author>
<published>2022-11-09T16:54:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=38591290e7d8c9b5fdeb33eb2b438fef7915de22'/>
<id>urn:sha1:38591290e7d8c9b5fdeb33eb2b438fef7915de22</id>
<content type='text'>
Before this series, a mirror job in write-blocking mode would pause
issuing background requests while active requests are in flight.  Thus,
if the source is constantly in use by active requests, no actual
progress can be made.

This series should have fixed that, making the mirror job issue
background requests even while active requests are in flight.

Have a new test case in 151 verify this.

Signed-off-by: Hanna Reitz &lt;hreitz@redhat.com&gt;
Message-Id: &lt;20221109165452.67927-5-hreitz@redhat.com&gt;
Reviewed-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>block: Refactor get_tmp_filename()</title>
<updated>2022-10-27T18:13:32+00:00</updated>
<author>
<name>Bin Meng</name>
</author>
<published>2022-10-10T04:04:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=69fbfff95e849156985cf95e2010ffc8762e34e6'/>
<id>urn:sha1:69fbfff95e849156985cf95e2010ffc8762e34e6</id>
<content type='text'>
At present there are two callers of get_tmp_filename() and they are
inconsistent.

One does:

    /* TODO: extra byte is a hack to ensure MAX_PATH space on Windows. */
    char *tmp_filename = g_malloc0(PATH_MAX + 1);
    ...
    ret = get_tmp_filename(tmp_filename, PATH_MAX + 1);

while the other does:

    s-&gt;qcow_filename = g_malloc(PATH_MAX);
    ret = get_tmp_filename(s-&gt;qcow_filename, PATH_MAX);

As we can see different 'size' arguments are passed. There are also
platform specific implementations inside the function, and the use
of snprintf is really undesirable.

The function name is also misleading. It creates a temporary file,
not just a filename.

Refactor this routine by changing its name and signature to:

    char *create_tmp_file(Error **errp)

and use g_get_tmp_dir() / g_mkstemp() for a consistent implementation.

While we are here, add some comments to mention that /var/tmp is
preferred over /tmp on non-win32 hosts.

Signed-off-by: Bin Meng &lt;bin.meng@windriver.com&gt;
Message-Id: &lt;20221010040432.3380478-2-bin.meng@windriver.com&gt;
[kwolf: Fixed incorrect errno negation and iotest 051]
Reviewed-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>iotests/backing-file-invalidation: Add new test</title>
<updated>2022-09-30T16:43:44+00:00</updated>
<author>
<name>Hanna Reitz</name>
</author>
<published>2022-08-03T14:44:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=283153f10ab474cb2f14cc2b3f272edcf13aedaf'/>
<id>urn:sha1:283153f10ab474cb2f14cc2b3f272edcf13aedaf</id>
<content type='text'>
Add a new test to see what happens when you migrate a VM with a backing
chain that has json:{} backing file strings, which, when opened, will be
resolved to plain filenames.

Signed-off-by: Hanna Reitz &lt;hreitz@redhat.com&gt;
Message-Id: &lt;20220803144446.20723-4-hreitz@redhat.com&gt;
Reviewed-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>block: add missed block_acct_setup with new block device init procedure</title>
<updated>2022-09-30T16:42:34+00:00</updated>
<author>
<name>Denis V. Lunev</name>
</author>
<published>2022-08-24T09:50:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=62a6c300f18a9f6994baf6d767985425d48de427'/>
<id>urn:sha1:62a6c300f18a9f6994baf6d767985425d48de427</id>
<content type='text'>
Commit 5f76a7aac156ca75680dad5df4a385fd0b58f6b1 is looking harmless from
the first glance, but it has changed things a lot. 'libvirt' uses it to
detect that it should follow new initialization way and this changes
things considerably. With this procedure followed, blockdev_init() is
not called anymore and thus block_acct_setup() helper is not called.

This means in particular that defaults for block accounting statistics
are changed and account_invalid/account_failed are actually initialized
as false instead of true originally.

This commit changes things to match original world. There are the following
constraints:
* new default value in block_acct_init() is set to true
* block_acct_setup() inside blockdev_init() is called before
  blkconf_apply_backend_options()
* thus newly created option in block device properties has precedence if
  specified

Signed-off-by: Denis V. Lunev &lt;den@openvz.org&gt;
Reviewed-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@yandex-team.ru&gt;
CC: Peter Krempa &lt;pkrempa@redhat.com&gt;
CC: Markus Armbruster &lt;armbru@redhat.com&gt;
CC: John Snow &lt;jsnow@redhat.com&gt;
CC: Kevin Wolf &lt;kwolf@redhat.com&gt;
CC: Hanna Reitz &lt;hreitz@redhat.com&gt;
Message-Id: &lt;20220824095044.166009-3-den@openvz.org&gt;
Reviewed-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>tests/qemu-iotests/264: Allow up to 5s for the BLOCK_JOB_CANCEL event to arrive</title>
<updated>2022-08-07T16:51:35+00:00</updated>
<author>
<name>Thomas Huth</name>
</author>
<published>2022-08-02T12:31:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=407634970dc5dba9330c360cfdc4e69e7aea3b37'/>
<id>urn:sha1:407634970dc5dba9330c360cfdc4e69e7aea3b37</id>
<content type='text'>
It is possible to hit the assertTrue(delta_t &lt; 2.0) on very loaded
systems. Increase the value to 5.0 to ease the situation a little bit.

Message-Id: &lt;20220802123101.430757-1-thuth@redhat.com&gt;
Reviewed-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@yandex-team.ru&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>qemu-iotests: Discard stderr when probing devices</title>
<updated>2022-08-02T09:55:51+00:00</updated>
<author>
<name>Cole Robinson</name>
</author>
<published>2022-06-05T14:57:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=e13fe274bfbc4c5b338854a3519a64b84c2d5517'/>
<id>urn:sha1:e13fe274bfbc4c5b338854a3519a64b84c2d5517</id>
<content type='text'>
qemu-iotests fails in the following setup:

  ./configure --enable-modules --enable-smartcard \
      --target-list=x86_64-softmmu,s390x-softmmu
  make
  cd build
  QEMU_PROG=`pwd`/s390x-softmmu/qemu-system-s390x \
      ../tests/check-block.sh qcow2
  ...
  --- /home/crobinso/src/qemu/tests/qemu-iotests/127.out
  +++ /home/crobinso/src/qemu/build/tests/qemu-iotests/scratch/127.out.bad
  @@ -1,4 +1,18 @@
   QA output created by 127
  +Failed to open module: /home/crobinso/src/qemu/build/hw-usb-smartcard.so: undefined symbol: ccid_card_ccid_attach
  ...
  --- /home/crobinso/src/qemu/tests/qemu-iotests/267.out
  +++ /home/crobinso/src/qemu/build/tests/qemu-iotests/scratch/267.out.bad
  @@ -1,4 +1,11 @@
   QA output created by 267
  +Failed to open module: /home/crobinso/src/qemu/build/hw-usb-smartcard.so: undefined symbol: ccid_card_ccid_attach

The stderr spew is its own known issue, but seems like iotests should
be discarding stderr in this case.

Signed-off-by: Cole Robinson &lt;crobinso@redhat.com&gt;
Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>iotests/131: Add parallels regression test</title>
<updated>2022-07-26T19:05:20+00:00</updated>
<author>
<name>Hanna Reitz</name>
</author>
<published>2022-07-14T13:28:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=0c2cb3827e46dc30cd41eeb38f8e318eb665e6a4'/>
<id>urn:sha1:0c2cb3827e46dc30cd41eeb38f8e318eb665e6a4</id>
<content type='text'>
Test an allocating write to a parallels image that has a backing node.
Before HEAD^, doing so used to give me a failed assertion (when the
backing node contains only `42` bytes; the results varies with the value
chosen, for `0` bytes, for example, all I get is EIO).

Signed-off-by: Hanna Reitz &lt;hreitz@redhat.com&gt;
Reviewed-by: Denis V. Lunev &lt;den@openvz.org&gt;
Reviewed-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@yandex-team.ru&gt;
Message-Id: &lt;20220714132801.72464-3-hreitz@redhat.com&gt;
Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@yandex-team.ru&gt;
</content>
</entry>
<entry>
<title>iotests/297: Have mypy ignore unused ignores</title>
<updated>2022-07-12T11:55:24+00:00</updated>
<author>
<name>Hanna Reitz</name>
</author>
<published>2022-06-21T09:25:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=9907dba91dbcde20a8f966c8f22ae1635c5f7e78'/>
<id>urn:sha1:9907dba91dbcde20a8f966c8f22ae1635c5f7e78</id>
<content type='text'>
e7874a50ff3f5b20fb46f36958ad ("python: update for mypy 0.950") has added
`warn_unused_ignores = False` to python/setup.cfg, to be able to keep
compatibility with both pre- and post-0.950 mypy versions.

The iotests' mypy.ini needs the same, or 297 will fail (on both pre- and
post-0.950 mypy, as far as I can tell; just for different `ignore`
lines).

Signed-off-by: Hanna Reitz &lt;hreitz@redhat.com&gt;
Message-Id: &lt;20220621092536.19837-1-hreitz@redhat.com&gt;
Acked-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
</feed>
