Re: [RFC PATCH 10/78] hw/ide/atapi.c: add fallthrough pseudo-keyword

2023-10-13 Thread John Snow
On Fri, Oct 13, 2023 at 3:50 AM Emmanouil Pitsidianakis wrote: > > In preparation of raising -Wimplicit-fallthrough to 5, replace all > fall-through comments with the fallthrough attribute pseudo-keyword. > > Signed-off-by: Emmanouil Pitsidianakis > --- > hw/ide/atapi.c | 1 + > 1 file changed,

[PULL 04/25] python/machine: use socketpair() for console connections

2023-10-13 Thread John Snow
Create a socketpair for the console output. This should help eliminate race conditions around console text early in the boot process that might otherwise have been dropped on the floor before being able to connect to QEMU under "server,nowait". Signed-off-by: John Snow Reviewed-by: Ani Sinha

[PULL 10/25] Python: Enable python3.12 support

2023-10-13 Thread John Snow
Python 3.12 has released, so update the test infrastructure to test against this version. Update the configure script to look for it when an explicit Python interpreter isn't chosen. Signed-off-by: John Snow Reviewed-by: Vladimir Sementsov-Ogievskiy Message-id:

[PULL 12/25] qmp_shell.py: _fill_completion() use .command() instead of .cmd()

2023-10-13 Thread John Snow
From: Vladimir Sementsov-Ogievskiy We just want to ignore failure, so we don't need low level .cmd(). This helps further renaming .command() to .cmd(). Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake Message-id: 20231006154125.1068348-3-vsement...@yandex-team.ru

[PULL 16/25] python/machine.py: upgrade vm.cmd() method

2023-10-13 Thread John Snow
From: Vladimir Sementsov-Ogievskiy The method is not popular in iotests, we prefer use vm.qmp() and then check success by hand. But that's not optimal. To simplify movement to vm.cmd() let's support same interface improvements like in vm.qmp(). Signed-off-by: Vladimir Sementsov-Ogievskiy

[PULL 08/25] python/qmp: remove Server.wait_closed() call for Python 3.12

2023-10-13 Thread John Snow
This patch is a backport from https://gitlab.com/qemu-project/python-qemu-qmp/-/commit/e03a3334b6a477beb09b293708632f2c06fe9f61 According to Guido in https://github.com/python/cpython/issues/104344 , this call was never meant to wait for the server to shut down - that is handled synchronously -

[PULL 01/25] python/machine: move socket setup out of _base_args property

2023-10-13 Thread John Snow
This property isn't meant to do much else besides return a list of strings, so move this setup back out into _pre_launch(). Signed-off-by: John Snow Reviewed-by: Ani Sinha Reviewed-by: Daniel P. Berrangé Message-id: 20230928044943.849073-2-js...@redhat.com Signed-off-by: John Snow ---

[PULL 13/25] scripts/cpu-x86-uarch-abi.py: use .command() instead of .cmd()

2023-10-13 Thread John Snow
From: Vladimir Sementsov-Ogievskiy Here we don't expect a failure. In case of failure we'll crash on trying to access ['return']. Better is to use .command() that clearly raises on failure. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake Message-id:

[PULL 17/25] iotests: QemuStorageDaemon: add cmd() method like in QEMUMachine.

2023-10-13 Thread John Snow
From: Vladimir Sementsov-Ogievskiy Add similar method for consistency. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake Message-id: 20231006154125.1068348-8-vsement...@yandex-team.ru Signed-off-by: John Snow --- tests/qemu-iotests/iotests.py | 7 ++- 1 file changed, 6

[PULL 03/25] python/console_socket: accept existing FD in initializer

2023-10-13 Thread John Snow
Useful if we want to use ConsoleSocket() for a socket created by socketpair(). Signed-off-by: John Snow Reviewed-by: Ani Sinha Reviewed-by: Daniel P. Berrangé Message-id: 20230928044943.849073-4-js...@redhat.com Signed-off-by: John Snow --- python/qemu/machine/console_socket.py | 29

[PULL 23/25] tests/vm/basevm.py: use cmd() instead of qmp()

2023-10-13 Thread John Snow
From: Vladimir Sementsov-Ogievskiy We don't expect failure here and need 'result' object. cmd() is better in this case. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake Message-id: 20231006154125.1068348-14-vsement...@yandex-team.ru Signed-off-by: John Snow ---

[PULL 07/25] Python/iotests: Add type hint for nbd module

2023-10-13 Thread John Snow
The test bails gracefully if this module isn't installed, but linters need a little help understanding that. It's enough to just declare the type in this case. (Fixes pylint complaining about use of an uninitialized variable because it isn't wise enough to understand the notrun call is noreturn.)

[PULL 18/25] iotests: add some missed checks of qmp result

2023-10-13 Thread John Snow
From: Vladimir Sementsov-Ogievskiy Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake Message-id: 20231006154125.1068348-9-vsement...@yandex-team.ru Signed-off-by: John Snow --- tests/qemu-iotests/041| 1 + tests/qemu-iotests/151

[PULL 11/25] python/qemu/qmp/legacy: cmd(): drop cmd_id unused argument

2023-10-13 Thread John Snow
From: Vladimir Sementsov-Ogievskiy The argument is unused, let's drop it for now, as we are going to refactor the interface and don't want to refactor unused things. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake Message-id:

[PULL 19/25] iotests: refactor some common qmp result checks into generic pattern

2023-10-13 Thread John Snow
From: Vladimir Sementsov-Ogievskiy To simplify further conversion. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake Message-id: 20231006154125.1068348-10-vsement...@yandex-team.ru Signed-off-by: John Snow --- tests/qemu-iotests/040 | 3 ++- tests/qemu-iotests/147 | 3 ++-

[PULL 20/25] iotests: drop some extra semicolons

2023-10-13 Thread John Snow
From: Vladimir Sementsov-Ogievskiy Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake Message-id: 20231006154125.1068348-11-vsement...@yandex-team.ru Signed-off-by: John Snow --- tests/qemu-iotests/041 | 2 +- tests/qemu-iotests/196 | 2 +- 2 files changed, 2 insertions(+),

[PULL 09/25] configure: fix error message to say Python 3.8

2023-10-13 Thread John Snow
Signed-off-by: John Snow Reviewed-by: Vladimir Sementsov-Ogievskiy Message-id: 20231006195243.3131140-4-js...@redhat.com Signed-off-by: John Snow --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 8fada85a71..a49fc7b7e7 100755 ---

[PULL 15/25] python/qemu: rename command() to cmd()

2023-10-13 Thread John Snow
From: Vladimir Sementsov-Ogievskiy Use a shorter name. We are going to move in iotests from qmp() to command() where possible. But command() is longer than qmp() and don't look better. Let's rename. You can simply grep for '\.command(' and for 'def command(' to check that everything is updated

[PULL 21/25] iotests: drop some extra ** in qmp() call

2023-10-13 Thread John Snow
From: Vladimir Sementsov-Ogievskiy qmp() method supports passing dict (if it doesn't need substituting '_' to '-' in keys). So, drop some extra '**' operators. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake Message-id: 20231006154125.1068348-12-vsement...@yandex-team.ru

[PULL 05/25] python/machine: use socketpair() for qtest connection

2023-10-13 Thread John Snow
Like the QMP and console sockets, begin using socketpairs for the qtest connection, too. After this patch, we'll be able to remove the vestigial sock_dir argument, but that cleanup is best done in its own patch. Signed-off-by: John Snow Reviewed-by: Daniel P. Berrangé Message-id:

[PULL 14/25] python: rename QEMUMonitorProtocol.cmd() to cmd_raw()

2023-10-13 Thread John Snow
From: Vladimir Sementsov-Ogievskiy Having cmd() and command() methods in one class doesn't look good. Rename cmd() to cmd_raw(), to show its meaning better. We also want to rename command() to cmd() in future, so this commit is a necessary step. Signed-off-by: Vladimir Sementsov-Ogievskiy

[PULL 22/25] iotests.py: pause_job(): drop return value

2023-10-13 Thread John Snow
From: Vladimir Sementsov-Ogievskiy The returned value is unused. It's simple to check by command git grep -B 3 '\.pause_job(' Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake Message-id: 20231006154125.1068348-13-vsement...@yandex-team.ru Signed-off-by: John Snow ---

[PULL 24/25] scripts: add python_qmp_updater.py

2023-10-13 Thread John Snow
From: Vladimir Sementsov-Ogievskiy A script, to update the pattern result = self.vm.qmp(...) self.assert_qmp(result, 'return', {}) (and some similar ones) into self.vm.cmd(...) Used in the next commit "python: use vm.cmd() instead of vm.qmp() where appropriate"

[PULL 02/25] python/machine: close sock_pair in cleanup path

2023-10-13 Thread John Snow
If everything has gone smoothly, we'll already have closed the socket we gave to the child during post_launch. The other half of the pair that we gave to the QMP connection should, likewise, be definitively closed by now. However, in the cleanup path, it's possible we've created the socketpair

[PULL 06/25] python/machine: remove unused sock_dir argument

2023-10-13 Thread John Snow
By using a socketpair for all of the sockets managed by the VM class and its extensions, we don't need the sock_dir argument anymore, so remove it. We only added this argument so that we could specify a second, shorter temporary directory for cases where the temp/log dirs were "too long" as a

[PULL 00/25] Python patches

2023-10-13 Thread John Snow
The following changes since commit a51e5124a655b3dad80b36b18547cb1eca2c5eb2: Merge tag 'pull-omnibus-111023-1' of https://gitlab.com/stsquad/qemu into staging (2023-10-11 09:43:10 -0400) are available in the Git repository at: https://gitlab.com/jsnow/qemu.git tags/python-pull-request for

[PATCH 1/2] block: Fix locking in media change monitor commands

2023-10-13 Thread Kevin Wolf
blk_insert_bs() requires that the caller holds the AioContext lock for the node to be inserted. Since commit c066e808e11, neglecting to do so causes a crash when the child has to be moved to a different AioContext to attach it to the BlockBackend. This fixes qmp_blockdev_insert_anon_medium(),

[PATCH 2/2] iotests: Test media change with iothreads

2023-10-13 Thread Kevin Wolf
iotests case 118 already tests all relevant operations for media change with multiple devices, however never with iothreads. This changes the test so that the virtio-scsi tests run with an iothread. Signed-off-by: Kevin Wolf --- tests/qemu-iotests/118 | 6 -- 1 file changed, 4

[PATCH 0/2] block: Fix locking in media change monitor commands

2023-10-13 Thread Kevin Wolf
Kevin Wolf (2): block: Fix locking in media change monitor commands iotests: Test media change with iothreads block/qapi-sysemu.c| 5 + tests/qemu-iotests/118 | 6 -- 2 files changed, 9 insertions(+), 2 deletions(-) -- 2.41.0

Re: [PATCH v4 04/10] migration: migrate 'blk' command option is deprecated.

2023-10-13 Thread Markus Armbruster
Juan Quintela writes: > Set the 'block' migration capability to 'true' instead. > > Signed-off-by: Juan Quintela > Acked-by: Stefan Hajnoczi > Reviewed-by: Thomas Huth > > --- > > Improve documentation and style (markus) > --- > docs/about/deprecated.rst | 7 +++ > qapi/migration.json

Re: [PATCH v4 03/10] migration: migrate 'inc' command option is deprecated.

2023-10-13 Thread Markus Armbruster
Juan Quintela writes: > Set the 'block_incremental' migration parameter to 'true' instead. > > Reviewed-by: Thomas Huth > Acked-by: Stefan Hajnoczi > Signed-off-by: Juan Quintela > > --- > > Improve documentation and style (thanks Markus) > --- > docs/about/deprecated.rst | 7 +++ >

Re: [RFC PATCH 00/78] Strict disable implicit fallthrough

2023-10-13 Thread Daniel P . Berrangé
On Fri, Oct 13, 2023 at 03:51:22PM +0300, Manos Pitsidianakis wrote: > On Fri, 13 Oct 2023 11:14, "Daniel P. Berrangé" wrote: > > On Fri, Oct 13, 2023 at 10:47:04AM +0300, Emmanouil Pitsidianakis wrote: > > > > > > Main questions this RFC poses > > > = > > > > > > -

Re: [RFC PATCH 00/78] Strict disable implicit fallthrough

2023-10-13 Thread Manos Pitsidianakis
On Fri, 13 Oct 2023 11:14, "Daniel P. Berrangé" wrote: On Fri, Oct 13, 2023 at 10:47:04AM +0300, Emmanouil Pitsidianakis wrote: Main questions this RFC poses = - Is this change desirable and net-positive. Yes, IMHO it is worth standardizing on use of the

Re: [PATCH v4 01/10] migration: Improve json and formatting

2023-10-13 Thread Markus Armbruster
Juan Quintela writes: > Signed-off-by: Juan Quintela > --- > qapi/migration.json | 7 +++ > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/qapi/migration.json b/qapi/migration.json > index d7dfaa5db9..6865fea3c5 100644 > --- a/qapi/migration.json > +++

Re: [RFC PATCH 01/78] include/qemu/compiler.h: replace QEMU_FALLTHROUGH with fallthrough

2023-10-13 Thread Manos Pitsidianakis
Hello Markus, On Fri, 13 Oct 2023 15:28, Markus Armbruster wrote: The commit message needs to explain why. Certainly. This is wrong. docs/devel/style.rst: Include directives -- Order include directives as follows: .. code-block:: c #include

Re: [RFC PATCH 01/78] include/qemu/compiler.h: replace QEMU_FALLTHROUGH with fallthrough

2023-10-13 Thread Markus Armbruster
The commit message needs to explain why. Emmanouil Pitsidianakis writes: > Signed-off-by: Emmanouil Pitsidianakis > --- > audio/pwaudio.c | 8 > hw/arm/smmuv3.c | 2 +- > include/qemu/compiler.h | 30 +++--- >

Re: [RFC PATCH 00/78] Strict disable implicit fallthrough

2023-10-13 Thread BALATON Zoltan
On Fri, 13 Oct 2023, Emmanouil Pitsidianakis wrote: Hello, This RFC is inspired by the kernel's move to -Wimplicit-fallthrough=3 back in 2019.[0] We take one step (or two) further by increasing it to 5 which rejects fall through comments and requires an attribute statement. [0]:

Re: [PATCH v4] migration: hold the BQL during setup

2023-10-13 Thread Fiona Ebner
Am 12.10.23 um 22:40 schrieb Fabiano Rosas: > Fiona Ebner writes: > >> This is intended to be a semantic revert of commit 9b09503752 >> ("migration: run setup callbacks out of big lock"). There have been so >> many changes since that commit (e.g. a new setup callback >> dirty_bitmap_save_setup()

[PATCH v5] migration: hold the BQL during setup

2023-10-13 Thread Fiona Ebner
This is intended to be a semantic revert of commit 9b09503752 ("migration: run setup callbacks out of big lock"). There have been so many changes since that commit (e.g. a new setup callback dirty_bitmap_save_setup() that also needs to be adapted now), it's easier to do the revert manually. For

[PATCH v4 03/10] migration: migrate 'inc' command option is deprecated.

2023-10-13 Thread Juan Quintela
Set the 'block_incremental' migration parameter to 'true' instead. Reviewed-by: Thomas Huth Acked-by: Stefan Hajnoczi Signed-off-by: Juan Quintela --- Improve documentation and style (thanks Markus) --- docs/about/deprecated.rst | 7 +++ qapi/migration.json | 8 +++-

[PATCH v4 06/10] migration: Deprecate old compression method

2023-10-13 Thread Juan Quintela
Signed-off-by: Juan Quintela Acked-by: Stefan Hajnoczi Acked-by: Peter Xu --- docs/about/deprecated.rst | 8 qapi/migration.json | 79 +-- migration/options.c | 13 +++ 3 files changed, 72 insertions(+), 28 deletions(-) diff --git

[PATCH v4 08/10] [RFC] migration: Remove helpers needed for -i/-b migrate options

2023-10-13 Thread Juan Quintela
[DON'T MERGE] We were abusing capabilities and parameters to implement -i/-b. Previous patch convert that options into one error. Remove all the helpers needed to implement them. Signed-off-by: Juan Quintela --- migration/migration.h | 4 migration/options.h | 6 --

[PATCH v4 10/10] [RFC] migration: Remove block migration support

2023-10-13 Thread Juan Quintela
[DON'T MERGE] Signed-off-by: Juan Quintela --- meson.build|2 - qapi/migration.json| 31 +- include/migration/misc.h |8 - migration/block.h | 52 -- migration/options.h|1 - migration/block.c | 1030

[PATCH v4 05/10] migration: Deprecate block migration

2023-10-13 Thread Juan Quintela
It is obsolete. It is better to use driver-mirror with NBD instead. CC: Kevin Wolf CC: Eric Blake CC: Stefan Hajnoczi CC: Hanna Czenczek Signed-off-by: Juan Quintela Acked-by: Stefan Hajnoczi --- docs/about/deprecated.rst | 10 ++ qapi/migration.json | 29

[PATCH v4 09/10] [RFC] migration: Remove support for block_incremental

2023-10-13 Thread Juan Quintela
[DON'T MERGE] Signed-off-by: Juan Quintela --- docs/about/deprecated.rst | 7 - qapi/migration.json| 55 +++--- migration/options.h| 1 - migration/block.c | 2 +- migration/migration-hmp-cmds.c | 18 +--

[PATCH v4 01/10] migration: Improve json and formatting

2023-10-13 Thread Juan Quintela
Signed-off-by: Juan Quintela --- qapi/migration.json | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/qapi/migration.json b/qapi/migration.json index d7dfaa5db9..6865fea3c5 100644 --- a/qapi/migration.json +++ b/qapi/migration.json @@ -73,7 +73,7 @@ { 'struct':

[PATCH v4 00/10] Migration deprecated parts

2023-10-13 Thread Juan Quintela
On this v4: - addressed all markus comments. - rebased on latest. - improve formatting of migration.json - print block migration status when needed. - patches 7-10 are not mean to merge, they just show why we want to deprecate block migration and remove its support. - Patch 7 just drop support

[PATCH v4 02/10] migration: Print block status when needed

2023-10-13 Thread Juan Quintela
The new line was only printed when command options were used. When we used migration parameters and capabilities, it wasn't. Signed-off-by: Juan Quintela --- migration/migration-hmp-cmds.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/migration/migration-hmp-cmds.c

[PATCH v4 07/10] [RFC] migration: Make -i/-b an error for hmp and qmp

2023-10-13 Thread Juan Quintela
[DON'T MERGE] Block migration is obsolete, users should use blockdev-mirror instead. Make it one error to set them. Signed-off-by: Juan Quintela --- migration/migration-hmp-cmds.c | 15 ++- migration/migration.c | 35 +++--- 2 files changed, 21

[PATCH v4 04/10] migration: migrate 'blk' command option is deprecated.

2023-10-13 Thread Juan Quintela
Set the 'block' migration capability to 'true' instead. Signed-off-by: Juan Quintela Acked-by: Stefan Hajnoczi Reviewed-by: Thomas Huth --- Improve documentation and style (markus) --- docs/about/deprecated.rst | 7 +++ qapi/migration.json | 6 -- migration/migration.c | 5

Re: [PATCH 1/1] block: improve alignment detection and fix 271 test

2023-10-13 Thread Denis V. Lunev
On 9/7/23 23:53, Denis V. Lunev wrote: Unfortunately 271 IO test is broken if started in non-cached mode. Commits commit a6b257a08e3d72219f03e461a52152672fec0612 Author: Nir Soffer Date: Tue Aug 13 21:21:03 2019 +0300 file-posix: Handle undetectable alignment and

[PATCH v3 7/9] qapi/block-core: turn BlockJobInfo into a union

2023-10-13 Thread Fiona Ebner
In preparation to additionally return job-type-specific information. Signed-off-by: Fiona Ebner Reviewed-by: Vladimir Sementsov-Ogievskiy --- No changes in v3. qapi/block-core.json | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/qapi/block-core.json

[PATCH v3 5/9] mirror: implement mirror_change method

2023-10-13 Thread Fiona Ebner
which allows switching the @copy-mode from 'background' to 'write-blocking'. This is useful for management applications, so they can start out in background mode to avoid limiting guest write speed and switch to active mode when certain criteria are fulfilled. In presence of an iothread, the

[PATCH v3 8/9] blockjob: query driver-specific info via a new 'query' driver method

2023-10-13 Thread Fiona Ebner
Signed-off-by: Fiona Ebner --- Changes in v3: * Unlock job mutex while calling the driver's handler for query. blockjob.c | 6 ++ include/block/blockjob_int.h | 5 + 2 files changed, 11 insertions(+) diff --git a/blockjob.c b/blockjob.c index

[PATCH v3 9/9] mirror: return mirror-specific information upon query

2023-10-13 Thread Fiona Ebner
To start out, only actively-synced is returned. For example, this is useful for jobs that started out in background mode and switched to active mode. Once actively-synced is true, it's clear that the mode switch has been completed. Note that completion of the switch might happen much earlier,

[PATCH v3 3/9] block/mirror: move dirty bitmap to filter

2023-10-13 Thread Fiona Ebner
In preparation to allow switching to active mode without draining. Initialization of the bitmap in mirror_dirty_init() still happens with the original/backing BlockDriverState, which should be fine, because the mirror top has the same length. Suggested-by: Vladimir Sementsov-Ogievskiy

[PATCH v3 4/9] block/mirror: determine copy_to_target only once

2023-10-13 Thread Fiona Ebner
In preparation to allow changing the copy_mode via QMP. When running in an iothread, it could be that copy_mode is changed from the main thread in between reading copy_mode in bdrv_mirror_top_pwritev() and reading copy_mode in bdrv_mirror_top_do_write(), so they might end up disagreeing about

[PATCH v3 6/9] qapi/block-core: use JobType for BlockJobInfo's type

2023-10-13 Thread Fiona Ebner
In preparation to turn BlockJobInfo into a union with @type as the discriminator. That requires it to be an enum. No functional change is intended. Signed-off-by: Fiona Ebner Reviewed-by: Vladimir Sementsov-Ogievskiy --- No changes in v3. block/monitor/block-hmp-cmds.c | 4 ++-- blockjob.c

[PATCH v3 1/9] blockjob: introduce block-job-change QMP command

2023-10-13 Thread Fiona Ebner
which will allow changing job-type-specific options after job creation. In the JobVerbTable, the same allow bits as for set-speed are used, because set-speed can be considered an existing change command. Signed-off-by: Fiona Ebner Reviewed-by: Vladimir Sementsov-Ogievskiy --- No changes in

[PATCH v3 2/9] block/mirror: set actively_synced even after the job is ready

2023-10-13 Thread Fiona Ebner
In preparation to allow switching from background to active mode. This ensures that setting actively_synced will not be missed when the switch happens after the job is ready. Signed-off-by: Fiona Ebner Reviewed-by: Vladimir Sementsov-Ogievskiy --- No changes in v3. block/mirror.c | 6 +++---

[PATCH v3 0/9] mirror: allow switching from background to active mode

2023-10-13 Thread Fiona Ebner
Changes in v3: * unlock the job mutex when calling the new block job driver 'query' handler * squash patch adapting iotest output into patch that changes the output * turn accesses to copy_mode and actively_synced atomic * slightly rework error handling in mirror_change

Re: [PATCH v4] migration: hold the BQL during setup

2023-10-13 Thread Juan Quintela
Fiona Ebner wrote: > This is intended to be a semantic revert of commit 9b09503752 > ("migration: run setup callbacks out of big lock"). There have been so > many changes since that commit (e.g. a new setup callback > dirty_bitmap_save_setup() that also needs to be adapted now), it's > easier to

[RFC PATCH v3 76/78] qemu-img.c: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- qemu-img.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-img.c b/qemu-img.c index

[RFC PATCH v3 65/78] hw/nvme: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- hw/nvme/ctrl.c | 24 hw/nvme/dif.c | 4 ++-- 2 files changed, 14 insertions(+), 14

[RFC PATCH v3 39/78] hw/scsi: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- hw/scsi/esp.c | 2 +- hw/scsi/megasas.c | 2 +- hw/scsi/scsi-bus.c | 4 ++-- hw/scsi/scsi-disk.c | 2 +- 4

[RFC PATCH v3 40/78] hw/sd/sdhci.c: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- hw/sd/sdhci.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/sd/sdhci.c

[RFC PATCH v3 53/78] nbd: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- nbd/client.c | 4 ++-- nbd/common.c | 2 +- qemu-nbd.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-)

[RFC PATCH v3 10/78] hw/ide/atapi.c: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- hw/ide/atapi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c index

[RFC PATCH v3 08/78] hw/block: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- hw/block/dataplane/xen-block.c | 4 ++-- hw/block/m25p80.c | 2 +- hw/block/onenand.c | 2

[RFC PATCH v3 02/78] block: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- block/block-copy.c| 1 + block/file-posix.c| 1 + block/io.c| 1 + block/iscsi.c | 1

Re: [RFC PATCH 01/78] include/qemu/compiler.h: replace QEMU_FALLTHROUGH with fallthrough

2023-10-13 Thread Manos Pitsidianakis
On Fri, 13 Oct 2023 at 11:16, Daniel P. Berrangé wrote: > This patch (and all the others in the series) have a ridiculously > large context either side of the change. It makes this horrible > to review as it requires wading through pages of pre-existing code > trying to spot the change. > >

[RFC PATCH 18/78] ui/win32-kbd-hook.c: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- ui/win32-kbd-hook.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/ui/win32-kbd-hook.c

Re: [RFC PATCH 26/78] target/s390x: add fallthrough pseudo-keyword

2023-10-13 Thread David Hildenbrand
On 13.10.23 09:47, Emmanouil Pitsidianakis wrote: In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- Reviewed-by: David Hildenbrand -- Cheers, David / dhildenb

[RFC PATCH 19/78] target/hppa: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- target/hppa/translate.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[RFC PATCH 20/78] target/mips: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- target/mips/sysemu/physaddr.c | 2 +- target/mips/tcg/micromips_translate.c.inc | 4 +-

[RFC PATCH 17/78] ui/sdl2.c: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- ui/sdl2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/sdl2.c b/ui/sdl2.c index

[RFC PATCH v2 02/78] block: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- block/block-copy.c| 1 + block/file-posix.c| 1 + block/io.c| 1 + block/iscsi.c | 1

Re: [RFC PATCH 22/78] target/ppc: add fallthrough pseudo-keyword

2023-10-13 Thread Cédric Le Goater
On 10/13/23 09:47, Emmanouil Pitsidianakis wrote: In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- target/ppc/cpu_init.c| 8

[RFC PATCH v2 10/78] hw/ide/atapi.c: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- hw/ide/atapi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c index

[RFC PATCH v2 53/78] nbd: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- nbd/client.c | 4 ++-- nbd/common.c | 2 +- qemu-nbd.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-)

Re: [RFC PATCH 42/75] hw/misc: add fallthrough pseudo-keyword

2023-10-13 Thread Cédric Le Goater
On 10/13/23 09:47, Emmanouil Pitsidianakis wrote: Signed-off-by: Emmanouil Pitsidianakis --- hw/misc/a9scu.c| 2 ++ hw/misc/aspeed_scu.c | 2 +- hw/misc/bcm2835_property.c | 12 ++-- hw/misc/mos6522.c | 4 ++-- 4 files changed, 11 insertions(+), 9

Re: [RFC PATCH 01/78] include/qemu/compiler.h: replace QEMU_FALLTHROUGH with fallthrough

2023-10-13 Thread Daniel P . Berrangé
On Fri, Oct 13, 2023 at 10:47:05AM +0300, Emmanouil Pitsidianakis wrote: > Signed-off-by: Emmanouil Pitsidianakis > --- > audio/pwaudio.c | 8 > hw/arm/smmuv3.c | 2 +- > include/qemu/compiler.h | 30 +++--- > include/qemu/osdep.h

Re: [RFC PATCH 13/78] hw/adc: add fallthrough pseudo-keyword

2023-10-13 Thread Cédric Le Goater
On 10/13/23 09:47, Emmanouil Pitsidianakis wrote: In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- hw/adc/aspeed_adc.c | 12 ++-- hw/adc/zynq-xadc.c |

Re: [RFC PATCH 00/78] Strict disable implicit fallthrough

2023-10-13 Thread Daniel P . Berrangé
On Fri, Oct 13, 2023 at 10:47:04AM +0300, Emmanouil Pitsidianakis wrote: > > Main questions this RFC poses > = > > - Is this change desirable and net-positive. Yes, IMHO it is worth standardizing on use of the attribute. The allowed use of comments was a nice thing

[RFC PATCH 38/78] system/rtc.c: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- system/rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/rtc.c b/system/rtc.c index

[RFC PATCH 49/75] hw/audio: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
Signed-off-by: Emmanouil Pitsidianakis --- hw/audio/cs4231a.c| 2 +- hw/audio/gusemu_hal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/audio/cs4231a.c b/hw/audio/cs4231a.c index 3aa105748d..3bf0116c68 100644 --- a/hw/audio/cs4231a.c +++ b/hw/audio/cs4231a.c @@

[RFC PATCH 27/78] target/riscv: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- target/riscv/insn_trans/trans_rvi.c.inc | 2 +- target/riscv/insn_trans/trans_rvzce.c.inc | 22

[RFC PATCH v2 08/78] hw/block: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- hw/block/dataplane/xen-block.c | 4 ++-- hw/block/m25p80.c | 2 +- hw/block/onenand.c | 2

[RFC PATCH 55/78] hw/display: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- hw/display/cg3.c| 2 +- hw/display/cirrus_vga.c | 2 +- hw/display/tcx.c| 4 ++-- 3 files changed, 4

[RFC PATCH 42/75] hw/misc: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
Signed-off-by: Emmanouil Pitsidianakis --- hw/misc/a9scu.c| 2 ++ hw/misc/aspeed_scu.c | 2 +- hw/misc/bcm2835_property.c | 12 ++-- hw/misc/mos6522.c | 4 ++-- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/hw/misc/a9scu.c b/hw/misc/a9scu.c

Re: [RFC PATCH 07/78] hw/virtio/virtio-balloon.c: add fallthrough pseudo-keyword

2023-10-13 Thread David Hildenbrand
On 13.10.23 09:47, Emmanouil Pitsidianakis wrote: In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- Reviewed-by: David Hildenbrand -- Cheers, David / dhildenb

[RFC PATCH v2 39/78] hw/scsi: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- hw/scsi/esp.c | 2 +- hw/scsi/megasas.c | 2 +- hw/scsi/scsi-bus.c | 4 ++-- hw/scsi/scsi-disk.c | 2 +- 4

[RFC PATCH 50/78] hw/audio: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- hw/audio/asc.c| 2 +- hw/audio/cs4231a.c| 2 +- hw/audio/gusemu_hal.c | 2 +- 3 files changed, 3

[RFC PATCH 54/78] hw/core: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- hw/core/loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/core/loader.c

[RFC PATCH 53/78] nbd: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- nbd/client.c | 4 ++-- nbd/common.c | 2 +- qemu-nbd.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-)

[RFC PATCH 40/78] hw/sd/sdhci.c: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- hw/sd/sdhci.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/sd/sdhci.c

[RFC PATCH 49/78] hw/arm: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- hw/arm/omap1.c | 8 hw/arm/pxa2xx.c| 6 +++--- hw/arm/stellaris.c | 1 + 3 files changed, 8

[RFC PATCH 24/78] target/alpha: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- target/alpha/helper.c| 6 +++--- target/alpha/translate.c | 4 +++- 2 files changed, 6 insertions(+), 4

[RFC PATCH 54/75] hw/display: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
Signed-off-by: Emmanouil Pitsidianakis --- hw/display/cg3.c| 2 +- hw/display/cirrus_vga.c | 2 +- hw/display/tcx.c| 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/display/cg3.c b/hw/display/cg3.c index 2e9656ae1c..53eb9831b2 100644 ---

[RFC PATCH v2 65/78] hw/nvme: add fallthrough pseudo-keyword

2023-10-13 Thread Emmanouil Pitsidianakis
In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- hw/nvme/ctrl.c | 24 hw/nvme/dif.c | 4 ++-- 2 files changed, 14 insertions(+), 14

  1   2   >