Re: [PATCH v2] block/snapshot: Fix compiler warning with -Wshadow=local

2023-10-23 Thread Markus Armbruster
Thomas Huth writes: > No need to declare a new variable in the the inner code block > here, we can re-use the "ret" variable that has been declared > at the beginning of the function. With this change, the code > can now be successfully compiled with -Wshadow=local again. > > Fixes: a32e781838 ("

Re: [PULL v3 00/46] Misc HW/UI patches for 2023-10-19

2023-10-23 Thread Stefan Hajnoczi
Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/8.2 for any user-visible changes. signature.asc Description: PGP signature

Re: [PATCH 2/2] hw/ide/via: implement legacy/native mode switching

2023-10-23 Thread BALATON Zoltan
On Mon, 23 Oct 2023, Mark Cave-Ayland wrote: On 20/10/2023 00:09, BALATON Zoltan wrote: On Thu, 19 Oct 2023, Mark Cave-Ayland wrote: Allow the VIA IDE controller to switch between both legacy and native modes by calling pci_ide_update_mode() to reconfigure the device whenever PCI_CLASS_PROG i

Re: [PATCH 2/2] hw/ide/via: implement legacy/native mode switching

2023-10-23 Thread Mark Cave-Ayland
On 20/10/2023 00:09, BALATON Zoltan wrote: On Thu, 19 Oct 2023, Mark Cave-Ayland wrote: Allow the VIA IDE controller to switch between both legacy and native modes by calling pci_ide_update_mode() to reconfigure the device whenever PCI_CLASS_PROG is updated. This patch also moves the setting o

Re: [PATCH 1/2] ide/pci.c: introduce pci_ide_update_mode() function

2023-10-23 Thread Mark Cave-Ayland
On 23/10/2023 18:19, Bernhard Beschow wrote: Am 22. Oktober 2023 22:06:30 UTC schrieb Bernhard Beschow : Am 19. Oktober 2023 13:04:51 UTC schrieb Mark Cave-Ayland : This function reads the value of the PCI_CLASS_PROG register for PCI IDE controllers and configures the PCI BARs and/or IDE io

Re: [PATCH 1/2] ide/pci.c: introduce pci_ide_update_mode() function

2023-10-23 Thread Bernhard Beschow
Am 22. Oktober 2023 22:06:30 UTC schrieb Bernhard Beschow : > > >Am 19. Oktober 2023 13:04:51 UTC schrieb Mark Cave-Ayland >: >>This function reads the value of the PCI_CLASS_PROG register for PCI IDE >>controllers and configures the PCI BARs and/or IDE ioports accordingly. >> >>In the case whe

Re: [PATCH 0/2] ide: implement simple legacy/native mode switching for PCI IDE controllers

2023-10-23 Thread Mark Cave-Ayland
On 22/10/2023 23:10, Bernhard Beschow wrote: Am 19. Oktober 2023 13:04:50 UTC schrieb Mark Cave-Ayland : This series adds a simple implementation of legacy/native mode switching for PCI IDE controllers and updates the via-ide device to use it. The approach I take here is to add a new pci_ide_

Re: [PATCH 1/2] ide/pci.c: introduce pci_ide_update_mode() function

2023-10-23 Thread Mark Cave-Ayland
On 22/10/2023 23:06, Bernhard Beschow wrote: Am 19. Oktober 2023 13:04:51 UTC schrieb Mark Cave-Ayland : This function reads the value of the PCI_CLASS_PROG register for PCI IDE controllers and configures the PCI BARs and/or IDE ioports accordingly. In the case where we switch to legacy mode,

[PATCH v2] block/snapshot: Fix compiler warning with -Wshadow=local

2023-10-23 Thread Thomas Huth
No need to declare a new variable in the the inner code block here, we can re-use the "ret" variable that has been declared at the beginning of the function. With this change, the code can now be successfully compiled with -Wshadow=local again. Fixes: a32e781838 ("Mark bdrv_snapshot_fallback() and

Re: [PATCH] block/snapshot: Fix compiler warning with -Wshadow=local

2023-10-23 Thread Thomas Huth
On 23/10/2023 17.26, Markus Armbruster wrote: Thomas Huth writes: No need to declare a new variable in the the inner code block here, we can re-use the "ret" variable that has been declared at the beginning of the function. With this change, the code can now be successfully compiled with -Wsha

Re: [PATCH v2 11/13] migration: Use vmstate_register_any() for audio

2023-10-23 Thread Juan Quintela
Volker Rümelin wrote: > Am 20.10.23 um 11:07 schrieb Juan Quintela: >> We can have more than one audio card. > > Hi Juan, > > I wouldn't use the term "audio card" here. In QEMU speak, Audiodev is an > "audio backend". Thanks. Changed that. > With best regards, > Volker > >> >> void audio_init_a

Re: [PATCH] block/snapshot: Fix compiler warning with -Wshadow=local

2023-10-23 Thread Markus Armbruster
Thomas Huth writes: > No need to declare a new variable in the the inner code block > here, we can re-use the "ret" variable that has been declared > at the beginning of the function. With this change, the code > can now be successfully compiled with -Wshadow=local again. > > Fixes: a32e781838 ("

[PATCH] block/snapshot: Fix compiler warning with -Wshadow=local

2023-10-23 Thread Thomas Huth
No need to declare a new variable in the the inner code block here, we can re-use the "ret" variable that has been declared at the beginning of the function. With this change, the code can now be successfully compiled with -Wshadow=local again. Fixes: a32e781838 ("Mark bdrv_snapshot_fallback() and

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

2023-10-23 Thread Fiona Ebner
Am 23.10.23 um 14:59 schrieb Kevin Wolf: > Am 23.10.2023 um 13:37 hat Fiona Ebner geschrieben: +current = qatomic_cmpxchg(&s->copy_mode, MIRROR_COPY_MODE_BACKGROUND, + change_opts->copy_mode); +if (current != MIRROR_COPY_MODE_BACKGROUND) { +

Re: [PATCH 11/12] hw/xen: automatically assign device index to block devices

2023-10-23 Thread Kevin Wolf
Am 23.10.2023 um 11:30 hat Igor Mammedov geschrieben: > On Wed, 18 Oct 2023 09:32:47 +0100 > David Woodhouse wrote: > > > On Wed, 2023-10-18 at 09:32 +0200, Igor Mammedov wrote: > > > On Mon, 16 Oct 2023 16:19:08 +0100 > > > David Woodhouse wrote: > > > > > > > From: David Woodhouse > > > >

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

2023-10-23 Thread Kevin Wolf
Am 23.10.2023 um 11:31 hat Fiona Ebner geschrieben: > Am 18.10.23 um 17:52 schrieb Kevin Wolf: > > Am 13.10.2023 um 11:21 hat Fiona Ebner geschrieben: > >> which will allow changing job-type-specific options after job > >> creation. > >> > >> In the JobVerbTable, the same allow bits as for set-spee

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

2023-10-23 Thread Kevin Wolf
Am 23.10.2023 um 13:37 hat Fiona Ebner geschrieben: > Am 18.10.23 um 18:59 schrieb Kevin Wolf: > > Am 13.10.2023 um 11:21 hat Fiona Ebner geschrieben: > >> which allows switching the @copy-mode from 'background' to > >> 'write-blocking'. > >> > >> This is useful for management applications, so they

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

2023-10-23 Thread Fiona Ebner
Am 19.10.23 um 15:36 schrieb Kevin Wolf: > Most of this series looks good to me. Apart from the comments I made in > the individual patches, I would like to see iotests coverage of changing > the mirroring mode. At the least to show that the query result changes, > but ideally also that requests re

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

2023-10-23 Thread Fiona Ebner
Am 18.10.23 um 18:59 schrieb Kevin Wolf: > Am 13.10.2023 um 11:21 hat Fiona Ebner geschrieben: >> 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 wri

Re: [PATCH v2 10/20] parallels: Add dirty bitmaps saving

2023-10-23 Thread Alexander Ivanov
On 10/21/23 12:40, Mike Maslenkin wrote: On Thu, Oct 19, 2023 at 4:05 PM Alexander Ivanov wrote: Now dirty bitmaps can be loaded but there is no their saving. Add code for dirty bitmap storage. Signed-off-by: Alexander Ivanov --- block/parallels-ext.c | 167 ++

Re: [PATCH 11/12] hw/xen: automatically assign device index to block devices

2023-10-23 Thread David Woodhouse
On 23 October 2023 10:30:02 BST, Igor Mammedov wrote: >On Wed, 18 Oct 2023 09:32:47 +0100 >David Woodhouse wrote: > >> On Wed, 2023-10-18 at 09:32 +0200, Igor Mammedov wrote: >> > On Mon, 16 Oct 2023 16:19:08 +0100 >> > David Woodhouse wrote: >> > >> > > From: David Woodhouse >> > > >>

Re: [PATCH 1/4] vhost-user-blk: simplify and fix vhost_user_blk_handle_config_change

2023-10-23 Thread Raphael Norwitz
I don’t understand the “valid for resize only” comment. Looks like this is zero day behavior and I can’t tell why it was added. Does anyone know? With that, reasoning and code looks good: Acked-by: Raphael Norwitz > On Oct 6, 2023, at 4:20 PM, Vladimir Sementsov-Ogievskiy > wrote: > > Let's

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

2023-10-23 Thread Fiona Ebner
Am 18.10.23 um 17:52 schrieb Kevin Wolf: > Am 13.10.2023 um 11:21 hat Fiona Ebner geschrieben: >> 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 c

Re: [RFC PATCH 48/78] contrib/vhost-user-scsi: add fallthrough pseudo-keyword

2023-10-23 Thread Raphael Norwitz
> On Oct 13, 2023, at 3:48 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 Reviewed-by: Raphael Norwitz > --- > co

Re: [RFC PATCH 47/75] contrib/vhost-user-scsi: add fallthrough pseudo-keyword

2023-10-23 Thread Raphael Norwitz
> On Oct 13, 2023, at 3:48 AM, Emmanouil Pitsidianakis > wrote: > > Signed-off-by: Emmanouil Pitsidianakis Reviewed-by: Raphael Norwitz > --- > contrib/vhost-user-scsi/vhost-user-scsi.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/contrib/vhost-user-scsi/vhos

Re: [PATCH 11/12] hw/xen: automatically assign device index to block devices

2023-10-23 Thread Igor Mammedov
On Wed, 18 Oct 2023 09:32:47 +0100 David Woodhouse wrote: > On Wed, 2023-10-18 at 09:32 +0200, Igor Mammedov wrote: > > On Mon, 16 Oct 2023 16:19:08 +0100 > > David Woodhouse wrote: > > > > > From: David Woodhouse > > > > > > > is this index a user (guest) visible? > > Yes. It defines

Re: [PATCH v2 22/24] tests/avocado: switch to using xen-net-device for Xen guest tests

2023-10-23 Thread David Woodhouse
On Thu, 2023-10-19 at 16:40 +0100, David Woodhouse wrote: > From: David Woodhouse > > Fix the filename in the MAINTAINERS file too. > > Signed-off-by: David Woodhouse > --- >  MAINTAINERS    | 2 +- >  tests/avocado/kvm_xen_guest.py | 2 +- >  2 files changed, 2 insertions(+), 2 d