Re: [PATCH 3/9] replay: rewrite async event handling

2022-05-04 Thread Pavel Dovgalyuk
On 26.04.2022 21:54, Richard Henderson wrote: On 4/22/22 04:53, Pavel Dovgalyuk wrote: This patch decouples checkpoints and async events. It was a tricky part of replay implementation. Now it becomes much simpler and easier to maintain. Signed-off-by: Pavel Dovgalyuk Looks ok, as far as I ca

Re: [PATCH] tests/tcg/s390x: Use a different PCRel32 notation in branch-relative-long.c

2022-05-04 Thread Thomas Huth
On 04/05/2022 00.46, Ilya Leoshkevich wrote: On Tue, 2022-05-03 at 21:26 +0200, Thomas Huth wrote: On 03/05/2022 11.02, Thomas Huth wrote: On 02/05/2022 18.48, Ilya Leoshkevich wrote: Binutils >=2.37 and Clang do not accept (. - 0x1) PCRel32 constants. While this looks like a bug that

Re: [PATCH] mos6522: fix linking error when CONFIG_MOS6522 is not set

2022-05-04 Thread Mark Cave-Ayland
On 02/05/2022 14:36, Murilo Opsfelder Araújo wrote: Hi, Mark. Thanks for reviewing.  Comments below. On 5/2/22 06:43, Mark Cave-Ayland wrote: On 30/04/2022 00:31, Murilo Opsfelder Araujo wrote: When CONFIG_MOS6522 is not set, building ppc64-softmmu target fails: /usr/bin/ld: libqemu-p

Re: [PATCH 4/4] block/file: Add file-specific image info

2022-05-04 Thread Hanna Reitz
On 03.05.22 20:50, Eric Blake wrote: On Tue, May 03, 2022 at 04:55:29PM +0200, Hanna Reitz wrote: Add some (optional) information that the file driver can provide for image files, namely the extent size. Signed-off-by: Hanna Reitz --- qapi/block-core.json | 26 -- bl

Re: [PATCH] mos6522: fix linking error when CONFIG_MOS6522 is not set

2022-05-04 Thread Mark Cave-Ayland
On 03/05/2022 15:06, Fabiano Rosas wrote: Murilo Opsfelder Araújo writes: $ cat > configs/devices/rh-virtio.mak <<"EOF" CONFIG_VIRTIO=y CONFIG_VIRTIO_BALLOON=y CONFIG_VIRTIO_BLK=y CONFIG_VIRTIO_GPU=y CONFIG_VIRTIO_INPUT=y CONFIG_VIRTIO_INPUT_HOST=y CONFIG_VIRTIO_NET=y CONFIG_VIRTIO_RNG=y CONF

Re: [PATCH 4/9] replay: simplify async event processing

2022-05-04 Thread Pavel Dovgalyuk
On 26.04.2022 23:26, Richard Henderson wrote: On 4/22/22 04:53, Pavel Dovgalyuk wrote:   static Event *replay_read_event(void)   {   Event *event; +    int event_kind = replay_state.data_kind - EVENT_ASYNC; Use the enum type. Ok. +/* Asynchronous events IDs */ + +enum ReplayAsyncEventK

Re: [PATCH 0/1] hw/arm/aspeed: Add fby35 machine type

2022-05-04 Thread Cédric Le Goater
On 5/4/22 00:47, Peter Delevoryas wrote: On May 3, 2022, at 2:35 PM, Cédric Le Goater wrote: On 5/3/22 22:44, Peter Delevoryas wrote: Hey everyone, I'm submitting another Facebook (Meta Platforms) machine type: this time I'm including an acceptance test too. Unfortunately, this machine boot

[PATCH v5 1/8] block: Support passing NULL ops to blk_set_dev_ops()

2022-05-04 Thread Xie Yongji
This supports passing NULL ops to blk_set_dev_ops() so that we can remove stale ops in some cases. Signed-off-by: Xie Yongji --- block/block-backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/block-backend.c b/block/block-backend.c index e0e1aff4b1..35457a6a1d 10

[PATCH v5 2/8] block-backend: Introduce blk_get_guest_block_size()

2022-05-04 Thread Xie Yongji
Support getting the guest block size for the block backend. It's needed for the following commit. Signed-off-by: Xie Yongji --- block/block-backend.c | 6 ++ include/sysemu/block-backend-io.h | 1 + 2 files changed, 7 insertions(+) diff --git a/block/block-backend.c b/block/bloc

[PATCH v5 7/8] vduse-blk: Add vduse-blk resize support

2022-05-04 Thread Xie Yongji
To support block resize, this uses vduse_dev_update_config() to update the capacity field in configuration space and inject config interrupt on the block resize callback. Signed-off-by: Xie Yongji Reviewed-by: Stefan Hajnoczi --- block/export/vduse-blk.c | 20 1 file change

Re: [PATCH v2 1/1] hw/arm/aspeed: Add fby35 machine type

2022-05-04 Thread Cédric Le Goater
On 5/4/22 00:59, Peter Delevoryas wrote: Add the 'fby35-bmc' machine type based on the kernel DTS[1] and userspace i2c setup scripts[2]. Undefined values are inherited from the AST2600-EVB. Reference images can be found in Facebook OpenBMC Github Release assets as "fby35.mtd". [3] You can boot

[PATCH v5 3/8] block/export: Abstract out the logic of virtio-blk I/O process

2022-05-04 Thread Xie Yongji
Abstract the common logic of virtio-blk I/O process to a function named virtio_blk_process_req(). It's needed for the following commit. Signed-off-by: Xie Yongji --- MAINTAINERS | 2 + block/export/meson.build | 2 +- block/export/vhost-user-blk-server.c

[PATCH v5 0/8] Support exporting BDSs via VDUSE

2022-05-04 Thread Xie Yongji
Hi all, Last few months ago, VDUSE (vDPA Device in Userspace) [1] has been merged into Linux kernel as a framework that make it possible to emulate a vDPA device in userspace. This series aimed at implementing a VDUSE block backend based on the qemu-storage-daemon infrastructure. To support that,

[PATCH v5 4/8] linux-headers: Add vduse.h

2022-05-04 Thread Xie Yongji
This adds vduse header to linux headers so that the relevant VDUSE API can be used in subsequent patches. Signed-off-by: Xie Yongji --- linux-headers/linux/vduse.h | 306 scripts/update-linux-headers.sh | 2 +- 2 files changed, 307 insertions(+), 1 deletion

Re: [PATCH 0/2] Upgrade mingw base packages

2022-05-04 Thread Marc-André Lureau
Hi On Wed, May 4, 2022 at 1:19 AM Yonggang Luo wrote: > v1. upgrade both cirrus and gitlab-ci to the newest mingw base release > > Yonggang Luo (2): > cirrus/win32: upgrade mingw base packages > gitlab-ci: Upgrade mingw base package. > lgtm, Reviewed-by: Marc-André Lureau It would help th

[PATCH v5 6/8] vduse-blk: Implement vduse-blk export

2022-05-04 Thread Xie Yongji
This implements a VDUSE block backends based on the libvduse library. We can use it to export the BDSs for both VM and container (host) usage. The new command-line syntax is: $ qemu-storage-daemon \ --blockdev file,node-name=drive0,filename=test.img \ --export vduse-blk,node-name=drive0,i

Re: [PATCH 2/2] docs: build-platforms: Clarify stance on minor releases and backports

2022-05-04 Thread Andrea Bolognani
On Wed, Apr 20, 2022 at 09:18:47AM -0700, Andrea Bolognani wrote: > On Wed, Apr 20, 2022 at 05:15:08PM +0100, Daniel P. Berrangé wrote: > > On Wed, Apr 20, 2022 at 06:03:11PM +0200, Andrea Bolognani wrote: > > > These changes match those made in the following libvirt commits: > > > > > > 2ac78307

[PATCH v5 5/8] libvduse: Add VDUSE (vDPA Device in Userspace) library

2022-05-04 Thread Xie Yongji
VDUSE [1] is a linux framework that makes it possible to implement software-emulated vDPA devices in userspace. This adds a library as a subproject to help implementing VDUSE backends in QEMU. [1] https://www.kernel.org/doc/html/latest/userspace-api/vduse.html Signed-off-by: Xie Yongji --- MAIN

[PATCH v5 8/8] libvduse: Add support for reconnecting

2022-05-04 Thread Xie Yongji
To support reconnecting after restart or crash, VDUSE backend might need to resubmit inflight I/Os. This stores the metadata such as the index of inflight I/O's descriptors to a shm file so that VDUSE backend can restore them during reconnecting. Signed-off-by: Xie Yongji --- block/export/vduse-

Re: [PATCH 1/4] block: Improve empty format-specific info dump

2022-05-04 Thread Kevin Wolf
Am 03.05.2022 um 16:55 hat Hanna Reitz geschrieben: > When a block driver supports obtaining format-specific information, but > that object only contains optional fields, it is possible that none of > them are present, so that dump_qobject() (called by > bdrv_image_info_specific_dump()) will not pr

Re: [PATCH] target/arm: read access to performance counters from EL0

2022-05-04 Thread Alex Zuepke
Hi, wanted to ping again on this issue before it gets lost. Am 28.04.22 um 15:27 schrieb Alex Zuepke: The ARMv8 manual defines that PMUSERENR_EL0.ER enables read-access to both PMXEVCNTR_EL0 and PMEVCNTR_EL0 registers, however, we only use it for PMXEVCNTR_EL0. Extend to PMEVCNTR_EL0 as well.

Re: [PATCH 2/2] docs: build-platforms: Clarify stance on minor releases and backports

2022-05-04 Thread Daniel P . Berrangé
On Wed, May 04, 2022 at 01:01:03AM -0700, Andrea Bolognani wrote: > On Wed, Apr 20, 2022 at 09:18:47AM -0700, Andrea Bolognani wrote: > > On Wed, Apr 20, 2022 at 05:15:08PM +0100, Daniel P. Berrangé wrote: > > > On Wed, Apr 20, 2022 at 06:03:11PM +0200, Andrea Bolognani wrote: > > > > These changes

Re: [PATCH 2/3] ui/gtk: detach_all option for making all VCs detached upon starting

2022-05-04 Thread Daniel P . Berrangé
On Tue, May 03, 2022 at 04:21:44PM -0700, Dongwon Kim wrote: > On Tue, May 03, 2022 at 10:12:43AM +0100, Daniel P. Berrangé wrote: > > On Thu, Apr 28, 2022 at 04:13:03PM -0700, Dongwon Kim wrote: > > > With "detach-all=on" for display, QEMU starts with all VC windows > > > detached automatically. >

Re: [PATCH v6 00/13] s390x/tcg: Implement Vector-Enhancements Facility 2

2022-05-04 Thread Thomas Huth
On 03/05/2022 16.57, David Miller wrote: It looks like google killed allowing password access early, nothing makes it work anymore. Uh, that's ugly! I hope you'll figure out a way to work-around that problem! They had plans to disable 'less secure app' in may, but it thought it was the end o

Re: [PATCH 2/4] block: Add protocol-specific image info

2022-05-04 Thread Kevin Wolf
Am 03.05.2022 um 16:55 hat Hanna Reitz geschrieben: > The ImageInfo object currently only contains (optional) format-specific > image information. However, perhaps the protocol node can provide some > additional information, so add a new field presenting it. > > Signed-off-by: Hanna Reitz > ---

Re: [PATCH 4/4] block/file: Add file-specific image info

2022-05-04 Thread Kevin Wolf
Am 03.05.2022 um 16:55 hat Hanna Reitz geschrieben: > Add some (optional) information that the file driver can provide for > image files, namely the extent size. > > Signed-off-by: Hanna Reitz > --- > qapi/block-core.json | 26 -- > block/file-posix.c | 30 +

Re: [PATCH v2 16/74] semihosting: Split is_64bit_semihosting per target

2022-05-04 Thread Alistair Francis
On Wed, May 4, 2022 at 6:11 AM Richard Henderson wrote: > > We already have some larger ifdef blocks for ARM and RISCV; > split the function into multiple implementations per arch. > > Signed-off-by: Richard Henderson Reviewed-by: Alistair Francis Alistair > --- > semihosting/arm-compat-semi

Re: [PATCH v2 17/74] semihosting: Split common_semi_flen_buf per target

2022-05-04 Thread Alistair Francis
On Wed, May 4, 2022 at 5:59 AM Richard Henderson wrote: > > We already have some larger ifdef blocks for ARM and RISCV; > split out common_semi_stack_bottom per target. > > Signed-off-by: Richard Henderson Reviewed-by: Alistair Francis Alistair > --- > semihosting/arm-compat-semi.c | 44

Re: [PATCH v2 18/74] semihosting: Split out common_semi_has_synccache

2022-05-04 Thread Alistair Francis
On Wed, May 4, 2022 at 6:02 AM Richard Henderson wrote: > > We already have some larger ifdef blocks for ARM and RISCV; > split out a boolean test for SYS_SYNCCACHE. > > Signed-off-by: Richard Henderson Reviewed-by: Alistair Francis Alistair > --- > semihosting/arm-compat-semi.c | 20 +++

Re: [PATCH] tests/tcg/s390x: Use a different PCRel32 notation in branch-relative-long.c

2022-05-04 Thread Ilya Leoshkevich
On Wed, 2022-05-04 at 09:01 +0200, Thomas Huth wrote: > On 04/05/2022 00.46, Ilya Leoshkevich wrote: > > On Tue, 2022-05-03 at 21:26 +0200, Thomas Huth wrote: > > > On 03/05/2022 11.02, Thomas Huth wrote: > > > > On 02/05/2022 18.48, Ilya Leoshkevich wrote: > > > > > Binutils >=2.37 and Clang do no

Re: [PATCH v6 00/13] s390x/tcg: Implement Vector-Enhancements Facility 2

2022-05-04 Thread Thomas Huth
On 03/05/2022 16.42, David Miller wrote: Sorry, It was in the discussion for v4 patches, as an attachment . mail thread: [PATCH v4 10/11] tests/tcg/s390x: Tests for Vector Enhancements Facility 2 So it likely never made it to the mailing list. I've reattached and will forward the patch (by its

Re: [RFC PATCH] gitlab-ci: Switch the 'check-patch' & 'check-dco' jobs to use python-container

2022-05-04 Thread Daniel P . Berrangé
On Tue, May 03, 2022 at 10:36:21PM +0200, Thomas Huth wrote: > The 'check-patch' and 'check-dco' jobs only need Python and git for > checking the patches, so it's not really necessary to use a container > here that has all the other build dependencies installed. By installing > "git" in the python

branch-relative-long fails on s390x host (was: [PATCH] tests/tcg/s390x: Use a different PCRel32 notation in branch-relative-long.c)

2022-05-04 Thread Thomas Huth
On 04/05/2022 11.07, Ilya Leoshkevich wrote: On Wed, 2022-05-04 at 09:01 +0200, Thomas Huth wrote: On 04/05/2022 00.46, Ilya Leoshkevich wrote: On Tue, 2022-05-03 at 21:26 +0200, Thomas Huth wrote: On 03/05/2022 11.02, Thomas Huth wrote: On 02/05/2022 18.48, Ilya Leoshkevich wrote: Binutils

Re: [RFC PATCH] gitlab-ci: Switch the 'check-patch' & 'check-dco' jobs to use python-container

2022-05-04 Thread Thomas Huth
On 04/05/2022 11.12, Daniel P. Berrangé wrote: On Tue, May 03, 2022 at 10:36:21PM +0200, Thomas Huth wrote: The 'check-patch' and 'check-dco' jobs only need Python and git for checking the patches, so it's not really necessary to use a container here that has all the other build dependencies ins

Re: [PATCH 1/3] target/riscv: Don't force update priv spec version to latest

2022-05-04 Thread Alistair Francis
On Sat, Apr 30, 2022 at 1:43 AM Anup Patel wrote: > > The riscv_cpu_realize() sets priv spec verion to v1.12 when it is > when "env->priv_ver == 0" (i.e. default v1.10) because the enum > value of priv spec v1.10 is zero. > > Due to above issue, the sifive_u machine will see priv spec v1.12 > inst

[PATCH v2 00/50] hppa: general improvements and tidy-ups

2022-05-04 Thread Mark Cave-Ayland
This patchset started off when I noticed that dino.c was accessing parent_obj directly rather than using a QOM cast. After fixing that I noticed quite a few other improvements that could be done to bring hppa up to our recommended coding standards. The main aim of this patchset is to de-couple the

Re: [PATCH 2/3] target/riscv: Add dummy mcountinhibit CSR for priv spec v1.11 or higher

2022-05-04 Thread Alistair Francis
On Sat, Apr 30, 2022 at 2:13 AM Anup Patel wrote: > > The mcountinhibit CSR is mandatory for priv spec v1.11 or higher. For > implementation that don't want to implement can simply have a dummy > mcountinhibit which always zero. > > Fixes: a4b2fa433125 ("target/riscv: Introduce privilege version f

[PATCH v2 01/50] dino: checkpatch fixes

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Reviewed-by: Richard Henderson Acked-by: Helge Deller --- hw/hppa/dino.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/hppa/dino.c b/hw/hppa/dino.c index eab96dd84e..4031cfb7f0 100644 --- a/hw/hppa/dino.c +++ b/hw/hppa/dino.c @@ -10

[PATCH v2 02/50] dino: move registers from dino_init() to DINO_PCI_BRIDGE init function

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/dino.c | 44 +--- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/hw/hppa/dino.c b/hw/hppa/dino.c index 4031cfb7f0..9401b68ff7 100644 --- a/hw/hppa/dino.c +++ b/hw/hppa/dino

[PATCH v2 04/50] dino: move PCI windows initialisation to dino_pcihost_init()

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/dino.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/hw/hppa/dino.c b/hw/hppa/dino.c index c6c01ea14c..bc27aad5dc 100644 --- a/hw/hppa/dino.c +++ b/hw/hppa/dino.c @@ -519,7 +519,6 @@

Re: [RFC PATCH] gitlab-ci: Switch the 'check-patch' & 'check-dco' jobs to use python-container

2022-05-04 Thread Daniel P . Berrangé
On Wed, May 04, 2022 at 11:18:30AM +0200, Thomas Huth wrote: > On 04/05/2022 11.12, Daniel P. Berrangé wrote: > > On Tue, May 03, 2022 at 10:36:21PM +0200, Thomas Huth wrote: > > > The 'check-patch' and 'check-dco' jobs only need Python and git for > > > checking the patches, so it's not really nec

[PATCH v2 05/50] dino: add memory-as property containing a link to the memory address space

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/dino.c | 12 1 file changed, 12 insertions(+) diff --git a/hw/hppa/dino.c b/hw/hppa/dino.c index bc27aad5dc..13b2210462 100644 --- a/hw/hppa/dino.c +++ b/hw/hppa/dino.c @@ -17,6 +17,7 @@ #include "hw/irq.h" #inclu

[PATCH v2 09/50] dino: use QOM cast instead of directly referencing parent_obj

2022-05-04 Thread Mark Cave-Ayland
Use a QOM cast in both dino_chip_read_with_attrs() and dino_chip_write_with_attrs() instead of directly referencing parent_obj. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/dino.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/hppa/dino.c b/h

[PATCH v2 08/50] dino: move initial register configuration to new dino_pcihost_reset() function

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/dino.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/hw/hppa/dino.c b/hw/hppa/dino.c index ae79ddbf5c..d3cd8578a1 100644 --- a/hw/hppa/dino.c +++ b/hw/hppa/dino.c @@ -527,8 +527,6 @@ PCIBus *dino

[PATCH v2 06/50] dino: move pci_setup_iommu() to dino_pcihost_init()

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/dino.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/hppa/dino.c b/hw/hppa/dino.c index 13b2210462..dcebb9f98f 100644 --- a/hw/hppa/dino.c +++ b/hw/hppa/dino.c @@ -556,7 +556,6 @@ PCIBus *dino_init(Memo

[PATCH v2 15/50] dino.h: add defines for DINO IRQ numbers

2022-05-04 Thread Mark Cave-Ayland
This is to allow the DINO IRQs to be defined as qdev GPIOs. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/dino.h | 12 1 file changed, 12 insertions(+) diff --git a/hw/hppa/dino.h b/hw/hppa/dino.h index 1a26667377..70fb8c52c8 100644 --- a/hw/hppa/dino.h +++ b/

[PATCH v2 03/50] dino: move PCI bus initialisation to dino_pcihost_init()

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/dino.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/hw/hppa/dino.c b/hw/hppa/dino.c index 9401b68ff7..c6c01ea14c 100644 --- a/hw/hppa/dino.c +++ b/hw/hppa/dino.c @@ -526,13 +526,7 @@ PCIBus

[PATCH v2 07/50] dino: move PCI bus master address space setup to dino_pcihost_realize()

2022-05-04 Thread Mark Cave-Ayland
Add a new dino_pcihost_unrealize() function to remove the address space when the device is unrealized. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/dino.c | 25 - 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/hw/hppa/dino.c b/hw/hpp

[PATCH v2 20/50] dino: use numerical constant for iar0 and iar1 reset values

2022-05-04 Thread Mark Cave-Ayland
This is to allow us to decouple the DINO device from the board logic. The choice of using a hard-coded constant (along with a comment) is to match how this is already done for toc_addr. If it is decided later that these values need to be configurable then they can easily be converted to qdev proper

[PATCH v2 11/50] dino: split declarations from dino.c into dino.h

2022-05-04 Thread Mark Cave-Ayland
This is to allow access to DinoState from outside dino.c. With the changes to the headers it is now possible to remove the duplicate definition for TYPE_DINO_PCI_HOST_BRIDGE from hppa_sys.h. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/dino.c | 111 +---

[PATCH v2 14/50] machine.c: map DINO device during board configuration

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/dino.c| 3 --- hw/hppa/machine.c | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/hppa/dino.c b/hw/hppa/dino.c index 6c488c908e..82f301653b 100644 --- a/hw/hppa/dino.c +++ b/hw/hppa/dino.c @@ -421,9

[PATCH v2 24/50] lasi: move memory region initialisation to new lasi_init() function

2022-05-04 Thread Mark Cave-Ayland
Create a new lasi_init() instance initialisation function and move the LASI memory region initialisation into it. Rename the existing lasi_init() function to lasi_initfn() for now. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/hppa_sys.h | 2 +- hw/hppa/lasi.c | 13 +++

[PATCH v2 10/50] dino: return PCIBus from dino_init() using qdev_get_child_bus()

2022-05-04 Thread Mark Cave-Ayland
This allows access to the PCI bus without having to reference parent_obj directly. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/dino.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hw/hppa/dino.c b/hw/hppa/dino.c index 77b8089664..d89b48493f 1

[PATCH v2 16/50] dino: define IRQ inputs as qdev GPIOs

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/dino.c | 2 ++ hw/hppa/dino.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/hw/hppa/dino.c b/hw/hppa/dino.c index 82f301653b..f58aebf94d 100644 --- a/hw/hppa/dino.c +++ b/hw/hppa/dino.c @@ -513,6 +513,8 @@ static void di

[PATCH v2 17/50] dino: wire up serial IRQ using a qdev GPIO in machine.c

2022-05-04 Thread Mark Cave-Ayland
This makes it unnecessary to allocate a separate IRQ for the serial port. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/dino.c | 8 +--- hw/hppa/hppa_sys.h | 2 +- hw/hppa/machine.c | 7 --- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/hw/hpp

[PATCH v2 12/50] hppa: use new CONFIG_HPPA_B160L option instead of CONFIG_DINO to build hppa machine

2022-05-04 Thread Mark Cave-Ayland
DINO refers to the GSC-PCI bridge device which will soon be handled separately, however the QEMU HPPA machine is actually based upon the HPPA B160L as indicated by the Linux kernel dmesg output when booted in qemu-system-hppa and the QEMU MAINTAINERS file. Update the machine configuration to use C

[PATCH v2 28/50] lasi: replace lasi_get_irq() with defined constants

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/lasi.c | 31 --- hw/hppa/lasi.h | 9 + 2 files changed, 13 insertions(+), 27 deletions(-) diff --git a/hw/hppa/lasi.c b/hw/hppa/lasi.c index c1dfd5310f..ec079601a1 100644 --- a/hw/hppa/lasi.c

[PATCH v2 25/50] lasi: move register memory mapping from lasi.c to machine.c

2022-05-04 Thread Mark Cave-Ayland
The device register should be mapped directly by the board code. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/lasi.c| 7 +++ hw/hppa/machine.c | 7 +-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/hw/hppa/lasi.c b/hw/hppa/lasi.c index c028b778

[PATCH v2 21/50] dino: move DINO HPA constants from hppa_hardware.h to dino.h

2022-05-04 Thread Mark Cave-Ayland
This is to allow us to decouple the DINO device from the board logic. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/dino.h | 5 + hw/hppa/hppa_hardware.h | 5 - 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/hppa/dino.h b/hw/hppa/dino.h i

[PATCH v2 13/50] dino: change dino_init() to return the DINO device instead of PCIBus

2022-05-04 Thread Mark Cave-Ayland
This is in preparation for using more qdev APIs during the configuration of the HPPA generic machine. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/dino.c | 8 +++- hw/hppa/hppa_sys.h | 3 ++- hw/hppa/machine.c | 6 -- 3 files changed, 9 insertions(+), 8 deleti

[PATCH v2 29/50] lasi: define IRQ inputs as qdev GPIOs

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/lasi.c | 2 ++ hw/hppa/lasi.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/hw/hppa/lasi.c b/hw/hppa/lasi.c index ec079601a1..9489a80bad 100644 --- a/hw/hppa/lasi.c +++ b/hw/hppa/lasi.c @@ -290,6 +290,8 @@ static void la

[PATCH v2 33/50] lasi: move LAN initialisation to machine.c

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/lasi.c| 7 --- hw/hppa/machine.c | 5 + 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/hw/hppa/lasi.c b/hw/hppa/lasi.c index 65139bb29b..88ff9141e4 100644 --- a/hw/hppa/lasi.c +++ b/hw/hppa/lasi.c @@ -

[PATCH v2 22/50] dino: move from hw/hppa to hw/pci-host

2022-05-04 Thread Mark Cave-Ayland
Move the DINO device implementation from hw/hppa to hw/pci-host so that it is located with all the other PCI host bridges. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- MAINTAINERS | 2 ++ hw/hppa/Kconfig | 2 +- hw/hppa/machine.c

[PATCH v2 34/50] lasi: move parallel port initialisation to machine.c

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/lasi.c| 6 -- hw/hppa/machine.c | 6 ++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/hppa/lasi.c b/hw/hppa/lasi.c index 88ff9141e4..6faa98dca5 100644 --- a/hw/hppa/lasi.c +++ b/hw/hppa/lasi.c @@ -

[PATCH v2 18/50] dino: remove unused dino_set_timer_irq() IRQ handler

2022-05-04 Thread Mark Cave-Ayland
According to the comments in dino.c the timer IRQ is unused, so remove the empty dino_set_timer_irq() handler function and simply pass NULL to mc146818_rtc_init() in machine.c instead. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/dino.c | 10 +- hw/hppa/hppa_s

[PATCH v2 30/50] lasi: use qdev GPIOs to wire up IRQs in lasi_initfn()

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/lasi.c | 21 +++-- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/hw/hppa/lasi.c b/hw/hppa/lasi.c index 9489a80bad..32c7514d3a 100644 --- a/hw/hppa/lasi.c +++ b/hw/hppa/lasi.c @@ -234,38 +234,31 @@

[PATCH v2 26/50] lasi: move initialisation of iar and rtc to new lasi_reset() function

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/lasi.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/hw/hppa/lasi.c b/hw/hppa/lasi.c index 08ebe7c6d9..242713c7bd 100644 --- a/hw/hppa/lasi.c +++ b/hw/hppa/lasi.c @@ -303,7 +303,6 @@ Devi

[PATCH v2 31/50] lasi: fix serial port initialisation

2022-05-04 Thread Mark Cave-Ayland
The existing code checks for serial_hd(1) but sets the LASI serial port chardev to serial_hd(0). Use serial_hd(1) for the LASI serial port and also set the serial port endian to DEVICE_BIG_ENDIAN (which also matches the endian of the existing serial port). Signed-off-by: Mark Cave-Ayland Acked-by

[PATCH v2 38/50] lasi: move lasi_initfn() to machine.c

2022-05-04 Thread Mark Cave-Ayland
Move the simplified lasi_initfn() back to machine.c whilst also renaming it back to its original lasi_init() name. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/hppa_sys.h | 2 -- hw/hppa/lasi.c | 10 -- hw/hppa/machine.c | 12 +++- 3 files changed, 11

[PATCH v2 19/50] hppa: move dino_init() from dino.c to machine.c

2022-05-04 Thread Mark Cave-Ayland
Now that dino_init() is completely decoupled from dino.c it can be moved to machine.c with the rest of the board configuration. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/dino.c | 14 -- hw/hppa/hppa_sys.h | 2 -- hw/hppa/machine.c | 12 3

[PATCH v2 32/50] lasi: update lasi_initfn() to return LASIState

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/hppa_sys.h | 3 ++- hw/hppa/lasi.c | 4 ++-- hw/hppa/machine.c | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hw/hppa/hppa_sys.h b/hw/hppa/hppa_sys.h index 0929dedded..3832b787d1 100644 --- a/hw/hppa

[PATCH v2 35/50] lasi: move second serial port initialisation to machine.c

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/lasi.c| 8 hw/hppa/machine.c | 7 +++ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/hw/hppa/lasi.c b/hw/hppa/lasi.c index 6faa98dca5..753a08d454 100644 --- a/hw/hppa/lasi.c +++ b/hw/hppa/lasi.c @

[PATCH v2 39/50] lasi: use constants for device register offsets

2022-05-04 Thread Mark Cave-Ayland
Instead of generating the offset based upon the physical address of the register, add constants for each of the device registers to lasi.h and update lasi.c to use them. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/lasi.c | 28 ++-- hw/hppa/lasi.h |

[PATCH v2 41/50] hppa: move device headers from hppa_sys.h into individual .c files

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/hppa_sys.h | 3 --- hw/hppa/lasi.h | 4 hw/hppa/machine.c | 2 ++ hw/hppa/pci.c | 3 +++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/hw/hppa/hppa_sys.h b/hw/hppa/hppa_sys.h index f7a127be19..9964

[PATCH v2 23/50] lasi: checkpatch fixes

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/lasi.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/hppa/lasi.c b/hw/hppa/lasi.c index 88c3791eb6..3b77fba1c6 100644 --- a/hw/hppa/lasi.c +++ b/hw/hppa/lasi.c @@ -169,10 +169,11 @@ static MemTxResu

[PATCH v2 40/50] lasi: use numerical constant for iar reset value

2022-05-04 Thread Mark Cave-Ayland
This is to allow us to decouple the LASI device from the board logic. If it is decided later that this value needs to be configurable then it can easily be converted to a qdev property. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/lasi.c | 2 +- 1 file changed, 1 insertion

Re: [qemu-web PATCH] Add public key for tarball-signing to download page

2022-05-04 Thread Stefan Hajnoczi
On Wed, May 04, 2022 at 08:31:24AM +0200, Thomas Huth wrote: > On 04/05/2022 02.21, Michael Roth wrote: > > We used to have public keys listed on the SecurityProcess page back > > when it was still part of the wiki, but they are no longer available > > there and some users have asked where to obtai

[PATCH v2 43/50] hppa: move hppa_pci_ignore_ops from pci.c to machine.c

2022-05-04 Thread Mark Cave-Ayland
The memory region only has one user which is for ensuring accesses to the ISA bus memory do not fault. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/hppa_sys.h | 1 - hw/hppa/machine.c | 23 +++ hw/hppa/pci.c | 26 -- 3 fil

[PATCH v2 42/50] lasi: move from hw/hppa to hw/misc

2022-05-04 Thread Mark Cave-Ayland
Move the LASI device implementation from hw/hppa to hw/misc so that it is located with all the other miscellaneous devices. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- MAINTAINERS | 2 ++ hw/hppa/Kconfig | 1 + hw/hppa/machine.c

[PATCH v2 44/50] hppa: remove hw/hppa/pci.c

2022-05-04 Thread Mark Cave-Ayland
The functions and definitions in this file are not used anywhere within the generic hppa machine. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/hppa_sys.h | 6 hw/hppa/meson.build | 2 +- hw/hppa/pci.c| 65 hw/h

[PATCH v2 3/9] replay: rewrite async event handling

2022-05-04 Thread Pavel Dovgalyuk
This patch decouples checkpoints and async events. It was a tricky part of replay implementation. Now it becomes much simpler and easier to maintain. Signed-off-by: Pavel Dovgalyuk Acked-by: Richard Henderson --- accel/tcg/tcg-accel-ops-icount.c |5 +-- docs/replay.txt |

[PATCH v2 27/50] lasi: move LASIState and associated QOM structures to lasi.h

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/lasi.c | 44 +- hw/hppa/lasi.h | 58 ++ 2 files changed, 59 insertions(+), 43 deletions(-) create mode 100644 hw/hppa/lasi.h diff --git a/hw/hp

[PATCH v2 46/50] hppa: move enable_lan() define from hppa_sys.h to machine.c

2022-05-04 Thread Mark Cave-Ayland
Now that the board configuration is in one place, the define is only needed when wiring up the board in machine.c. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/hppa_sys.h | 2 -- hw/hppa/machine.c | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/

[PATCH v2 45/50] hppa: remove unused trace-events from from hw/hppa

2022-05-04 Thread Mark Cave-Ayland
Now that there are no longer any devices in hw/hppa the trace-events file is empty and can be removed. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/trace-events | 1 - meson.build | 1 - 2 files changed, 2 deletions(-) delete mode 100644 hw/hppa/trace-events dif

[PATCH v2 36/50] lasi: move PS2 initialisation to machine.c

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/lasi.c| 5 - hw/hppa/machine.c | 5 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/hppa/lasi.c b/hw/hppa/lasi.c index 753a08d454..9d8c9e3936 100644 --- a/hw/hppa/lasi.c +++ b/hw/hppa/lasi.c @@ -18

[PATCH v2 47/50] hppa: remove the empty hppa_sys.h file

2022-05-04 Thread Mark Cave-Ayland
This file is now just a simple wrapper that includes hppa_hardware.h so remove the file completely, and update its single user in machine.c to include hppa_hardware.h directly. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/hppa_sys.h | 8 hw/hppa/machine.c | 2 +-

[PULL 0/7] QGA patches

2022-05-04 Thread marcandre . lureau
From: Marc-André Lureau The following changes since commit 2e3408b3cc7de4e87a9adafc8c19bfce3abec947: Merge tag 'misc-pull-request' of gitlab.com:marcandre.lureau/qemu into staging (2022-05-03 09:13:17 -0700) are available in the Git repository at: g...@gitlab.com:marcandre.lureau/qemu.git

[PATCH v2 37/50] lasi: remove address space parameter from lasi_initfn()

2022-05-04 Thread Mark Cave-Ayland
Now that all of the LASI devices are mapped by the board, this parameter is no longer required. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/hppa_sys.h | 2 +- hw/hppa/lasi.c | 2 +- hw/hppa/machine.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --gi

[PATCH v2 49/50] hppa: fold machine_hppa_machine_init() into machine_hppa_machine_init_class_init()

2022-05-04 Thread Mark Cave-Ayland
There is no need for a separate function to set the machine class properties separately from the others. Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/machine.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/hw/hppa/machine.c b/hw/hppa/mach

[PATCH v2 50/50] hppa: simplify machine function names in machine.c

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/machine.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c index 724ee24795..ae0bc07e75 100644 --- a/hw/hppa/machine.c +++ b/hw/hppa/machine.c @@ -446,7 +446,7

[PATCH v2 48/50] hppa: use MACHINE QOM macros for defining the hppa machine

2022-05-04 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Acked-by: Helge Deller --- hw/hppa/machine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c index 75820838bf..2393335a64 100644 --- a/hw/hppa/machine.c +++ b/hw/hppa/machine.c @@ -471,8 +471,8 @@ stati

[PATCH v2 2/9] replay: notify vCPU when BH is scheduled

2022-05-04 Thread Pavel Dovgalyuk
vCPU execution should be suspended when new BH is scheduled. This is needed to avoid guest timeouts caused by the long cycles of the execution. In replay mode execution may hang when vCPU sleeps and block event comes to the queue. This patch adds notification which wakes up vCPU or interrupts execu

[PATCH v2 0/9] Record/replay refactoring and stuff

2022-05-04 Thread Pavel Dovgalyuk
The following series includes the following record/replay-related changes: - simplified async event processing - updated record/replay documentation, which was also converted to rst - avocado tests for record/replay of Linux for x86_64 and Aarch64 - some bugfixes v2 changes: - rebased to master

Re: branch-relative-long fails on s390x host (was: [PATCH] tests/tcg/s390x: Use a different PCRel32 notation in branch-relative-long.c)

2022-05-04 Thread Ilya Leoshkevich
On Wed, 2022-05-04 at 11:14 +0200, Thomas Huth wrote: > On 04/05/2022 11.07, Ilya Leoshkevich wrote: > > On Wed, 2022-05-04 at 09:01 +0200, Thomas Huth wrote: > > > On 04/05/2022 00.46, Ilya Leoshkevich wrote: > > > > On Tue, 2022-05-03 at 21:26 +0200, Thomas Huth wrote: > > > > > On 03/05/2022 11.

[PATCH v2 4/9] replay: simplify async event processing

2022-05-04 Thread Pavel Dovgalyuk
This patch joins replay event id and async event id into single byte in the log. It makes processing a bit faster and log a bit smaller. Signed-off-by: Pavel Dovgalyuk -- v2: minor enum fixes (suggested by Richard Henderson) --- replay/replay-events.c | 36 ++---

[PATCH v2 6/9] docs: move replay docs to docs/system/replay.rst

2022-05-04 Thread Pavel Dovgalyuk
This patch adds replay description page, converting prior text from docs/replay.txt. The text was also updated and some sections were moved to devel part of the docs. Signed-off-by: Pavel Dovgalyuk Acked-by: Richard Henderson --- docs/devel/replay.rst | 264 ++- do

[PATCH v2 1/9] replay: fix event queue flush for qemu shutdown

2022-05-04 Thread Pavel Dovgalyuk
This patch fixes event queue flush in the case of emulator shutdown. replay_finish_events should be called when replay_mode is not cleared. Signed-off-by: Pavel Dovgalyuk Reviewed-by: Richard Henderson --- replay/replay.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/

[PATCH v2 5/9] docs: convert docs/devel/replay page to rst

2022-05-04 Thread Pavel Dovgalyuk
This patch converts prior .txt replay devel documentation to .rst. Signed-off-by: Pavel Dovgalyuk Reviewed-by: Richard Henderson --- docs/devel/index-tcg.rst |1 + docs/devel/replay.rst| 54 ++ docs/devel/replay.txt| 46 ---

[PATCH v2 8/9] tests/avocado: add replay Linux tests for virtio machine

2022-05-04 Thread Pavel Dovgalyuk
This patch adds two tests for replaying Linux boot process on x86_64 virtio platform. Signed-off-by: Pavel Dovgalyuk --- tests/avocado/replay_linux.py | 26 ++ 1 file changed, 26 insertions(+) diff --git a/tests/avocado/replay_linux.py b/tests/avocado/replay_linux.py i

[PATCH v2 7/9] tests/avocado: update replay_linux test

2022-05-04 Thread Pavel Dovgalyuk
This patch updates replay_linux test to make it compatible with new LinuxTest class. Signed-off-by: Pavel Dovgalyuk --- tests/avocado/replay_linux.py | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/tests/avocado/replay_linux.py b/tests/avocado/replay_li

  1   2   3   4   >