[PATCH 0/3] python: testing fixes

2022-12-02 Thread John Snow
A few tiny touchups needed for cutting edge 'flake8' tooling, a minor type touchup in iotests, and extending the python tests to cover the recently released Python 3.11. John Snow (3): Python: fix flake8 config iotests/check: Fix typing for sys.exit() value python: add 3.11 to supported

[PATCH 3/3] python: add 3.11 to supported list

2022-12-02 Thread John Snow
Signed-off-by: John Snow --- python/setup.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/setup.cfg b/python/setup.cfg index c0d7bab168e..56418157065 100644 --- a/python/setup.cfg +++ b/python/setup.cfg @@ -19,6 +19,7 @@ classifiers = Programming Language ::

[PATCH 2/3] iotests/check: Fix typing for sys.exit() value

2022-12-02 Thread John Snow
Signed-off-by: John Snow --- tests/qemu-iotests/check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qemu-iotests/check b/tests/qemu-iotests/check index 75de1b4691e..9bdda1394e7 100755 --- a/tests/qemu-iotests/check +++ b/tests/qemu-iotests/check @@ -159,7 +159,7 @@ if

[PATCH 1/3] Python: fix flake8 config

2022-12-02 Thread John Snow
Newer flake8 versions are a bit pickier about the config file, and my in-line comment confuses the parser. Fix it. Signed-off-by: John Snow --- python/setup.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/setup.cfg b/python/setup.cfg index

Re: [RFC PATCH] test-bdrv-drain: keep graph manipulations out of coroutines

2022-12-02 Thread Paolo Bonzini
On 12/2/22 14:42, Emanuele Giuseppe Esposito wrote: Am 02/12/2022 um 14:27 schrieb Paolo Bonzini: Changes to the BlockDriverState graph will have to take the corresponding lock for writing, and therefore cannot be done inside a coroutine. Move them outside the test body. Signed-off-by:

Re: [PATCH v15 1/6] qmp: add QMP command x-query-virtio

2022-12-02 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > On 2/12/22 13:23, Jonah Palmer wrote: >> On 11/30/22 11:16, Philippe Mathieu-Daudé wrote: >>> Hi, >>> >>> On 11/8/22 14:24, Jonah Palmer wrote: From: Laurent Vivier This new command lists all the instances of VirtIODevices with their

Re: [PATCH v15 1/6] qmp: add QMP command x-query-virtio

2022-12-02 Thread Philippe Mathieu-Daudé
On 2/12/22 13:23, Jonah Palmer wrote: On 11/30/22 11:16, Philippe Mathieu-Daudé wrote: Hi, On 11/8/22 14:24, Jonah Palmer wrote: From: Laurent Vivier This new command lists all the instances of VirtIODevices with their canonical QOM path and name. [Jonah: @virtio_list duplicates

Re: [RFC PATCH] test-bdrv-drain: keep graph manipulations out of coroutines

2022-12-02 Thread Emanuele Giuseppe Esposito
Am 02/12/2022 um 14:27 schrieb Paolo Bonzini: > Changes to the BlockDriverState graph will have to take the > corresponding lock for writing, and therefore cannot be done > inside a coroutine. Move them outside the test body. > > Signed-off-by: Paolo Bonzini > --- >

[RFC PATCH] test-bdrv-drain: keep graph manipulations out of coroutines

2022-12-02 Thread Paolo Bonzini
Changes to the BlockDriverState graph will have to take the corresponding lock for writing, and therefore cannot be done inside a coroutine. Move them outside the test body. Signed-off-by: Paolo Bonzini --- tests/unit/test-bdrv-drain.c | 63 ++-- 1 file changed,

Re: [PATCH v15 1/6] qmp: add QMP command x-query-virtio

2022-12-02 Thread Jonah Palmer
On 11/30/22 11:16, Philippe Mathieu-Daudé wrote: Hi, On 11/8/22 14:24, Jonah Palmer wrote: From: Laurent Vivier This new command lists all the instances of VirtIODevices with their canonical QOM path and name. [Jonah: @virtio_list duplicates information that already exists in   the QOM

Re: [PATCH] blockdev: add 'media=cdrom' argument to support usb cdrom emulated as cdrom

2022-12-02 Thread Paolo Bonzini
On 12/2/22 03:26, Zhipeng Lu wrote: NAME  MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT sda 8:0    0  100M  1 disk vda   252:0    0   10G  0 disk ├─vda1    252:1    0    1G  0 part /boot └─vda2    252:2    0    9G  0 part   ├─rhel-root 253:0    0    8G  0 lvm  /