Re: [PATCH v4 2/5] s390x: switch pv and subsystem reset ordering on reboot

2023-09-01 Thread Janosch Frank
On 8/31/23 18:21, Marc Hartmayer wrote: On Wed, Aug 23, 2023 at 04:22 PM +0200, Steffen Eiden wrote: From: Janosch Frank Bound APQNs have to be reset before tearing down the secure config via s390_machine_unprotect(). Otherwise the Ultravisor will return a error code. So let's switch the or

Re: [PATCH v2 11/12] hw/vmapple/virtio-blk: Add support for apple virtio-blk

2023-09-01 Thread Mark Cave-Ayland
On 30/08/2023 17:14, Alexander Graf wrote: Hi Alex, Apple has its own virtio-blk PCI device ID where it deviates from the official virtio-pci spec slightly: It puts a new "apple type" field at a static offset in config space and introduces a new barrier command. This patch first creates a mech

Re: [PATCH for-8.2 v2 2/2] migration: Allow user to specify migration switchover bandwidth

2023-09-01 Thread Wang, Lei
On 8/3/2023 23:53, Peter Xu wrote: > Migration bandwidth is a very important value to live migration. It's > because it's one of the major factors that we'll make decision on when to > switchover to destination in a precopy process. > > This value is currently estimated by QEMU during the whole l

Re: [PATCH v2 12/12] hw/vmapple/vmapple: Add vmapple machine type

2023-09-01 Thread Mark Cave-Ayland
On 30/08/2023 17:14, Alexander Graf wrote: Hi Alex, Apple defines a new "vmapple" machine type as part of its proprietary macOS Virtualization.Framework vmm. This machine type is similar to the virt one, but with subtle differences in base devices, a few special vmapple device additions and a v

Re: [PATCH 10/11] net/eth: Clean up local variable shadowing

2023-09-01 Thread Akihiko Odaki
On 2023/09/01 7:56, Philippe Mathieu-Daudé wrote: Fix: net/eth.c:435:20: error: declaration shadows a local variable [-Werror,-Wshadow] size_t input_size = iov_size(pkt, pkt_frags); ^ net/eth.c:413:16: note: previous declaration is here size_t inp

Re: [PATCH] arm64: Restore trapless ptimer access

2023-09-01 Thread Andrew Jones
On Thu, Aug 31, 2023 at 07:00:52PM +, Colton Lewis wrote: > Due to recent KVM changes, QEMU is setting a ptimer offset resulting > in unintended trap and emulate access and a consequent performance > hit. Filter out the PTIMER_CNT register to restore trapless ptimer > access. > > Quoting Andre

Re: [PATCH 00/11] (few more) Steps towards enabling -Wshadow

2023-09-01 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > For rational see Markus cover on > https://lore.kernel.org/qemu-devel/20230831132546.3525721-1-arm...@redhat.com/ > > This series contains few more, my take. > > Based-on: <20230831132546.3525721-1-arm...@redhat.com> Awesome, thanks!

Re: [PATCH 0/7] Steps towards enabling -Wshadow=local

2023-09-01 Thread Markus Armbruster
Markus Armbruster writes: > Local variables shadowing other local variables or parameters make the > code needlessly hard to understand. Bugs love to hide in such code. > Evidence: PATCH 1. > > Enabling -Wshadow would prevent bugs like this one. But we'd have to > clean up all the offenders fir

Re: [PATCH 3/7] ui: Clean up local variable shadowing

2023-09-01 Thread Markus Armbruster
Peter Maydell writes: > On Thu, 31 Aug 2023 at 14:25, Markus Armbruster wrote: >> >> Local variables shadowing other local variables or parameters make the >> code needlessly hard to understand. Tracked down with -Wshadow=local. >> Clean up: delete inner declarations when they are actually redu

Re: [PATCH 7/7] qobject atomics osdep: Make a few macros more hygienic

2023-09-01 Thread Markus Armbruster
Richard Henderson writes: > On 8/31/23 06:25, Markus Armbruster wrote: >> +#define PASTE(a, b) a##b > > We already have glue() in qemu/compiler.h. Missed it, will fix. > The rest of it looks quite sensible. Thanks!

[PULL 03/14] throttle: support read-only and write-only

2023-09-01 Thread Hanna Czenczek
From: zhenwei pi Only one direction is necessary in several scenarios: - a read-only disk - operations on a device are considered as *write* only. For example, encrypt/decrypt/sign/verify operations on a cryptodev use a single *write* timer(read timer callback is defined, but never invoked).

[PULL 07/14] throttle: use THROTTLE_MAX/ARRAY_SIZE for hard code

2023-09-01 Thread Hanna Czenczek
From: zhenwei pi The first dimension of both to_check and bucket_types_size/bucket_types_units is used as throttle direction, use THROTTLE_MAX instead of hard coded number. Also use ARRAY_SIZE() to avoid hard coded number for the second dimension. Hanna noticed that the two array should be stati

[PULL 05/14] cryptodev: use NULL throttle timer cb for read direction

2023-09-01 Thread Hanna Czenczek
From: zhenwei pi Operations on a cryptodev are considered as *write* only, the callback of read direction is never invoked. Use NULL instead of an unreachable path(cryptodev_backend_throttle_timer_cb on read direction). The dummy read timer(never invoked) is already removed here, it means that t

[PULL 00/14] Block patches

2023-09-01 Thread Hanna Czenczek
The following changes since commit f5fe7c17ac4e309e47e78f0f9761aebc8d2f2c81: Merge tag 'pull-tcg-20230823-2' of https://gitlab.com/rth7680/qemu into staging (2023-08-28 16:07:04 -0400) are available in the Git repository at: https://gitlab.com/hreitz/qemu.git tags/pull-block-2023-09-01 for

[PULL 01/14] throttle: introduce enum ThrottleDirection

2023-09-01 Thread Hanna Czenczek
From: zhenwei pi Use enum ThrottleDirection instead of number index. Reviewed-by: Alberto Garcia Reviewed-by: Hanna Czenczek Signed-off-by: zhenwei pi Message-Id: <20230728022006.1098509-2-pizhen...@bytedance.com> Signed-off-by: Hanna Czenczek --- include/qemu/throttle.h | 11 --- u

[PULL 10/14] file-posix: Clear bs->bl.zoned on error

2023-09-01 Thread Hanna Czenczek
bs->bl.zoned is what indicates whether the zone information is present and valid; it is the only thing that raw_refresh_zoned_limits() sets if CONFIG_BLKZONED is not defined, and it is also the only thing that it sets if CONFIG_BLKZONED is defined, but there are no zones. Make sure that it is alwa

[PULL 02/14] test-throttle: use enum ThrottleDirection

2023-09-01 Thread Hanna Czenczek
From: zhenwei pi Use enum ThrottleDirection instead in the throttle test codes. Reviewed-by: Alberto Garcia Reviewed-by: Hanna Czenczek Signed-off-by: zhenwei pi Message-Id: <20230728022006.1098509-3-pizhen...@bytedance.com> Signed-off-by: Hanna Czenczek --- tests/unit/test-throttle.c | 6 +

[PULL 13/14] file-posix: Simplify raw_co_prw's 'out' zone code

2023-09-01 Thread Hanna Czenczek
We duplicate the same condition three times here, pull it out to the top level. Signed-off-by: Hanna Czenczek Message-Id: <20230824155345.109765-5-hre...@redhat.com> Reviewed-by: Sam Li --- block/file-posix.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git

[PULL 11/14] file-posix: Check bs->bl.zoned for zone info

2023-09-01 Thread Hanna Czenczek
Instead of checking bs->wps or bs->bl.zone_size for whether zone information is present, check bs->bl.zoned. That is the flag that raw_refresh_zoned_limits() reliably sets to indicate zone support. If it is set to something other than BLK_Z_NONE, other values and objects like bs->wps and bs->bl.z

[PULL 14/14] tests/file-io-error: New test

2023-09-01 Thread Hanna Czenczek
This is a regression test for https://bugzilla.redhat.com/show_bug.cgi?id=2234374. All this test needs to do is trigger an I/O error inside of file-posix (specifically raw_co_prw()). One reliable way to do this without requiring special privileges is to use a FUSE export, which allows us to injec

[PULL 08/14] fsdev: Use ThrottleDirection instread of bool is_write

2023-09-01 Thread Hanna Czenczek
From: zhenwei pi 'bool is_write' style is obsolete from throttle framework, adapt fsdev to the new style. Cc: Greg Kurz Reviewed-by: Hanna Czenczek Signed-off-by: zhenwei pi Message-Id: <20230728022006.1098509-9-pizhen...@bytedance.com> Reviewed-by: Greg Kurz Signed-off-by: Hanna Czenczek -

[PULL 12/14] file-posix: Fix zone update in I/O error path

2023-09-01 Thread Hanna Czenczek
We must check that zone information is present before running update_zones_wp(). Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2234374 Fixes: Coverity CID 1512459 Signed-off-by: Hanna Czenczek Message-Id: <20230824155345.109765-4-hre...@redhat.com> Reviewed-by: Sam Li --- block/file-posix.

[PULL 06/14] throttle: use enum ThrottleDirection instead of bool is_write

2023-09-01 Thread Hanna Czenczek
From: zhenwei pi enum ThrottleDirection is already there, use ThrottleDirection instead of 'bool is_write' for throttle API, also modify related codes from block, fsdev, cryptodev and tests. Reviewed-by: Hanna Czenczek Signed-off-by: zhenwei pi Message-Id: <20230728022006.1098509-7-pizhen...@b

[PULL 04/14] test-throttle: test read only and write only

2023-09-01 Thread Hanna Czenczek
From: zhenwei pi Reviewed-by: Alberto Garcia Reviewed-by: Hanna Czenczek Signed-off-by: zhenwei pi Message-Id: <20230728022006.1098509-5-pizhen...@bytedance.com> Signed-off-by: Hanna Czenczek --- tests/unit/test-throttle.c | 66 ++ 1 file changed, 66 inser

[PULL 09/14] block/throttle-groups: Use ThrottleDirection instread of bool is_write

2023-09-01 Thread Hanna Czenczek
From: zhenwei pi 'bool is_write' style is obsolete from throttle framework, adapt block throttle groups to the new style: - use ThrottleDirection instead of 'bool is_write'. Ex, schedule_next_request(ThrottleGroupMember *tgm, bool is_write) -> schedule_next_request(ThrottleGroupMember *tgm, T

Re: [PATCH v3 14/17] i386: Use CPUCacheInfo.share_level to encode CPUID[4]

2023-09-01 Thread Zhao Liu
Hi Babu, On Wed, Aug 23, 2023 at 12:18:30PM -0500, Moger, Babu wrote: > Date: Wed, 23 Aug 2023 12:18:30 -0500 > From: "Moger, Babu" > Subject: Re: [PATCH v3 14/17] i386: Use CPUCacheInfo.share_level to encode > CPUID[4] > > Hi Zhao, > > On 8/18/23 02:37, Zhao Liu wrote: > > Hi Babu, > > > > O

Re: [PATCH v3 10/20] hw/virtio: add config support to vhost-user-device

2023-09-01 Thread Albert Esteve
On Thu, Aug 31, 2023 at 6:03 PM Alex Bennée wrote: > > Albert Esteve writes: > > > Sorry to bring up this post, it's been a while since you posted. > > But I have been testing the patch the last couple of days. > > > > On Mon, Jul 10, 2023 at 9:58 PM Michael S. Tsirkin > wrote: > > > > On Mon,

Re: [PATCH for-8.2 v2 2/2] migration: Allow user to specify migration switchover bandwidth

2023-09-01 Thread Daniel P . Berrangé
On Fri, Sep 01, 2023 at 02:55:08PM +0800, Wang, Lei wrote: > On 8/3/2023 23:53, Peter Xu wrote: > > Migration bandwidth is a very important value to live migration. It's > > because it's one of the major factors that we'll make decision on when to > > switchover to destination in a precopy process

Re: [PATCH v3.2 5/7] aspeed: Create flash devices only when defaults are enabled

2023-09-01 Thread Joel Stanley
On Thu, 31 Aug 2023 at 21:13, Cédric Le Goater wrote: > > When the -nodefaults option is set, flash devices should be created > with : > > -blockdev node-name=fmc0,driver=file,filename=./flash.img \ > -device mx66u51235f,cs=0x0,bus=ssi.0,drive=fmc0 \ > > To be noted that in this case, th

Re: [PATCH 7/7] qobject atomics osdep: Make a few macros more hygienic

2023-09-01 Thread Markus Armbruster
Eric Blake writes: > On Thu, Aug 31, 2023 at 03:25:46PM +0200, Markus Armbruster wrote: > > [This paragraph written last: Bear with my stream of consciousness > review below, where I end up duplicating some of the conslusions you > reached before the point where I saw where the patch was headed]

Re: [PATCH] roms: Support compile the efi bios for loongarch

2023-09-01 Thread lixianglai
ping! Hi,Philippe Mathieu-Daudé: Would like to know if there is any progress in the discussion on this issue? In addition, is the compilation of our UEFI done on the fedora38 operating system or on a later version of fedora? The loongarch cross-compilation tool on the fedora38 operating

Re: [PATCH 3/4] cxl/type3: minimum MHD cci support

2023-09-01 Thread Jonathan Cameron via
On Thu, 31 Aug 2023 12:59:24 -0400 Gregory Price wrote: > On Mon, Aug 07, 2023 at 03:56:09PM +0100, Jonathan Cameron wrote: > > On Fri, 21 Jul 2023 12:35:08 -0400 > > Gregory Price wrote: > > > > > Implement the MHD GET_INFO cci command and add a shared memory > > > region to the type3 device

[PATCH v2 03/14] tcg/loongarch64: Lower cmp_vec to vseq/vsle/vslt

2023-09-01 Thread Jiajie Chen
Signed-off-by: Jiajie Chen --- tcg/loongarch64/tcg-target-con-set.h | 1 + tcg/loongarch64/tcg-target.c.inc | 60 2 files changed, 61 insertions(+) diff --git a/tcg/loongarch64/tcg-target-con-set.h b/tcg/loongarch64/tcg-target-con-set.h index 37b3f80bf9..d04916

[PATCH v2 12/14] tcg/loongarch64: Lower vector shift integer ops

2023-09-01 Thread Jiajie Chen
Lower the following ops: - shli_vec - shrv_vec - sarv_vec Signed-off-by: Jiajie Chen --- tcg/loongarch64/tcg-target.c.inc | 21 + tcg/loongarch64/tcg-target.h | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/tcg/loongarch64/tcg-target.c.inc b/tcg/l

[PATCH v2 11/14] tcg/loongarch64: Lower bitsel_vec to vbitsel

2023-09-01 Thread Jiajie Chen
Signed-off-by: Jiajie Chen Reviewed-by: Richard Henderson --- tcg/loongarch64/tcg-target-con-set.h | 1 + tcg/loongarch64/tcg-target.c.inc | 11 ++- tcg/loongarch64/tcg-target.h | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/tcg/loongarch64/tcg-targ

[PATCH v2 14/14] tcg/loongarch64: Lower rotli_vec to vrotri

2023-09-01 Thread Jiajie Chen
Signed-off-by: Jiajie Chen --- tcg/loongarch64/tcg-target.c.inc | 21 + tcg/loongarch64/tcg-target.h | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/tcg/loongarch64/tcg-target.c.inc b/tcg/loongarch64/tcg-target.c.inc index 6fe319a77e..c4e9e0309e 100

[PATCH v2 13/14] tcg/loongarch64: Lower rotv_vec ops to LSX

2023-09-01 Thread Jiajie Chen
Lower the following ops: - rotrv_vec - rotlv_vec Signed-off-by: Jiajie Chen --- tcg/loongarch64/tcg-target.c.inc | 14 ++ tcg/loongarch64/tcg-target.h | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/tcg/loongarch64/tcg-target.c.inc b/tcg/loongarch64/tcg-t

[PATCH v2 09/14] tcg/loongarch64: Lower vector saturated ops

2023-09-01 Thread Jiajie Chen
Lower the following ops: - ssadd_vec - usadd_vec - sssub_vec - ussub_vec Signed-off-by: Jiajie Chen Reviewed-by: Richard Henderson --- tcg/loongarch64/tcg-target.c.inc | 32 tcg/loongarch64/tcg-target.h | 2 +- 2 files changed, 33 insertions(+), 1 deletion

[PATCH v2 06/14] tcg/loongarch64: Lower neg_vec to vneg

2023-09-01 Thread Jiajie Chen
Signed-off-by: Jiajie Chen Reviewed-by: Richard Henderson --- tcg/loongarch64/tcg-target.c.inc | 8 tcg/loongarch64/tcg-target.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/tcg/loongarch64/tcg-target.c.inc b/tcg/loongarch64/tcg-target.c.inc index 20e25dc490

[PATCH v2 00/14] Lower TCG vector ops to LSX

2023-09-01 Thread Jiajie Chen
This patch series allows qemu to utilize LSX instructions on LoongArch machines to execute TCG vector ops. Passed tcg tests with x86_64 and aarch64 cross compilers. Changes since v1: - Optimize dupi_vec/st_vec/ld_vec/cmp_vec/add_vec/sub_vec generation - Lower not_vec/shi_vec/roti_vec/rotv_vec J

[PATCH v2 10/14] tcg/loongarch64: Lower vector shift vector ops

2023-09-01 Thread Jiajie Chen
Lower the following ops: - shlv_vec - shrv_vec - sarv_vec Signed-off-by: Jiajie Chen Reviewed-by: Richard Henderson --- tcg/loongarch64/tcg-target.c.inc | 24 tcg/loongarch64/tcg-target.h | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/tcg/l

[PATCH v2 07/14] tcg/loongarch64: Lower mul_vec to vmul

2023-09-01 Thread Jiajie Chen
Signed-off-by: Jiajie Chen Reviewed-by: Richard Henderson --- tcg/loongarch64/tcg-target.c.inc | 8 tcg/loongarch64/tcg-target.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/tcg/loongarch64/tcg-target.c.inc b/tcg/loongarch64/tcg-target.c.inc index 16bcc2cf1b

[PATCH v2 04/14] tcg/loongarch64: Lower add/sub_vec to vadd/vsub

2023-09-01 Thread Jiajie Chen
Lower the following ops: - add_vec - sub_vec Signed-off-by: Jiajie Chen --- tcg/loongarch64/tcg-target-con-set.h | 1 + tcg/loongarch64/tcg-target.c.inc | 58 2 files changed, 59 insertions(+) diff --git a/tcg/loongarch64/tcg-target-con-set.h b/tcg/loongarch6

[PATCH v2 08/14] tcg/loongarch64: Lower vector min max ops

2023-09-01 Thread Jiajie Chen
Lower the following ops: - smin_vec - smax_vec - umin_vec - umax_vec Signed-off-by: Jiajie Chen Reviewed-by: Richard Henderson --- tcg/loongarch64/tcg-target.c.inc | 32 tcg/loongarch64/tcg-target.h | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-)

[PATCH v2 02/14] tcg/loongarch64: Lower basic tcg vec ops to LSX

2023-09-01 Thread Jiajie Chen
LSX support on host cpu is detected via hwcap. Lower the following ops to LSX: - dup_vec - dupi_vec - dupm_vec - ld_vec - st_vec Signed-off-by: Jiajie Chen --- tcg/loongarch64/tcg-target-con-set.h | 2 + tcg/loongarch64/tcg-target-con-str.h | 1 + tcg/loongarch64/tcg-target.c.inc | 219

[PATCH v2 05/14] tcg/loongarch64: Lower vector bitwise operations

2023-09-01 Thread Jiajie Chen
Lower the following ops: - and_vec - andc_vec - or_vec - orc_vec - xor_vec - nor_vec - not_vec Signed-off-by: Jiajie Chen --- tcg/loongarch64/tcg-target-con-set.h | 2 ++ tcg/loongarch64/tcg-target.c.inc | 44 tcg/loongarch64/tcg-target.h | 8 ++--- 3

[PULL 00/26] aspeed queue

2023-09-01 Thread Cédric Le Goater
The following changes since commit 17780edd81d27fcfdb7a802efc870a99788bd2fc: Merge tag 'quick-fix-pull-request' of https://gitlab.com/bsdimp/qemu into staging (2023-08-31 10:06:29 -0400) are available in the Git repository at: https://github.com/legoater/qemu/ tags/pull-aspee

[PULL 01/26] aspeed: Introduce helper for 32-bit hosts limitation

2023-09-01 Thread Cédric Le Goater
On 32-bit hosts, RAM has a 2047 MB limit. Use a macro to define the default ram size of machines (AST2600 SoC) that can have 2 GB. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée Signed-off-by: Cédric Le Goater --- hw/arm/aspeed.c | 21 + 1 file changed, 9 inse

[PULL 22/26] hw/sd: Add sd_cmd_ALL_SEND_CID() handler

2023-09-01 Thread Cédric Le Goater
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Bin Meng Message-Id: <20210624142209.1193073-10-f4...@amsat.org> Signed-off-by: Cédric Le Goater --- hw/sd/sd.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/hw/sd/s

[PULL 13/26] hw/sd/sdcard: Return ILLEGAL for CMD19/CMD23 prior SD spec v3.01

2023-09-01 Thread Cédric Le Goater
From: Philippe Mathieu-Daudé CMD19 (SEND_TUNING_BLOCK) and CMD23 (SET_BLOCK_COUNT) were added in the Physical Layer Simplified Specification v3.01. When earlier spec version is requested, we should return ILLEGAL. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Bin Meng Message-Id: <2022050

[PULL 12/26] aspeed: Get the BlockBackend of FMC0 from the flash device

2023-09-01 Thread Cédric Le Goater
and get rid of an unnecessary drive_get(IF_MTD) call. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Joel Stanley Signed-off-by: Cédric Le Goater --- hw/arm/aspeed.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index 271512ce5c

[PULL 04/26] hw/i2c/aspeed: Add support for buffer organization

2023-09-01 Thread Cédric Le Goater
From: Hang Yu Added support for the buffer organization option in pool buffer control register.when set to 1,The buffer is split into two parts: Lower 16 bytes for Tx and higher 16 bytes for Rx. Signed-off-by: Hang Yu Reviewed-by: Cédric Le Goater [ clg: checkpatch fixes ] Signed-off-by: Cédri

[PULL 23/26] hw/sd: Add sd_cmd_SEND_RELATIVE_ADDR() handler

2023-09-01 Thread Cédric Le Goater
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Bin Meng Message-Id: <20210624142209.1193073-11-f4...@amsat.org> Signed-off-by: Cédric Le Goater --- hw/sd/sd.c | 28 +++- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/hw

[PULL 09/26] hw/ssi: Check for duplicate CS indexes

2023-09-01 Thread Cédric Le Goater
This to avoid indexes conflicts on the same SSI bus. Adapt machines using multiple devices on the same bus to avoid breakage. Cc: "Edgar E. Iglesias" Cc: Alistair Francis Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Joel Stanley Signed-off-by: Cédric Le Goater --- hw/arm/stellaris.c

[PULL 03/26] hw/i2c/aspeed: Fix TXBUF transmission start position error

2023-09-01 Thread Cédric Le Goater
From: Hang Yu According to the ast2600 datasheet and the linux aspeed i2c driver, the TXBUF transmission start position should be TXBUF[0] instead of TXBUF[1],so the arg pool_start is useless,and the address is not included in TXBUF.So even if Tx Count equals zero,there is at least 1 byte data ne

[PULL 07/26] hw/ssi: Introduce a ssi_get_cs() helper

2023-09-01 Thread Cédric Le Goater
Simple routine to retrieve a DeviceState object on a SPI bus using its CS index. It will be useful for the board to wire the CS lines. Cc: Alistair Francis Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Joel Stanley Signed-off-by: Cédric Le Goater --- include/hw/ssi/ssi.h | 2 ++ hw/ssi/ss

[PULL 11/26] m25p80: Introduce an helper to retrieve the BlockBackend of a device

2023-09-01 Thread Cédric Le Goater
It will help in getting rid of some drive_get(IF_MTD) calls by retrieving the BlockBackend directly from the m25p80 device. Cc: Alistair Francis Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Joel Stanley Signed-off-by: Cédric Le Goater --- include/hw/block/flash.h | 4 hw/block/m25p80

[PULL 10/26] aspeed: Create flash devices only when defaults are enabled

2023-09-01 Thread Cédric Le Goater
When the -nodefaults option is set, flash devices should be created with : -blockdev node-name=fmc0,driver=file,filename=./flash.img \ -device mx66u51235f,cs=0x0,bus=ssi.0,drive=fmc0 \ To be noted that in this case, the ROM will not be installed and the initial boot sequence (U-Boot loadi

[PULL 20/26] hw/sd: Add sd_cmd_GO_IDLE_STATE() handler

2023-09-01 Thread Cédric Le Goater
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Bin Meng Message-Id: <20210624142209.1193073-8-f4...@amsat.org> Signed-off-by: Cédric Le Goater --- hw/sd/sd.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/hw/sd/s

[PULL 14/26] hw/sd: When card is in wrong state, log which state it is

2023-09-01 Thread Cédric Le Goater
From: Philippe Mathieu-Daudé We report the card is in an inconsistent state, but don't precise in which state it is. Add this information, as it is useful when debugging problems. Since we will reuse this code, extract as sd_invalid_state_for_cmd() helper. Signed-off-by: Philippe Mathieu-Daudé

[PULL 15/26] hw/sd: When card is in wrong state, log which spec version is used

2023-09-01 Thread Cédric Le Goater
From: Philippe Mathieu-Daudé Add the sd_version_str() helper. Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Cédric Le Goater --- hw/sd/sd.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 4412559c05be..20e62aff70b6 1

[PULL 25/26] hw/sd: Add sd_cmd_SET_BLOCK_COUNT() handler

2023-09-01 Thread Cédric Le Goater
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Cédric Le Goater --- hw/sd/sd.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 00a59450b726..d1c0b132c227 100644 --- a/hw/sd/sd.

[PULL 18/26] hw/sd: Add sd_cmd_illegal() handler

2023-09-01 Thread Cédric Le Goater
From: Philippe Mathieu-Daudé Log illegal commands as GUEST_ERROR. Note: we are logging back the SDIO commands (CMD5, CMD52-54). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Bin Meng Message-Id: <20210624142209.1193073-6-f4...@amsat.org> Signed-off-by: Cédric Le Goater --- hw/sd/sd.c |

[PULL 16/26] hw/sd: Move proto_name to SDProto structure

2023-09-01 Thread Cédric Le Goater
From: Philippe Mathieu-Daudé Introduce a new structure to hold the bus protocol specific fields: SDProto. The first field is the protocol name. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Bin Meng Message-Id: <20210624142209.1193073-4-f4...@amsat.org> Signed-off-by: Cédric Le Goater --

[PULL 02/26] hw/i2c/aspeed: Fix Tx count and Rx size error in buffer pool mode

2023-09-01 Thread Cédric Le Goater
From: Hang Yu Fixed inconsistency between the regisiter bit field definition header file and the ast2600 datasheet. The reg name is I2CD1C:Pool Buffer Control Register in old register mode and I2CC0C: Master/Slave Pool Buffer Control Register in new register mode. They share bit field [12:8]:Tra

[PULL 08/26] aspeed/smc: Wire CS lines at reset

2023-09-01 Thread Cédric Le Goater
Currently, a set of default flash devices is created at machine init and drives defined on the QEMU command line are associated to the FMC and SPI controllers in sequence : -drive file,format=raw,if=mtd -drive file,format=raw,if=mtd The CS lines are wired in the same creation loop. This mak

[PULL 19/26] hw/sd: Add sd_cmd_unimplemented() handler

2023-09-01 Thread Cédric Le Goater
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé [ clg: Fix redundant assignment of .cmd ] Message-Id: <20210624142209.1193073-7-f4...@amsat.org> Signed-off-by: Cédric Le Goater --- hw/sd/sd.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff

[PULL 26/26] hw/sd: Introduce a "sd-card" SPI variant model

2023-09-01 Thread Cédric Le Goater
and replace the SDState::spi attribute with a test checking the SDProto array of commands. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Cédric Le Goater --- include/hw/sd/sd.h | 3 +++ hw/arm/stellaris.c | 3 +-- hw/riscv/sifive_u.c | 3 +-- hw/sd/sd.c | 54 +

[PULL 24/26] hw/sd: Add sd_cmd_SEND_TUNING_BLOCK() handler

2023-09-01 Thread Cédric Le Goater
From: Joel Stanley Signed-off-by: Joel Stanley Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Cédric Le Goater --- hw/sd/sd.c | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index b46072424108..00a59450b726 100644

[PULL 06/26] hw/ssi: Add a "cs" property to SSIPeripheral

2023-09-01 Thread Cédric Le Goater
Boards will use this new property to identify the device CS line and wire the SPI controllers accordingly. Cc: Alistair Francis Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Joel Stanley Signed-off-by: Cédric Le Goater --- include/hw/ssi/ssi.h | 3 +++ hw/ssi/ssi.c | 7 +++ 2 f

[PULL 17/26] hw/sd: Introduce sd_cmd_handler type

2023-09-01 Thread Cédric Le Goater
From: Philippe Mathieu-Daudé Add 2 command handler arrays in SDProto, for CMD and ACMD. Have sd_normal_command() / sd_app_command() use these arrays: if an command handler is registered, call it, otherwise fall back to current code base. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Bin Me

[PULL 21/26] hw/sd: Add sd_cmd_SEND_OP_CMD() handler

2023-09-01 Thread Cédric Le Goater
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé [ clg: Update cmd_abbrev ] Message-Id: <20210624142209.1193073-9-f4...@amsat.org> Signed-off-by: Cédric Le Goater --- hw/sd/sd.c | 18 +- hw/sd/sdmmc-internal.c | 2 +- 2 files changed, 10 insertion

[PULL 05/26] tests/avocado/machine_aspeed.py: Update SDK images

2023-09-01 Thread Cédric Le Goater
Switch to the latest v8.06 release which introduces interesting changes for the AST2600 I2C and I3C models. Also take the AST2600 A2 images instead of the default since QEMU tries to model The AST2600 A3 SoC. Signed-off-by: Cédric Le Goater Reviewed-by: Joel Stanley Signed-off-by: Cédric Le Goat

Re: [PATCH 00/16] tests: Add CPU topology related smbios test cases

2023-09-01 Thread Michael Tokarev
25.08.2023 06:36, Zhao Liu wrote: From: Zhao Liu Hi all, This patchset is the follow up tests of previous topology fixes in smbios [1]. In this patchset, add these test cases: 1. Add the case to test 2 newly added topology helpers (patch 1): * machine_topo_get_cores_per_socket() * ma

Re: [RFC PATCH v3 20/20] hw/virtio: allow vhost-user-device to be driven by backend

2023-09-01 Thread Albert Esteve
On Mon, Jul 10, 2023 at 6:44 PM Alex Bennée wrote: > Instead of requiring all the information up front allow the > vhost_dev_init to complete and then see what information we have from > the backend. > > This does change the order around somewhat. > > Signed-off-by: Alex Bennée > --- > hw/virti

Re: [PATCH RFC 1/7] include/sysemu/os-posix.h: move *daemonize* declaration together

2023-09-01 Thread Michael Tokarev
15.08.2023 19:22, Eric Blake wrote: On Sat, Aug 12, 2023 at 03:47:55PM +0300, Michael Tokarev wrote: Signed-off-by: Michael Tokarev --- include/sysemu/os-posix.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) Reviewed-by: Eric Blake Eric, thank you very much for the review!

Re: [PATCH v3 06/13] docs/devel: simplify the minimal checklist

2023-09-01 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Ping? > > On 5/7/23 13:44, Philippe Mathieu-Daudé wrote: >> Hi Alex, >> On 17/11/22 18:25, Alex Bennée wrote: >>> The bullet points are quite long and contain process tips. Move those >>> bits of the bullet to the relevant sections and link to them. Use a >>> ta

[PATCH 4/8] os-posix.c, softmmu/vl.c: move os_parse_cmd_args() into qemu_init()

2023-09-01 Thread Michael Tokarev
This will stop linking softmmu-specific os_parse_cmd_args() into every qemu executable which happens to use other functions from os-posix.c, such as os_set_line_buffering() or os_setup_signal_handling(). Also, since there's no win32-specific options, *all* option parsing is now done in softmmu/vl.

[PATCH 1/8] include/sysemu/os-posix.h: move *daemonize* declarations together

2023-09-01 Thread Michael Tokarev
Signed-off-by: Michael Tokarev Reviewed-by: Eric Blake --- include/sysemu/os-posix.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/sysemu/os-posix.h b/include/sysemu/os-posix.h index 1030d39904..65b9c94e91 100644 --- a/include/sysemu/os-posix.h +++ b/include/sy

[PATCH 3/8] os-posix.c: create and export os_set_chroot()

2023-09-01 Thread Michael Tokarev
Signed-off-by: Michael Tokarev Reviewed-by: Eric Blake --- include/sysemu/os-posix.h | 1 + os-posix.c| 9 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/sysemu/os-posix.h b/include/sysemu/os-posix.h index d32630f9e7..8a66763395 100644 --- a/incl

[PATCH 2/8] os-posix: create and export os_set_runas()

2023-09-01 Thread Michael Tokarev
Signed-off-by: Michael Tokarev Reviewed-by: Eric Blake --- include/sysemu/os-posix.h | 1 + os-posix.c| 23 --- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/include/sysemu/os-posix.h b/include/sysemu/os-posix.h index 65b9c94e91..d32630f9e7

[PATCH 7/8] softmmu/vl.c: inline include/qemu/qemu-options.h into vl.c

2023-09-01 Thread Michael Tokarev
qemu-options.h just includes qemu-options.def with some #defines. We already do this in vl.c in other place. Since no other file includes qemu-options.h anymore, just inline it in vl.c. This effectively reverts second half of commit 59a5264b99434. Signed-off-by: Michael Tokarev Reviewed-by: Eric

[PATCH 8/8] util/async-teardown.c: move to softmmu/, only build it when system build is requested

2023-09-01 Thread Michael Tokarev
Signed-off-by: Michael Tokarev Reviewed-by: Eric Blake --- {util => softmmu}/async-teardown.c | 0 softmmu/meson.build| 1 + util/meson.build | 1 - 3 files changed, 1 insertion(+), 1 deletion(-) rename {util => softmmu}/async-teardown.c (100%) diff --git a/ut

[PATCH 5/8] os-posix.c: move code around

2023-09-01 Thread Michael Tokarev
this moves code blocks so that functions and variables which belongs to the same concept are now close to each other. There's no actual code changes in there. Signed-off-by: Michael Tokarev Reviewed-by: Eric Blake --- os-posix.c | 49 +++-- 1 file cha

[PATCH 6/8] os-posix.c: remove unneeded #includes

2023-09-01 Thread Michael Tokarev
Signed-off-by: Michael Tokarev Reviewed-by: Eric Blake --- os-posix.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/os-posix.c b/os-posix.c index 340373d972..d3490b0a9b 100644 --- a/os-posix.c +++ b/os-posix.c @@ -29,8 +29,6 @@ #include #include -/* Needed early for CONFIG_BSD etc.

[PATCH 0/8] move softmmu options processing from os-posix.c to vl.c

2023-09-01 Thread Michael Tokarev
This is the same patchset as the previous RFC, https://lists.nongnu.org/archive/html/qemu-devel/2023-08/msg02145.html . qemu_init() calls os_parse_cmd_args(), which is obviously a very vl.c-specicic piece of code. It looks like when moving vl.c to softmmu/, os-posix.c should've been moved to

Re: [PATCH v2 4/5] vfio/migration: Block VFIO migration with postcopy migration

2023-09-01 Thread YangHang Liu
When try to do the vfio post-copy migration, we can get an expected internal error now: "unable to execute QEMU command 'migrate': :b1:00.2: VFIO migration is not supported with postcopy migration" Tested-by: Yanghang Liu Best Regards, YangHang Liu On Thu, Aug 31, 2023 at 8:57 PM Avihai Ho

Re: [PATCH 0/3] hw/mips/jazz: Rework the NIC init code

2023-09-01 Thread Michael Tokarev
25.08.2023 20:51, Thomas Huth wrote: The NIC init code of the jazz machines is rather cumbersome, with a for-loop around it that is always left after the first iteration. This patch series reworks this a little bit to make the code more readable and shorter. Thomas Huth (3): hw/mips/jazz: Rem

Re: [PATCH v3 06/13] docs/devel: simplify the minimal checklist

2023-09-01 Thread Daniel P . Berrangé
On Fri, Sep 01, 2023 at 11:08:15AM +0100, Alex Bennée wrote: > > Philippe Mathieu-Daudé writes: > > > Ping? > > > > On 5/7/23 13:44, Philippe Mathieu-Daudé wrote: > >> Hi Alex, > >> On 17/11/22 18:25, Alex Bennée wrote: > >>> The bullet points are quite long and contain process tips. Move those

[PATCH] qemu-img: Update documentation for compressed images

2023-09-01 Thread Kevin Wolf
Document the 'compression_type' option for qcow2, and mention that streamOptimized vmdk supports compression, too. Reported-by: Richard W.M. Jones Signed-off-by: Kevin Wolf --- docs/tools/qemu-img.rst | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/docs/

Re: [PATCH] qemu-img: Update documentation for compressed images

2023-09-01 Thread Richard W.M. Jones
On Fri, Sep 01, 2023 at 12:24:30PM +0200, Kevin Wolf wrote: > Document the 'compression_type' option for qcow2, and mention that > streamOptimized vmdk supports compression, too. > > Reported-by: Richard W.M. Jones > Signed-off-by: Kevin Wolf Looks good, so: Reviewed-by: Richard W.M. Jones >

[PATCH] dbus: Properly dispose touch/mouse dbus objects

2023-09-01 Thread Bilal Elmoussaoui
--- ui/dbus-console.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/dbus-console.c b/ui/dbus-console.c index e19774f985..36f7349585 100644 --- a/ui/dbus-console.c +++ b/ui/dbus-console.c @@ -150,6 +150,8 @@ dbus_display_console_dispose(GObject *object) DBusDisplayConsole *ddc = DBU

Re: [PATCH v2 1/2] i386: Add support for SUCCOR feature

2023-09-01 Thread Joao Martins
On 26/07/2023 21:41, John Allen wrote: > Add cpuid bit definition for the SUCCOR feature. This cpuid bit is required to > be exposed to guests to allow them to handle machine check exceptions on AMD > hosts. > > Reported-by: William Roche > Signed-off-by: John Allen I think this is matching the

Re: [PATCH 02/11] target/arm: Clean up local variable shadowing

2023-09-01 Thread Peter Maydell
On Thu, 31 Aug 2023 at 23:56, Philippe Mathieu-Daudé wrote: > > Fix: > > target/arm/tcg/translate-m-nocp.c:509:18: error: declaration shadows a > local variable [-Werror,-Wshadow] > TCGv_i32 tmp = load_cpu_field(v7m.fpdscr[M_REG_NS]); > ^ > target/arm/tcg/translate-m-

Re: [PATCH] dbus: Properly dispose touch/mouse dbus objects

2023-09-01 Thread Philippe Mathieu-Daudé
Hi Bilal, Fixes: 142ca628a7 ("ui: add a D-Bus display backend") Fixes: de9f844ce2 ("ui/dbus: Expose a touch device interface") See https://www.qemu.org/docs/master/devel/submitting-a-patch.html#patch-emails-must-include-a-signed-off-by-line Your patches must include a Signed-off-by: line. T

[RFC PATCH v2] docs/interop: define PROBE feature for vhost-user VirtIO devices

2023-09-01 Thread Alex Bennée
Currently QEMU has to know some details about the VirtIO device supported by a vhost-user daemon to be able to setup the guest. This makes it hard for QEMU to add support for additional vhost-user daemons without adding specific stubs for each additional VirtIO device. This patch suggests a new fe

Re: [PATCH v3 2/4] qcow2: add configurations for zoned format extension

2023-09-01 Thread Markus Armbruster
Sam Li writes: > To configure the zoned format feature on the qcow2 driver, it > requires following arguments: the device size, zoned profile, "Zoned profile" is gone in v3. > zone model, zone size, zone capacity, number of conventional > zones, limits on zone resources (max append sectors, max

Re: [PATCH] fix bdrv_open_child return value check

2023-09-01 Thread Kevin Wolf
Am 31.08.2023 um 14:59 hat Dmitry Frolov geschrieben: > bdrv_open_child() may return NULL. > Usually return value is checked for this function. > Check for return value is more reliable. > > Fixes: 24bc15d1f6 ("vmdk: Use BdrvChild instead of BDS for references to > extents") > > Signed-off-by: D

Re: [PATCH] fix bdrv_open_child return value check

2023-09-01 Thread Дмитрий Фролов
Hello, Kevin. This was just cleanup, based on the inspection. Dmitry. 01.09.2023 14:15, Kevin Wolf пишет: Am 31.08.2023 um 14:59 hat Dmitry Frolov geschrieben: bdrv_open_child() may return NULL. Usually return value is checked for this function. Check for return value is more reliable. Fixes

Re: [PATCH 05/11] hw/arm/virt: Clean up local variable shadowing

2023-09-01 Thread Peter Maydell
On Thu, 31 Aug 2023 at 23:56, Philippe Mathieu-Daudé wrote: > > Fix: > > hw/arm/virt.c:821:22: error: declaration shadows a local variable > [-Werror,-Wshadow] > qemu_irq irq = qdev_get_gpio_in(vms->gic, > ^ > hw/arm/virt.c:803:13: note: previous declaration i

  1   2   3   >