Re: [PATCH v5 05/11] exec/ioport: Add portio_list_set_address()

2024-07-30 Thread Philippe Mathieu-Daudé
On 29/7/24 23:07, Bernhard Beschow wrote: Am 29. Juli 2024 09:26:19 UTC schrieb "Philippe Mathieu-Daudé" : On 14/1/24 13:39, Bernhard Beschow wrote: Some SuperI/O devices such as the VIA south bridges or the PC87312 controller are able to relocate their SuperI/O functions. Add a convenience

[PATCH 10/18] qapi/crypto: Drop unwanted 'prefix'

2024-07-30 Thread Markus Armbruster
QAPI's 'prefix' feature can make the connection between enumeration type and its constants less than obvious. It's best used with restraint. QCryptoAkCipherKeyType has a 'prefix' that overrides the generated enumeration constants' prefix to QCRYPTO_AKCIPHER_KEY_TYPE. Drop it. The prefix becomes

[PATCH 06/18] qapi/ebpf: Drop temporary 'prefix'

2024-07-30 Thread Markus Armbruster
Recent commit "qapi: Smarter camel_to_upper() to reduce need for 'prefix'" added a temporary 'prefix' to delay changing the generated code. Revert it. This improves EbpfProgramID's generated enumeration constant prefix from EBPF_PROGRAMID to EBPF_PROGRAM_ID. Signed-off-by: Markus Armbruster ---

[PATCH 04/18] qapi/common: Drop temporary 'prefix'

2024-07-30 Thread Markus Armbruster
Recent commit "qapi: Smarter camel_to_upper() to reduce need for 'prefix'" added a temporary 'prefix' to delay changing the generated code. Revert it. This improves OffAutoPCIBAR's generated enumeration constant prefix from OFF_AUTOPCIBAR_OFF to OFF_AUTO_PCIBAR_OFF. Signed-off-by: Markus Armbrus

[PATCH 12/18] qapi/crypto: Rename QCryptoCipherAlgorithm to *Algo, and drop prefix

2024-07-30 Thread Markus Armbruster
QAPI's 'prefix' feature can make the connection between enumeration type and its constants less than obvious. It's best used with restraint. QCryptoCipherAlgorithm has a 'prefix' that overrides the generated enumeration constants' prefix to QCRYPTO_CIPHER_ALG. We could simply drop 'prefix', but

[PATCH 09/18] qapi/machine: Rename CpuS390* to S390Cpu, and drop 'prefix'

2024-07-30 Thread Markus Armbruster
QAPI's 'prefix' feature can make the connection between enumeration type and its constants less than obvious. It's best used with restraint. CpuS390Entitlement has a 'prefix' to change the generated enumeration constants' prefix from CPU_S390_POLARIZATION to S390_CPU_POLARIZATION. Rename the type

[PATCH 03/18] qapi/block-core: Drop temporary 'prefix'

2024-07-30 Thread Markus Armbruster
Recent commit "qapi: Smarter camel_to_upper() to reduce need for 'prefix'" added a temporary 'prefix' to delay changing the generated code. Revert it. This improves XDbgBlockGraphNodeType's generated enumeration constant prefix from X_DBG_BLOCK_GRAPH_NODE_TYPE_BLOCK_BACKEND to XDBG_BLOCK_GRAPH_NO

[PATCH 05/18] qapi/crypto: Drop temporary 'prefix'

2024-07-30 Thread Markus Armbruster
Recent commit "qapi: Smarter camel_to_upper() to reduce need for 'prefix'" added two temporary 'prefix' to delay changing the generated code. Revert them. This improves QCryptoBlockFormat's generated enumeration constant prefix from Q_CRYPTO_BLOCK_FORMAT to QCRYPTO_BLOCK_FORMAT, and QCryptoBlockL

[PATCH 00/18] qapi: Reduce use of 'prefix'.

2024-07-30 Thread Markus Armbruster
QAPI's 'prefix' feature can make the connection between enumeration type and its constants less than obvious. It's best used with restraint. We use 'prefix' for a number of reasons: * To override an ugly default. * To shorten the prefix. * To work around name clashes. This series attacks the

[PATCH 15/18] qapi/crypto: Rename QCryptoRSAPaddingAlgorithm to *Algo, and drop prefix

2024-07-30 Thread Markus Armbruster
QAPI's 'prefix' feature can make the connection between enumeration type and its constants less than obvious. It's best used with restraint. QCryptoRSAPaddingAlgorithm has a 'prefix' that overrides the generated enumeration constants' prefix to QCRYPTO_RSA_PADDING_ALG. We could simply drop 'pref

[PATCH 01/18] qapi: Smarter camel_to_upper() to reduce need for 'prefix'

2024-07-30 Thread Markus Armbruster
camel_to_upper() converts its argument from camel case to upper case with '_' between words. Used for generated enumeration constant prefixes. When some of the words are spelled all caps, where exactly to insert '_' is guesswork. camel_to_upper()'s guesses are bad enough in places to make people

[PATCH 16/18] qapi/crypto: Rename QCryptoAFAlg to QCryptoAFAlgo

2024-07-30 Thread Markus Armbruster
For consistency with other types names *Algo. Signed-off-by: Markus Armbruster --- crypto/afalgpriv.h| 14 +++--- crypto/hmacpriv.h | 2 +- crypto/afalg.c| 8 crypto/cipher-afalg.c | 12 ++-- crypto/hash-afalg.c | 14 +++--- 5 files changed, 2

[PATCH 11/18] qapi/crypto: Rename QCryptoHashAlgorithm to *Algo, and drop prefix

2024-07-30 Thread Markus Armbruster
QAPI's 'prefix' feature can make the connection between enumeration type and its constants less than obvious. It's best used with restraint. QCryptoHashAlgorithm has a 'prefix' that overrides the generated enumeration constants' prefix to QCRYPTO_HASH_ALG. We could simply drop 'prefix', but then

[PATCH 17/18] qapi/cryptodev: Drop unwanted 'prefix'

2024-07-30 Thread Markus Armbruster
QAPI's 'prefix' feature can make the connection between enumeration type and its constants less than obvious. It's best used with restraint. QCryptodevBackendServiceType has a 'prefix' that overrides the generated enumeration constants' prefix to QCRYPTODEV_BACKEND_SERVICE. Drop it. The prefix

[PATCH 08/18] qapi/ui: Drop temporary 'prefix'

2024-07-30 Thread Markus Armbruster
Recent commit "qapi: Smarter camel_to_upper() to reduce need for 'prefix'" added a temporary 'prefix' to delay changing the generated code. Revert it. This improves DisplayGLMode's generated enumeration constant prefix from DISPLAYGL_MODE to DISPLAY_GL_MODE. Signed-off-by: Markus Armbruster ---

[PATCH 14/18] qapi/crypto: Rename QCryptoAkCipherAlgorithm to *Algo, and drop prefix

2024-07-30 Thread Markus Armbruster
QAPI's 'prefix' feature can make the connection between enumeration type and its constants less than obvious. It's best used with restraint. QCryptoAkCipherAlgorithm has a 'prefix' that overrides the generated enumeration constants' prefix to QCRYPTO_AKCIPHER_ALG. We could simply drop 'prefix',

[PATCH 13/18] qapi/crypto: Rename QCryptoIVGenAlgorithm to *Algo, and drop prefix

2024-07-30 Thread Markus Armbruster
QAPI's 'prefix' feature can make the connection between enumeration type and its constants less than obvious. It's best used with restraint. QCryptoIVGenAlgorithm has a 'prefix' that overrides the generated enumeration constants' prefix to QCRYPTO_IVGEN_ALG. We could simply drop 'prefix', but th

[PATCH 18/18] qapi/cryptodev: Rename QCryptodevBackendAlgType to *Algo, and drop prefix

2024-07-30 Thread Markus Armbruster
QAPI's 'prefix' feature can make the connection between enumeration type and its constants less than obvious. It's best used with restraint. QCryptodevBackendAlgType a 'prefix' that overrides the generated enumeration constants' prefix to QCRYPTODEV_BACKEND_ALG. We could simply drop 'prefix', bu

[PATCH 07/18] qapi/machine: Drop temporary 'prefix'

2024-07-30 Thread Markus Armbruster
Recent commit "qapi: Smarter camel_to_upper() to reduce need for 'prefix'" added a temporary 'prefix' to delay changing the generated code. Revert it. This improves HmatLBDataType's generated enumeration constant prefix from HMATLB_DATA_TYPE to HMAT_LB_DATA_TYPE. Signed-off-by: Markus Armbruster

[PATCH 02/18] tests/qapi-schema: Drop temporary 'prefix'

2024-07-30 Thread Markus Armbruster
Recent commit "qapi: Smarter camel_to_upper() to reduce need for 'prefix'" added a temporary 'prefix' to delay changing the generated code. Revert it. This changes TestUnionEnumA's generated enumeration constant prefix from TEST_UNION_ENUMA to TEST_UNION_ENUM_A. Signed-off-by: Markus Armbruster

Re: [PATCH 05/18] qapi/crypto: Drop temporary 'prefix'

2024-07-30 Thread Daniel P . Berrangé
On Tue, Jul 30, 2024 at 10:10:19AM +0200, Markus Armbruster wrote: > Recent commit "qapi: Smarter camel_to_upper() to reduce need for > 'prefix'" added two temporary 'prefix' to delay changing the generated > code. > > Revert them. This improves QCryptoBlockFormat's generated enumeration > consta

Re: [PATCH 10/18] qapi/crypto: Drop unwanted 'prefix'

2024-07-30 Thread Daniel P . Berrangé
On Tue, Jul 30, 2024 at 10:10:24AM +0200, Markus Armbruster wrote: > QAPI's 'prefix' feature can make the connection between enumeration > type and its constants less than obvious. It's best used with > restraint. > > QCryptoAkCipherKeyType has a 'prefix' that overrides the generated > enumeratio

Re: [PATCH 11/18] qapi/crypto: Rename QCryptoHashAlgorithm to *Algo, and drop prefix

2024-07-30 Thread Daniel P . Berrangé
On Tue, Jul 30, 2024 at 10:10:25AM +0200, Markus Armbruster wrote: > QAPI's 'prefix' feature can make the connection between enumeration > type and its constants less than obvious. It's best used with > restraint. > > QCryptoHashAlgorithm has a 'prefix' that overrides the generated > enumeration

Re: [PATCH 12/18] qapi/crypto: Rename QCryptoCipherAlgorithm to *Algo, and drop prefix

2024-07-30 Thread Daniel P . Berrangé
On Tue, Jul 30, 2024 at 10:10:26AM +0200, Markus Armbruster wrote: > QAPI's 'prefix' feature can make the connection between enumeration > type and its constants less than obvious. It's best used with > restraint. > > QCryptoCipherAlgorithm has a 'prefix' that overrides the generated > enumeratio

Re: [PATCH 13/18] qapi/crypto: Rename QCryptoIVGenAlgorithm to *Algo, and drop prefix

2024-07-30 Thread Daniel P . Berrangé
On Tue, Jul 30, 2024 at 10:10:27AM +0200, Markus Armbruster wrote: > QAPI's 'prefix' feature can make the connection between enumeration > type and its constants less than obvious. It's best used with > restraint. > > QCryptoIVGenAlgorithm has a 'prefix' that overrides the generated > enumeration

Re: [PATCH 14/18] qapi/crypto: Rename QCryptoAkCipherAlgorithm to *Algo, and drop prefix

2024-07-30 Thread Daniel P . Berrangé
On Tue, Jul 30, 2024 at 10:10:28AM +0200, Markus Armbruster wrote: > QAPI's 'prefix' feature can make the connection between enumeration > type and its constants less than obvious. It's best used with > restraint. > > QCryptoAkCipherAlgorithm has a 'prefix' that overrides the generated > enumerat

Re: [PATCH 15/18] qapi/crypto: Rename QCryptoRSAPaddingAlgorithm to *Algo, and drop prefix

2024-07-30 Thread Daniel P . Berrangé
On Tue, Jul 30, 2024 at 10:10:29AM +0200, Markus Armbruster wrote: > QAPI's 'prefix' feature can make the connection between enumeration > type and its constants less than obvious. It's best used with > restraint. > > QCryptoRSAPaddingAlgorithm has a 'prefix' that overrides the generated > enumer

Re: [PATCH 16/18] qapi/crypto: Rename QCryptoAFAlg to QCryptoAFAlgo

2024-07-30 Thread Daniel P . Berrangé
On Tue, Jul 30, 2024 at 10:10:30AM +0200, Markus Armbruster wrote: > For consistency with other types names *Algo. > > Signed-off-by: Markus Armbruster > --- > crypto/afalgpriv.h| 14 +++--- > crypto/hmacpriv.h | 2 +- > crypto/afalg.c| 8 > crypto/cipher-afalg

Re: [PATCH 17/18] qapi/cryptodev: Drop unwanted 'prefix'

2024-07-30 Thread Daniel P . Berrangé
On Tue, Jul 30, 2024 at 10:10:31AM +0200, Markus Armbruster wrote: > QAPI's 'prefix' feature can make the connection between enumeration > type and its constants less than obvious. It's best used with > restraint. > > QCryptodevBackendServiceType has a 'prefix' that overrides the > generated enum

Re: [PATCH 18/18] qapi/cryptodev: Rename QCryptodevBackendAlgType to *Algo, and drop prefix

2024-07-30 Thread Daniel P . Berrangé
On Tue, Jul 30, 2024 at 10:10:32AM +0200, Markus Armbruster wrote: > QAPI's 'prefix' feature can make the connection between enumeration > type and its constants less than obvious. It's best used with > restraint. > > QCryptodevBackendAlgType a 'prefix' that overrides the generated > enumeration

Re: [PATCH 09/18] qapi/machine: Rename CpuS390* to S390Cpu, and drop 'prefix'

2024-07-30 Thread Daniel P . Berrangé
On Tue, Jul 30, 2024 at 10:10:23AM +0200, Markus Armbruster wrote: > QAPI's 'prefix' feature can make the connection between enumeration > type and its constants less than obvious. It's best used with > restraint. > > CpuS390Entitlement has a 'prefix' to change the generated enumeration > constan

Re: [PATCH 09/18] qapi/machine: Rename CpuS390* to S390Cpu, and drop 'prefix'

2024-07-30 Thread Zhao Liu
On Tue, Jul 30, 2024 at 10:10:23AM +0200, Markus Armbruster wrote: > Date: Tue, 30 Jul 2024 10:10:23 +0200 > From: Markus Armbruster > Subject: [PATCH 09/18] qapi/machine: Rename CpuS390* to S390Cpu, and drop > 'prefix' > > QAPI's 'prefix' feature can make the connection between enumeration > ty

Re: [PATCH 07/18] qapi/machine: Drop temporary 'prefix'

2024-07-30 Thread Zhao Liu
On Tue, Jul 30, 2024 at 10:10:21AM +0200, Markus Armbruster wrote: > Date: Tue, 30 Jul 2024 10:10:21 +0200 > From: Markus Armbruster > Subject: [PATCH 07/18] qapi/machine: Drop temporary 'prefix' > > Recent commit "qapi: Smarter camel_to_upper() to reduce need for > 'prefix'" added a temporary 'p

Re: [PATCH 01/18] qapi: Smarter camel_to_upper() to reduce need for 'prefix'

2024-07-30 Thread Daniel P . Berrangé
On Tue, Jul 30, 2024 at 10:10:15AM +0200, Markus Armbruster wrote: > camel_to_upper() converts its argument from camel case to upper case > with '_' between words. Used for generated enumeration constant > prefixes. > > When some of the words are spelled all caps, where exactly to insert > '_' is

[PATCH-for-9.1 3/5] hw/sd/sdhci: Reset @data_count index on invalid ADMA transfers

2024-07-30 Thread Philippe Mathieu-Daudé
We neglected to clear the @data_count index on ADMA error, allowing to trigger assertion in sdhci_read_dataport() or sdhci_write_dataport(). Cc: qemu-sta...@nongnu.org Fixes: d7dfca0807 ("hw/sdhci: introduce standard SD host controller") Reported-by: Zheyu Ma Resolves: https://gitlab.com/qemu-pro

[PATCH-for-9.1 1/5] hw/sd/sdcard: Explicit dummy byte value

2024-07-30 Thread Philippe Mathieu-Daudé
On error the DAT lines are left unmodified to their previous states. QEMU returns 0x00 for convenience. Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sd.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 07cb97d88c..c02f04f1ea 10064

[PATCH-for-9.1 2/5] hw/sd/sdcard: Do not abort when reading DAT lines on invalid cmd state

2024-07-30 Thread Philippe Mathieu-Daudé
Guest should not try to read the DAT lines from invalid command state. If it still insists to do so, return a dummy value. Cc: qemu-sta...@nongnu.org Fixes: e2dec2eab0 ("hw/sd/sdcard: Remove default case in read/write on DAT lines") Reported-by: Zheyu Ma Resolves: https://gitlab.com/qemu-project

[PATCH-for-9.1 4/5] hw/sd/sdhci: Trace ADMA descriptors

2024-07-30 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sdhci.c | 8 hw/sd/trace-events | 1 + 2 files changed, 9 insertions(+) diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c index 8293d83556..66b9364e9e 100644 --- a/hw/sd/sdhci.c +++ b/hw/sd/sdhci.c @@ -693,6 +693,11 @@ typedef struct ADMADes

[PATCH-for-9.1 5/5] hw/sd/sdhci: Check ADMA descriptors can be accessed

2024-07-30 Thread Philippe Mathieu-Daudé
Since malicious guest can write invalid addresses to the ADMASYSADDR register, we need to check whether the descriptor could be correctly filled or not. Cc: qemu-sta...@nongnu.org Fixes: d7dfca0807 ("hw/sdhci: introduce standard SD host controller") Signed-off-by: Philippe Mathieu-Daudé --- hw/s

[PATCH-for-9.1 0/5] hw/sd: SDcard & SDHCI fixes

2024-07-30 Thread Philippe Mathieu-Daudé
3 fixes (2 fuzzed). Philippe Mathieu-Daudé (5): hw/sd/sdcard: Explicit dummy byte value hw/sd/sdcard: Do not abort when reading DAT lines on invalid cmd state hw/sd/sdhci: Reset @data_count index on invalid ADMA transfers hw/sd/sdhci: Trace ADMA descriptors hw/sd/sdhci: Check ADMA descri

Re: [PULL 06/27] iotests/{024, 271}: add testcases for qemu-img rebase

2024-07-30 Thread Andrey Drobyshev
On 7/22/24 10:18 AM, Thomas Huth wrote: > [Вы нечасто получаете письма от th...@redhat.com. Узнайте, почему это > важно, по адресу https://aka.ms/LearnAboutSenderIdentification ] > > On 31/10/2023 19.58, Kevin Wolf wrote: >> From: Andrey Drobyshev >> >> As the previous commit changes the logic of

[PATCH] iotests/024: exclude 'backing file format' field from the output

2024-07-30 Thread Andrey Drobyshev
Apparently 'qemu-img info' doesn't report the backing file format field for qed (as it does for qcow2): $ qemu-img create -f qed base.qed 1M && qemu-img create -f qed -b base.qed -F qed top.qed 1M $ qemu-img create -f qcow2 base.qcow2 1M && qemu-img create -f qcow2 -b base.qcow2 -F qcow2 top.qco

Re: [PATCH v5 05/11] exec/ioport: Add portio_list_set_address()

2024-07-30 Thread BALATON Zoltan
On Tue, 30 Jul 2024, Philippe Mathieu-Daudé wrote: On 29/7/24 23:07, Bernhard Beschow wrote: Am 29. Juli 2024 09:26:19 UTC schrieb "Philippe Mathieu-Daudé" : On 14/1/24 13:39, Bernhard Beschow wrote: Some SuperI/O devices such as the VIA south bridges or the PC87312 controller are able to relo

Re: [PATCH v5 0/8] virtio-net: add support for SR-IOV emulation

2024-07-30 Thread Michael S. Tsirkin
On Mon, Jul 15, 2024 at 02:19:06PM +0900, Akihiko Odaki wrote: > Based-on: <20240714-rombar-v2-0-af1504ef5...@daynix.com> > ("[PATCH v2 0/4] hw/pci: Convert rom_bar into OnOffAuto") OK I will revert this for now. We'll try again after the release, there will be time to address s390.

Re: [PATCH 01/18] qapi: Smarter camel_to_upper() to reduce need for 'prefix'

2024-07-30 Thread Markus Armbruster
Avihai, there's a question for you on VfioMigrationState. Daniel P. Berrangé writes: > On Tue, Jul 30, 2024 at 10:10:15AM +0200, Markus Armbruster wrote: >> camel_to_upper() converts its argument from camel case to upper case >> with '_' between words. Used for generated enumeration constant >>

Re: [PATCH v5 0/8] virtio-net: add support for SR-IOV emulation

2024-07-30 Thread Akihiko Odaki
On 2024/07/30 20:37, Michael S. Tsirkin wrote: On Mon, Jul 15, 2024 at 02:19:06PM +0900, Akihiko Odaki wrote: Based-on: <20240714-rombar-v2-0-af1504ef5...@daynix.com> ("[PATCH v2 0/4] hw/pci: Convert rom_bar into OnOffAuto") OK I will revert this for now. We'll try again after the release, the

Re: [PATCH 11/18] qapi/crypto: Rename QCryptoHashAlgorithm to *Algo, and drop prefix

2024-07-30 Thread Markus Armbruster
Daniel P. Berrangé writes: > On Tue, Jul 30, 2024 at 10:10:25AM +0200, Markus Armbruster wrote: >> QAPI's 'prefix' feature can make the connection between enumeration >> type and its constants less than obvious. It's best used with >> restraint. >> >> QCryptoHashAlgorithm has a 'prefix' that ov

[PATCH v4] scripts/qcow2-to-stdout.py: Add script to write qcow2 images to stdout

2024-07-30 Thread Alberto Garcia
This tool converts a disk image to qcow2, writing the result directly to stdout. This can be used for example to send the generated file over the network. This is equivalent to using qemu-img to convert a file to qcow2 and then writing the result to stdout, with the difference that this tool does

Re: [PATCH] iotests/024: exclude 'backing file format' field from the output

2024-07-30 Thread Eric Blake
On Tue, Jul 30, 2024 at 12:47:01PM GMT, Andrey Drobyshev wrote: > Apparently 'qemu-img info' doesn't report the backing file format field > for qed (as it does for qcow2): > > $ qemu-img create -f qed base.qed 1M && qemu-img create -f qed -b base.qed -F > qed top.qed 1M > $ qemu-img create -f qco

Re: [PATCH 04/18] qapi/common: Drop temporary 'prefix'

2024-07-30 Thread Cédric Le Goater
On 7/30/24 10:10, Markus Armbruster wrote: Recent commit "qapi: Smarter camel_to_upper() to reduce need for 'prefix'" added a temporary 'prefix' to delay changing the generated code. Revert it. This improves OffAutoPCIBAR's generated enumeration constant prefix from OFF_AUTOPCIBAR_OFF to OFF_AU

Re: [PATCH 01/18] qapi: Smarter camel_to_upper() to reduce need for 'prefix'

2024-07-30 Thread Avihai Horon
On 30/07/2024 15:22, Markus Armbruster wrote: External email: Use caution opening links or attachments Avihai, there's a question for you on VfioMigrationState. Daniel P. Berrangé writes: On Tue, Jul 30, 2024 at 10:10:15AM +0200, Markus Armbruster wrote: camel_to_upper() converts its arg

Re: [PATCH v5 0/8] virtio-net: add support for SR-IOV emulation

2024-07-30 Thread Michael S. Tsirkin
On Tue, Jul 30, 2024 at 09:26:20PM +0900, Akihiko Odaki wrote: > On 2024/07/30 20:37, Michael S. Tsirkin wrote: > > On Mon, Jul 15, 2024 at 02:19:06PM +0900, Akihiko Odaki wrote: > > > Based-on: <20240714-rombar-v2-0-af1504ef5...@daynix.com> > > > ("[PATCH v2 0/4] hw/pci: Convert rom_bar into OnOff

Re: [PATCH-for-9.1 1/5] hw/sd/sdcard: Explicit dummy byte value

2024-07-30 Thread Richard Henderson
On 7/30/24 19:21, Philippe Mathieu-Daudé wrote: On error the DAT lines are left unmodified to their previous states. QEMU returns 0x00 for convenience. Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sd.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/hw/sd/s

Re: [PATCH-for-9.1 2/5] hw/sd/sdcard: Do not abort when reading DAT lines on invalid cmd state

2024-07-30 Thread Richard Henderson
On 7/30/24 19:21, Philippe Mathieu-Daudé wrote: Guest should not try to read the DAT lines from invalid command state. If it still insists to do so, return a dummy value. Cc:qemu-sta...@nongnu.org Fixes: e2dec2eab0 ("hw/sd/sdcard: Remove default case in read/write on DAT lines") Reported-by: Zh

Re: [PATCH-for-9.1 3/5] hw/sd/sdhci: Reset @data_count index on invalid ADMA transfers

2024-07-30 Thread Richard Henderson
On 7/30/24 19:21, Philippe Mathieu-Daudé wrote: We neglected to clear the @data_count index on ADMA error, allowing to trigger assertion in sdhci_read_dataport() or sdhci_write_dataport(). Cc:qemu-sta...@nongnu.org Fixes: d7dfca0807 ("hw/sdhci: introduce standard SD host controller") Reported-by

Re: [PATCH-for-9.1 4/5] hw/sd/sdhci: Trace ADMA descriptors

2024-07-30 Thread Richard Henderson
On 7/30/24 19:21, Philippe Mathieu-Daudé wrote: Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sdhci.c | 8 hw/sd/trace-events | 1 + 2 files changed, 9 insertions(+) diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c index 8293d83556..66b9364e9e 100644 --- a/hw/sd/sdhci.c +++ b/hw/sd

Re: [PATCH 01/18] qapi: Smarter camel_to_upper() to reduce need for 'prefix'

2024-07-30 Thread Markus Armbruster
Avihai Horon writes: > On 30/07/2024 15:22, Markus Armbruster wrote: >> >> Avihai, there's a question for you on VfioMigrationState. >> >> Daniel P. Berrangé writes: >> >>> On Tue, Jul 30, 2024 at 10:10:15AM +0200, Markus Armbruster wrote: [...] >> * VfioMigrationState >> >>Can't see why t

Re: [PATCH 01/18] qapi: Smarter camel_to_upper() to reduce need for 'prefix'

2024-07-30 Thread Avihai Horon
On 31/07/2024 8:12, Markus Armbruster wrote: External email: Use caution opening links or attachments Avihai Horon writes: On 30/07/2024 15:22, Markus Armbruster wrote: Avihai, there's a question for you on VfioMigrationState. Daniel P. Berrangé writes: On Tue, Jul 30, 2024 at 10:10:1

Re: [PATCH 01/18] qapi: Smarter camel_to_upper() to reduce need for 'prefix'

2024-07-30 Thread Markus Armbruster
Avihai Horon writes: > On 31/07/2024 8:12, Markus Armbruster wrote: >> External email: Use caution opening links or attachments >> >> >> Avihai Horon writes: >> >>> On 30/07/2024 15:22, Markus Armbruster wrote: Avihai, there's a question for you on VfioMigrationState. Daniel P. Be