Re: [PATCH v1] Add dummy Aspeed AST2600 Display Port MCU (DPMCU)

2021-12-13 Thread Troy Lee
On Fri, Dec 10, 2021 at 11:13 PM Cédric Le Goater wrote: > > On 12/10/21 15:33, Troy Lee wrote: > > On Fri, Dec 10, 2021 at 10:05 PM Cédric Le Goater wrote: > >> > >> On 12/10/21 09:30, Troy Lee wrote: > >>> AST2600 Display Port MCU introduces 0x1800~0x1803 as it's memory > >>> and io add

[PATCH v2] MAINTAINERS: Change my email address

2021-12-13 Thread Hailiang Zhang
The zhang.zhanghaili...@huawei.com email address has been stopped. Change it to my new email address. Signed-off-by: Hailiang Zhang --- hi Juan & Dave, Firstly, thank you for your working on maintaining the COLO framework. I didn't have much time on it in the past days. I may have some time in

[PATCH] MAINTAINERS: Change my email address

2021-12-13 Thread Hailiang Zhang
The zhang.zhanghaili...@huawei.com email address has been stopped. Change it to my new email address. Signed-off-by: Hailiang Zhang --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 7543eb4d59..5d9c4243b4 100644 --- a/MAINTAINERS

Meeting today?

2021-12-13 Thread Mark Burton
I realise it’s very short notice, but what about having a discussion today at 15:00 ? Cheers Mark. > On 13 Dec 2021, at 19:53, Daniel P. Berrangé wrote: > > On Mon, Dec 13, 2021 at 07:37:49PM +0100, Paolo Bonzini wrote: >> On 12/13/21 19:07, Daniel P. Berrangé wrote: >>> - /usr/bin/qemu (or

[PATCH] hw/riscv: Use load address rather than entry point for fw_dynamic next_addr

2021-12-13 Thread Jessica Clarke
The original BBL boot method had the kernel embedded as an opaque blob that was blindly jumped to, which OpenSBI implemented as fw_payload. OpenSBI then implemented fw_jump, which allows the payload to be loaded elsewhere, but still blindly jumps to a fixed address at which the kernel is to be load

Re: [PATCH v9 05/10] ACPI ERST: support for ACPI ERST feature

2021-12-13 Thread Ani Sinha
On Tue, Dec 14, 2021 at 2:33 AM Eric DeVolder wrote: > > Ani, an inline response below. > Thanks! > eric > > On 12/10/21 08:09, Ani Sinha wrote: > > On Thu, Dec 9, 2021 at 11:24 PM Eric DeVolder > > wrote: > >> > >> Ani, inline responses below. eric > >> > >> On 12/9/21 00:29, Ani Sinha wrote: >

Re: [PATCH v10 06/10] ACPI ERST: build the ACPI ERST table

2021-12-13 Thread Ani Sinha
On Tue, Dec 14, 2021 at 2:57 AM Eric DeVolder wrote: > > Hi Ani, > inline response below. > Eric > > On 12/12/21 07:43, Ani Sinha wrote: > > . > > > > On Thu, Dec 9, 2021 at 11:28 PM Eric DeVolder > > wrote: > >> > >> This builds the ACPI ERST table to inform OSPM how to communicate > >> with th

Re: [RFC] vhost-vdpa-net: add vhost-vdpa-net host device support

2021-12-13 Thread Jason Wang
On Mon, Dec 13, 2021 at 11:14 PM Stefan Hajnoczi wrote: > > On Mon, Dec 13, 2021 at 10:47:00AM +0800, Jason Wang wrote: > > On Sun, Dec 12, 2021 at 5:30 PM Michael S. Tsirkin wrote: > > > > > > On Sat, Dec 11, 2021 at 03:00:27AM +, Longpeng (Mike, Cloud > > > Infrastructure Service Product D

RE: [RFC] vhost-vdpa-net: add vhost-vdpa-net host device support

2021-12-13 Thread longpeng2--- via
> -Original Message- > From: Qemu-devel [mailto:qemu-devel-bounces+longpeng2=huawei@nongnu.org] > On Behalf Of Stefan Hajnoczi > Sent: Monday, December 13, 2021 11:16 PM > To: Longpeng (Mike, Cloud Infrastructure Service Product Dept.) > > Cc: m...@redhat.com; jasow...@redhat.com; q

[PATCH v2] COLO: Move some trace code behind qemu_mutex_unlock_iothread()

2021-12-13 Thread Rao, Lei
There is no need to put some trace code in the critical section. So, moving it behind qemu_mutex_unlock_iothread() can reduce the lock time. Signed-off-by: Lei Rao --- migration/colo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/migration/colo.c b/migration/colo.c i

Re: [RFC PATCH v3 00/27] Add LoongArch softmmu support.

2021-12-13 Thread yangxiaojuan
thank you! On 12/14/2021 06:43 AM, Mark Cave-Ayland wrote: > On 13/12/2021 03:13, yangxiaojuan wrote: > >> Ping! >> >> Please help review the V3 patch, thank you! > > I've been fairly busy recently, but I will try and find some time to look at > the v3 sometime during the week. > > > ATB, >

[PATCH v7 14/15] meson: Move linux_user_ss to linux-user/

2021-12-13 Thread Richard Henderson
We have no need to reference linux_user_ss outside of linux-user. Go ahead and merge it directly into specific_ss. Reviewed-by: Warner Losh Signed-off-by: Richard Henderson --- meson.build| 3 --- linux-user/meson.build | 4 2 files changed, 4 insertions(+), 3 deletions(-) dif

[PATCH v7 09/15] linux-user: Create special-errno.h

2021-12-13 Thread Richard Henderson
Pull the two internal errno used by qemu internally into their own header file. This includes the one define required by safe-syscall.S. Reviewed-by: Warner Losh Signed-off-by: Richard Henderson --- linux-user/cpu_loop-common.h | 1 + linux-user/generic/target_errno_defs.h | 17

[PATCH v7 11/15] common-user: Move safe-syscall.* from linux-user

2021-12-13 Thread Richard Henderson
Move linux-user safe-syscall.S and safe-syscall-error.c to common-user so that bsd-user can also use it. Also move safe-syscall.h to include/user/. Since there is nothing here that is related to the guest, as opposed to the host, build it once. Reviewed-by: Warner Losh Signed-off-by: Richard He

[PATCH v7 13/15] linux-user: Move thunk.c from top-level

2021-12-13 Thread Richard Henderson
So far, linux-user is the only user of these functions. Clean up the build machinery by restricting it to linux-user. Reviewed-by: Warner Losh Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- meson.build | 1 - thunk.c => linux-user/thunk.c | 0 MAINTA

[PATCH v7 07/15] bsd-user: Rename TARGET_ERESTARTSYS to QEMU_ERESTARTSYS

2021-12-13 Thread Richard Henderson
This value is fully internal to qemu, and so is not a TARGET define. We use this as an extra marker for both host and target errno. Reviewed-by: Warner Losh Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- bsd-user/errno_defs.h | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v7 08/15] linux-user: Rename TARGET_QEMU_ESIGRETURN to QEMU_ESIGRETURN

2021-12-13 Thread Richard Henderson
This value is fully internal to qemu, and so is not a TARGET define. Reviewed-by: Warner Losh Signed-off-by: Richard Henderson --- linux-user/generic/target_errno_defs.h | 2 +- linux-user/aarch64/cpu_loop.c | 2 +- linux-user/aarch64/signal.c| 4 ++-- linux-user/alpha/c

[PATCH v7 12/15] common-user: Adjust system call return on FreeBSD

2021-12-13 Thread Richard Henderson
FreeBSD system calls return positive errno. On the 4 hosts for which we have support, error is indicated by the C bit set or clear. Reviewed-by: Warner Losh Signed-off-by: Richard Henderson --- common-user/host/aarch64/safe-syscall.inc.S | 14 +- common-user/host/arm/safe-syscall.i

[PATCH v7 03/15] linux-user/host/mips: Add safe-syscall.inc.S

2021-12-13 Thread Richard Henderson
Reviewed-by: Warner Losh Signed-off-by: Richard Henderson --- linux-user/host/mips/hostdep.h | 3 + linux-user/host/mips/safe-syscall.inc.S | 148 2 files changed, 151 insertions(+) create mode 100644 linux-user/host/mips/safe-syscall.inc.S diff --git a/linu

[PATCH v7 05/15] linux-user: Remove HAVE_SAFE_SYSCALL and hostdep.h

2021-12-13 Thread Richard Henderson
All supported hosts now define HAVE_SAFE_SYSCALL, so remove the ifdefs. This leaves hostdep.h empty, so remove it. Reviewed-by: Warner Losh Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- linux-user/host/aarch64/hostdep.h | 18 -- linux-user/host/arm/h

[PATCH v7 10/15] bsd-user: Create special-errno.h

2021-12-13 Thread Richard Henderson
Pull the internal errno used by qemu internally its own header file, for use by safe-syscall.S. Reviewed-by: Warner Losh Signed-off-by: Richard Henderson --- bsd-user/errno_defs.h| 6 +- bsd-user/special-errno.h | 24 2 files changed, 29 insertions(+), 1 deleti

[PATCH v7 04/15] linux-user/host/sparc64: Add safe-syscall.inc.S

2021-12-13 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/host/sparc64/hostdep.h | 3 + linux-user/host/sparc64/safe-syscall.inc.S | 89 ++ 2 files changed, 92 insertions(+) create mode 100644 linux-user/host/sparc64/safe-syscall.inc.S diff --git a/linux-user/host/sparc64/ho

[PATCH v7 01/15] linux-user: Untabify all safe-syscall.inc.S

2021-12-13 Thread Richard Henderson
Reviewed-by: Warner Losh Suggested-by: Peter Maydell Signed-off-by: Richard Henderson --- linux-user/host/aarch64/safe-syscall.inc.S | 110 +++--- linux-user/host/arm/safe-syscall.inc.S | 134 - linux-user/host/i386/safe-syscall.inc.S| 158 ++---

[PATCH v7 15/15] meson: Move bsd_user_ss to bsd-user/

2021-12-13 Thread Richard Henderson
We have no need to reference bsd_user_ss outside of bsd-user. Go ahead and merge it directly into specific_ss. Reviewed-by: Warner Losh Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- meson.build | 3 --- bsd-user/meson.build | 4 2 files changed, 4 inser

[PATCH v7 06/15] linux-user: Rename TARGET_ERESTARTSYS to QEMU_ERESTARTSYS

2021-12-13 Thread Richard Henderson
This value is fully internal to qemu, and so is not a TARGET define. We use this as an extra marker for both host and target errno. Reviewed-by: Warner Losh Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- linux-user/generic/target_errno_defs.h | 2 +- linux-user/s

[PATCH v7 00/15] linux-user: simplify safe signal handling

2021-12-13 Thread Richard Henderson
Changes for v7: * Drop incorrect ppc64 "cleanup", which reminded me that we need to select a non-syscall-clobbered register. So that meant changes to the mips edition. Changes for v6: * Re-order patches so that the move to common happens after all of the changes to linux-user. Se

[PATCH v7 02/15] linux-user: Move syscall error detection into safe_syscall_base

2021-12-13 Thread Richard Henderson
The current api from safe_syscall_base() is to return -errno, which is the interface provided by *some* linux kernel abis. The wrapper macro, safe_syscall(), detects error, stores into errno, and returns -1, to match the api of the system syscall(). For those kernel abis that do not return -errno

RE: [RFC] vhost-vdpa-net: add vhost-vdpa-net host device support

2021-12-13 Thread longpeng2--- via
> -Original Message- > From: Jason Wang [mailto:jasow...@redhat.com] > Sent: Monday, December 13, 2021 11:23 AM > To: Longpeng (Mike, Cloud Infrastructure Service Product Dept.) > > Cc: mst ; Parav Pandit ; Yongji Xie > ; Stefan Hajnoczi ; Stefano > Garzarella ; Yechuan ; Gonglei (Arei)

Re: [PATCH v10 06/10] ACPI ERST: build the ACPI ERST table

2021-12-13 Thread Michael S. Tsirkin
On Mon, Dec 13, 2021 at 04:02:26PM -0600, Eric DeVolder wrote: > Michael, > Thanks for reviewing! Inline responses below. > eric > > On 12/12/21 16:56, Michael S. Tsirkin wrote: > > On Thu, Dec 09, 2021 at 12:57:31PM -0500, Eric DeVolder wrote: > > > This builds the ACPI ERST table to inform OSPM

Re: [PATCH v2 3/4] hw/display/vga-mmio: QOM'ify vga_mmio_init() as TYPE_VGA_MMIO

2021-12-13 Thread Mark Cave-Ayland
On 13/12/2021 11:05, Philippe Mathieu-Daudé wrote: On 12/13/21 11:48, Thomas Huth wrote: On 06/12/2021 23.45, Philippe Mathieu-Daudé wrote: Introduce TYPE_VGA_MMIO, a sysbus device. While there is no change in the vga_mmio_init() interface, this is a migration compatibility break of the MIPS

Re: [RFC PATCH v3 00/27] Add LoongArch softmmu support.

2021-12-13 Thread Mark Cave-Ayland
On 13/12/2021 03:13, yangxiaojuan wrote: Ping! Please help review the V3 patch, thank you! I've been fairly busy recently, but I will try and find some time to look at the v3 sometime during the week. ATB, Mark.

Re: [PATCH] Target/arm: Implement Cortex-A5

2021-12-13 Thread Byron Lathi
The goal for me was to eventually add the SAMA5D, so I might have made some assumptions that were not correct for all devices. My apologies for the typos. I will add those changes and re-submit. On Mon, Dec 13, 2021 at 3:46 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 12/13/21

Re: [PATCH v2 2/2] target/hppa: Fix deposit assert from trans_shrpw_imm

2021-12-13 Thread Philippe Mathieu-Daudé
On 12/13/21 19:56, Philippe Mathieu-Daudé wrote: > From: Richard Henderson > > Because sa may be 0, > > tcg_gen_deposit_reg(dest, t0, cpu_gr[a->r1], 32 - sa, sa); > > may attempt a zero-width deposit at bit 32, which will assert > for TARGET_REGISTER_BITS == 32. > > Use the newer extract2

Re: [RFC PATCH] target/ppc: do not silence snan in xscvspdpn

2021-12-13 Thread Philippe Mathieu-Daudé
On 12/13/21 21:15, Matheus K. Ferst wrote: > On 13/12/2021 09:36, Philippe Mathieu-Daudé wrote: >> On 12/13/21 13:13, matheus.fe...@eldorado.org.br wrote: >>> From: Matheus Ferst >>> >>> The non-signalling versions of VSX scalar convert to shorter/longer >>> precision insns doesn't silence SNaNs i

Re: [PATCH v10 06/10] ACPI ERST: build the ACPI ERST table

2021-12-13 Thread Eric DeVolder
Michael, Thanks for reviewing! Inline responses below. eric On 12/12/21 16:56, Michael S. Tsirkin wrote: On Thu, Dec 09, 2021 at 12:57:31PM -0500, Eric DeVolder wrote: This builds the ACPI ERST table to inform OSPM how to communicate with the acpi-erst device. Signed-off-by: Eric DeVolder ---

Re: [PATCH] Target/arm: Implement Cortex-A5

2021-12-13 Thread Richard Henderson
On 12/13/21 1:02 PM, Alex Bennée wrote: +cpu->midr = 0x410fc0f1; hmm wikipedia lists the part number as 0xc05 (and the a15 as 0xc0f) but I can't find the actual value in the TRM. https://developer.arm.com/documentation/ddi0434/c has exactly this value at the top of table 4-9. +cpu-

Re: update hexagon float ref files

2021-12-13 Thread Richard Henderson
On 12/13/21 1:31 PM, Taylor Simpson wrote: Happy holidays to you as well!! Sure - would you prefer a patch or a fresh copy of the files? Which ever is easier for you. r~

RE: update hexagon float ref files

2021-12-13 Thread Taylor Simpson
Happy holidays to you as well!! Sure - would you prefer a patch or a fresh copy of the files? Taylor > -Original Message- > From: Richard Henderson > Sent: Monday, December 13, 2021 3:04 PM > To: Taylor Simpson > Cc: qemu-devel > Subject: update hexagon float ref files > > Happy hol

Re: [PATCH v10 06/10] ACPI ERST: build the ACPI ERST table

2021-12-13 Thread Eric DeVolder
Hi Ani, inline response below. Eric On 12/12/21 07:43, Ani Sinha wrote: . On Thu, Dec 9, 2021 at 11:28 PM Eric DeVolder wrote: This builds the ACPI ERST table to inform OSPM how to communicate with the acpi-erst device. This patch starts in the middle of pci device code addition, between e

Re: [PATCH] Target/arm: Implement Cortex-A5

2021-12-13 Thread Alex Bennée
Byron Lathi writes: > Add support for the Cortex-A5. These changes are based off of the A7 and > A9 init functions, using the appropriate values from the technical > reference manual for the A5. > > Signed-off-by: Byron Lathi > --- > target/arm/cpu_tcg.c | 37 +

[RFC PATCH v5 0/1] s390x: Improvements to SIGP handling [QEMU]

2021-12-13 Thread Eric Farman
Here is an update to the SIGP handling series, to correspond to version 5 of the KVM series [1]. Unlike earlier versions, there is no new interface to exploit. So this simply rearranges processing to mirror expectations on the kernel side. [1] https://lore.kernel.org/r/20211213210550.856213-1-far

[RFC PATCH v5 1/1] s390x: sigp: Reorder the SIGP STOP code

2021-12-13 Thread Eric Farman
Let's wait to mark the VCPU STOPPED until the possible STORE STATUS operation is completed, so that we know the CPU is fully stopped and done doing anything. (When we also clear the possible sigp_order field for STOP orders.) Suggested-by: David Hildenbrand Signed-off-by: Eric Farman --- target

update hexagon float ref files

2021-12-13 Thread Richard Henderson
Happy holidays, Taylor, I've located a bug in tests/multiarch/float_*, which means that the hexagon *.ref files are out of date. At your convenience, would you please check out https://gitlab.com/rth7680/qemu/-/commits/fix-sfp-test and re-generate the files for me? I'll squash the diff into

Re: [PATCH v9 05/10] ACPI ERST: support for ACPI ERST feature

2021-12-13 Thread Eric DeVolder
Ani, an inline response below. Thanks! eric On 12/10/21 08:09, Ani Sinha wrote: On Thu, Dec 9, 2021 at 11:24 PM Eric DeVolder wrote: Ani, inline responses below. eric On 12/9/21 00:29, Ani Sinha wrote: On Fri, Dec 3, 2021 at 12:39 AM Eric DeVolder wrote: This implements a PCI device for

Re: [PATCH v4 1/7] nbd: allow reconnect on open, with corresponding new options

2021-12-13 Thread Eric Blake
On Mon, Dec 13, 2021 at 04:32:34PM +0100, Vladimir Sementsov-Ogievskiy wrote: > It is useful when start of vm and start of nbd server are not > simple to sync. > > Signed-off-by: Vladimir Sementsov-Ogievskiy > Reviewed-by: Eric Blake > --- > qapi/block-core.json | 9 - > block/nbd.c

Re: [PATCH] Target/arm: Implement Cortex-A5

2021-12-13 Thread Richard Henderson
On 12/13/21 10:24 AM, Byron Lathi wrote: Add support for the Cortex-A5. These changes are based off of the A7 and A9 init functions, using the appropriate values from the technical reference manual for the A5. Signed-off-by: Byron Lathi --- target/arm/cpu_tcg.c | 37 ++

Re: Redesign of QEMU startup & initial configuration

2021-12-13 Thread Mark Burton
> On 13 Dec 2021, at 18:59, Daniel P. Berrangé wrote: > > …. we no longer have to solve everything > Ourselves. I support this sentiment. Lets re-factor the code so people can build what they need using an API. Actually, ‘QEMU’ only need support the existing CLI, and provide a suitable inte

Re: [RFC PATCH] target/ppc: do not silence snan in xscvspdpn

2021-12-13 Thread Matheus K. Ferst
On 13/12/2021 09:36, Philippe Mathieu-Daudé wrote: On 12/13/21 13:13, matheus.fe...@eldorado.org.br wrote: From: Matheus Ferst The non-signalling versions of VSX scalar convert to shorter/longer precision insns doesn't silence SNaNs in the hardware. We are currently honoring this behavior in x

Re: [RFC PATCH] target/ppc: do not silence snan in xscvspdpn

2021-12-13 Thread Matheus K. Ferst
On 13/12/2021 12:46, Richard Henderson wrote: On 12/13/21 4:13 AM, matheus.fe...@eldorado.org.br wrote: From: Matheus Ferst The non-signalling versions of VSX scalar convert to shorter/longer precision insns doesn't silence SNaNs in the hardware. We are currently honoring this behavior in xscv

Re: [PATCH] Target/arm: Implement Cortex-A5

2021-12-13 Thread Philippe Mathieu-Daudé
On 12/13/21 19:24, Byron Lathi wrote: > Add support for the Cortex-A5. These changes are based off of the A7 and > A9 init functions, using the appropriate values from the technical > reference manual for the A5. > > Signed-off-by: Byron Lathi > --- > target/arm/cpu_tcg.c | 37 ++

Re: [PATCH] target/ppc: Fix e6500 boot

2021-12-13 Thread BALATON Zoltan
On Mon, 13 Dec 2021, Fabiano Rosas wrote: When Altivec support was added to the e6500 kernel in 2012[1], the QEMU code was not changed, so we don't register the VPU/VPUA exceptions for the e6500: qemu: fatal: Raised an exception without defined vector 73 Note that the error message says 73, in

Re: [PATCH 5/5] gqa-win: get_pci_info: Add g_autofree for few variables

2021-12-13 Thread Marc-André Lureau
On Mon, Dec 13, 2021 at 3:16 PM Kostiantyn Kostiuk wrote: > > Signed-off-by: Kostiantyn Kostiuk > Signed-off-by: Kostiantyn Kostiuk Reviewed-by: Marc-André Lureau (250loc.. the function would deserve to be refactored to not be so long..) > --- > qga/commands-win32.c | 6 ++ > 1 file cha

Re: [PATCH 4/5] gqa-win: get_pci_info: Replace 'while' with 2 calls of the function

2021-12-13 Thread Marc-André Lureau
On Mon, Dec 13, 2021 at 3:16 PM Kostiantyn Kostiuk wrote: > > Microsoft suggests this solution in the documentation: > https://docs.microsoft.com/en-us/windows/win32/api/setupapi/nf-setupapi-setupdigetdeviceinterfacedetaila > > Signed-off-by: Kostiantyn Kostiuk > Signed-off-by: Kostiantyn Kostiuk

Re: [PATCH 3/5] gqa-win: get_pci_info: Free parent_dev_info properly

2021-12-13 Thread Marc-André Lureau
On Mon, Dec 13, 2021 at 3:16 PM Kostiantyn Kostiuk wrote: > > In case when the function fails to get parent device data, > the parent_dev_info variable will be initialized, but not freed. > > Signed-off-by: Kostiantyn Kostiuk > Signed-off-by: Kostiantyn Kostiuk Reviewed-by: Marc-André Lureau

Re: [PATCH 2/5] gqa-win: get_pci_info: Use common 'cleanup' label

2021-12-13 Thread Marc-André Lureau
On Mon, Dec 13, 2021 at 3:16 PM Kostiantyn Kostiuk wrote: > > To prevent memory leaks, always try to free initialized variables. > > Signed-off-by: Kostiantyn Kostiuk > Signed-off-by: Kostiantyn Kostiuk Reviewed-by: Marc-André Lureau (nit: since it's a common return point, I would rather name

Re: [PATCH 1/5] gqa-win: get_pci_info: Clean dev_info if handle is valid

2021-12-13 Thread Marc-André Lureau
On Mon, Dec 13, 2021 at 3:16 PM Kostiantyn Kostiuk wrote: > > Signed-off-by: Kostiantyn Kostiuk > Signed-off-by: Kostiantyn Kostiuk Reviewed-by: Marc-André Lureau > --- > qga/commands-win32.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/qga/commands-win32.c

[PATCH v2 2/2] target/hppa: Fix deposit assert from trans_shrpw_imm

2021-12-13 Thread Philippe Mathieu-Daudé
From: Richard Henderson Because sa may be 0, tcg_gen_deposit_reg(dest, t0, cpu_gr[a->r1], 32 - sa, sa); may attempt a zero-width deposit at bit 32, which will assert for TARGET_REGISTER_BITS == 32. Use the newer extract2 when possible, which itself includes the rotri special case; otherwis

[PATCH v2 1/2] target/hppa: Minor code movement

2021-12-13 Thread Philippe Mathieu-Daudé
Move the 'a->r1 == 0' if ladder earlier, simply to ease reviewing the next commit change. Signed-off-by: Philippe Mathieu-Daudé --- target/hppa/translate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 3b9744deb4

[PATCH v2 0/2] target/hppa: Fix deposit assert from trans_shrpw_imm

2021-12-13 Thread Philippe Mathieu-Daudé
Since v1: Add preliminary code movement patch to ease reviewing Richard patch. Philippe Mathieu-Daudé (1): target/hppa: Minor code movement Richard Henderson (1): target/hppa: Fix deposit assert from trans_shrpw_imm target/hppa/translate.c | 19 --- 1 file changed, 12 insert

Re: Redesign of QEMU startup & initial configuration

2021-12-13 Thread Daniel P . Berrangé
On Mon, Dec 13, 2021 at 07:37:49PM +0100, Paolo Bonzini wrote: > On 12/13/21 19:07, Daniel P. Berrangé wrote: > >- /usr/bin/qemu (or /usr/bin/qemu-vm) - for a high level binary that > > targets humans and uses a templating system to expose a friendly > > simple config, that internally

[PATCH] Target/arm: Implement Cortex-A5

2021-12-13 Thread Byron Lathi
Add support for the Cortex-A5. These changes are based off of the A7 and A9 init functions, using the appropriate values from the technical reference manual for the A5. Signed-off-by: Byron Lathi --- target/arm/cpu_tcg.c | 37 + 1 file changed, 37 insertions(+

Re: Redesign of QEMU startup & initial configuration

2021-12-13 Thread Paolo Bonzini
On 12/13/21 19:07, Daniel P. Berrangé wrote: - /usr/bin/qemu (or /usr/bin/qemu-vm) - for a high level binary that targets humans and uses a templating system to expose a friendly simple config, that internally invokes whichever target specific /usr/bin/qemu-buildvm-$TARGET is im

Re: [PATCH v2 14/19] ppc/pnv: Use QOM hierarchy to scan PEC PHB4 devices

2021-12-13 Thread Daniel Henrique Barboza
On 12/13/21 10:28, Cédric Le Goater wrote: When -nodefaults is supported for PHB4 devices, the pecs array under the chip will be empty. This will break the 'info pic' HMP command. Do a QOM loop on the chip children and look for PEC PHB4 devices instead. Signed-off-by: Cédric Le Goater ---

Re: [PATCH v2 06/19] ppc/pnv: Use QOM hierarchy to scan PHB3 devices

2021-12-13 Thread Daniel Henrique Barboza
On 12/13/21 10:28, Cédric Le Goater wrote: When -nodefaults is supported for PHB3 devices, the phbs array under the chip will be empty. This will break the XICSFabric handlers, and all interrupt delivery, and the 'info pic' HMP command. Do a QOM loop on the chip children and look for PHB3 dev

Re: [PATCH v2 03/19] ppc/pnv: Use the chip class to check the index of PHB3 devices

2021-12-13 Thread Daniel Henrique Barboza
On 12/13/21 10:28, Cédric Le Goater wrote: The maximum number of PHB3 devices per chip can be different depending on the POWER8 processor model. Signed-off-by: Cédric Le Goater --- Reviewed-by: Daniel Henrique Barboza hw/pci-host/pnv_phb3.c | 2 +- 1 file changed, 1 insertion(+), 1 d

Re: [PATCH v2 01/19] ppc/pnv: Change the maximum of PHB3 devices for Power8NVL

2021-12-13 Thread Daniel Henrique Barboza
On 12/13/21 10:28, Cédric Le Goater wrote: The POWER8 processors with a NVLink logic unit have 4 PHB3 devices per chip. Signed-off-by: Cédric Le Goater --- Reviewed-by: Daniel Henrique Barboza hw/ppc/pnv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/pnv

Re: Redesign of QEMU startup & initial configuration

2021-12-13 Thread Daniel P . Berrangé
On Mon, Dec 13, 2021 at 06:37:44PM +0100, Paolo Bonzini wrote: > On 12/13/21 16:28, Markus Armbruster wrote: > > Would you object to me expanding the CLI here to the point where I think > > we can deprecate the old binary? > > > > If yes, why? > > Yes, for two reasons. > > First, because there w

Re: Redesign of QEMU startup & initial configuration

2021-12-13 Thread Daniel P . Berrangé
On Mon, Dec 13, 2021 at 06:30:45PM +0100, Paolo Bonzini wrote: > On 12/13/21 16:19, Markus Armbruster wrote: > > I think it's more often just three: the long one that can do everything, > > the short one that can do simple things (and doesn't tell you anything > > about the long one), and the bad o

Re: [PATCH v7 0/8] virtio-iommu: Add ACPI support (Arm part + tests)

2021-12-13 Thread Michael S. Tsirkin
On Fri, Dec 10, 2021 at 05:04:08PM +, Jean-Philippe Brucker wrote: > Add ACPI support for virtio-iommu on the virt machine, by instantiating > a VIOT table. Also add the tests for the ACPI table. ACPI parts: Acked-by: Michael S. Tsirkin > Since last posting [1], I rebased onto v6.2.0-rc4. No

[PATCH] target/hppa: Fix deposit assert from trans_shrpw_imm

2021-12-13 Thread Richard Henderson
Because sa may be 0, tcg_gen_deposit_reg(dest, t0, cpu_gr[a->r1], 32 - sa, sa); may attempt a zero-width deposit at bit 32, which will assert for TARGET_REGISTER_BITS == 32. Use the newer extract2 when possible, which itself includes the rotri special case; otherwise mirror the code from tra

Re: Redesign of QEMU startup & initial configuration

2021-12-13 Thread Paolo Bonzini
On 12/13/21 16:28, Markus Armbruster wrote: Paolo Bonzini writes: On 12/10/21 14:54, Markus Armbruster wrote: I want an open path to a single binary. Taking years to get there is fine. The single binary is a distraction in my opinion. Imagine instead of vl.c you have this in your second b

Re: Redesign of QEMU startup & initial configuration

2021-12-13 Thread Paolo Bonzini
On 12/13/21 16:19, Markus Armbruster wrote: I think it's more often just three: the long one that can do everything, the short one that can do simple things (and doesn't tell you anything about the long one), and the bad one you shouldn't use. If we're going to have a good CLI, it would ideally

[PATCH v7 18/18] target/riscv: actual functions to realize crs 128-bit insns

2021-12-13 Thread Frédéric Pétrot
The csrs are accessed through function pointers: we add 128-bit read operations in the table for three csrs (writes fallback to the 64-bit version as the upper 64-bit information is handled elsewhere): - misa, as mxl is needed for proper operation, - mstatus and sstatus, to return sd In addition, w

Re: [PATCH] hw/i386: fix phys-bits on cpus with AMD SEV/SMD

2021-12-13 Thread Jörg Thalheim
Friendly bump.

[PATCH v7 15/18] target/riscv: adding high part of some csrs

2021-12-13 Thread Frédéric Pétrot
Adding the high part of a very minimal set of csr. Signed-off-by: Frédéric Pétrot Co-authored-by: Fabien Portas Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- target/riscv/cpu.h | 4 target/riscv/machine.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/targe

[PATCH v7 14/18] target/riscv: support for 128-bit M extension

2021-12-13 Thread Frédéric Pétrot
Mult are generated inline (using a cool trick pointed out by Richard), but for div and rem, given the complexity of the implementation of these instructions, we call helpers to produce their behavior. From an implementation standpoint, the helpers return the low part of the results, while the high

[PATCH v7 12/18] target/riscv: support for 128-bit shift instructions

2021-12-13 Thread Frédéric Pétrot
Handling shifts for 32, 64 and 128 operation length for RV128, following the general framework for handling various olens proposed by Richard. Signed-off-by: Frédéric Pétrot Co-authored-by: Fabien Portas --- target/riscv/insn32.decode | 10 ++ target/riscv/translate.c

[PATCH v7 07/18] target/riscv: setup everything for rv64 to support rv128 execution

2021-12-13 Thread Frédéric Pétrot
This patch adds the support of the '-cpu rv128' option to qemu-system-riscv64 so that we can indicate that we want to run rv128 executables. Still, there is no support for 128-bit insns at that stage so qemu fails miserably (as expected) if launched with this option. Signed-off-by: Frédéric Pétrot

[PATCH v7 17/18] target/riscv: modification of the trans_csrxx for 128-bit support

2021-12-13 Thread Frédéric Pétrot
As opposed to the gen_arith and gen_shift generation helpers, the csr insns do not have a common prototype, so the choice to generate 32/64 or 128-bit helper calls is done in the trans_csrxx functions. Signed-off-by: Frédéric Pétrot Co-authored-by: Fabien Portas Reviewed-by: Richard Henderson -

[PATCH v7 06/18] target/riscv: array for the 64 upper bits of 128-bit registers

2021-12-13 Thread Frédéric Pétrot
The upper 64-bit of the 128-bit registers have now a place inside the cpu state structure, and are created as globals for future use. Signed-off-by: Frédéric Pétrot Co-authored-by: Fabien Portas Reviewed-by: Alistair Francis --- target/riscv/cpu.h | 2 ++ target/riscv/cpu.c | 9 +

[PATCH v7 16/18] target/riscv: helper functions to wrap calls to 128-bit csr insns

2021-12-13 Thread Frédéric Pétrot
Given the side effects they have, the csr instructions are realized as helpers. We extend this existing infrastructure for 128-bit sized csr. We return 128-bit values using the same approach as for div/rem. Theses helpers all call a unique function that is currently a fallback on the 64-bit version

[PATCH v7 09/18] target/riscv: accessors to registers upper part and 128-bit load/store

2021-12-13 Thread Frédéric Pétrot
Get function to retrieve the 64 top bits of a register, stored in the gprh field of the cpu state. Set function that writes the 128-bit value at once. The access to the gprh field can not be protected at compile time to make sure it is accessed only in the 128-bit version of the processor because w

[PATCH v7 05/18] target/riscv: separation of bitwise logic and arithmetic helpers

2021-12-13 Thread Frédéric Pétrot
Introduction of a gen_logic function for bitwise logic to implement instructions in which no propagation of information occurs between bits and use of this function on the bitwise instructions. Signed-off-by: Frédéric Pétrot Co-authored-by: Fabien Portas Reviewed-by: Richard Henderson Reviewed-

[PATCH v7 13/18] target/riscv: support for 128-bit arithmetic instructions

2021-12-13 Thread Frédéric Pétrot
Addition of 128-bit adds and subs in their various sizes, "set if less than"s and branches. Refactored the code to have a comparison function used for both stls and branches. Signed-off-by: Frédéric Pétrot Co-authored-by: Fabien Portas --- target/riscv/insn32.decode | 3 + target

[PATCH v7 10/18] target/riscv: support for 128-bit bitwise instructions

2021-12-13 Thread Frédéric Pétrot
The 128-bit bitwise instructions do not need any function prototype change as the functions can be applied independently on the lower and upper part of the registers. Signed-off-by: Frédéric Pétrot Co-authored-by: Fabien Portas Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis ---

[PATCH v7 02/18] exec/memop: Adding signed quad and octo defines

2021-12-13 Thread Frédéric Pétrot
Adding defines to handle signed 64-bit and unsigned 128-bit quantities in memory accesses. Signed-off-by: Frédéric Pétrot Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- include/exec/memop.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/exec/memop.h b/incl

[PATCH v7 11/18] target/riscv: support for 128-bit U-type instructions

2021-12-13 Thread Frédéric Pétrot
Adding the 128-bit version of lui and auipc, and introducing to that end a "set register with immediat" function to handle extension on 128 bits. Signed-off-by: Frédéric Pétrot Co-authored-by: Fabien Portas Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- target/riscv/translat

[PATCH v7 03/18] qemu/int128: addition of div/rem 128-bit operations

2021-12-13 Thread Frédéric Pétrot
Addition of div and rem on 128-bit integers, using the 128/64->128 divu and 64x64->128 mulu in host-utils. These operations will be used within div/rem helpers in the 128-bit riscv target. Signed-off-by: Frédéric Pétrot Co-authored-by: Fabien Portas Reviewed-by: Alistair Francis --- include/qe

[PATCH v7 08/18] target/riscv: moving some insns close to similar insns

2021-12-13 Thread Frédéric Pétrot
lwu and ld are functionally close to the other loads, but were after the stores in the source file. Similarly, xor was away from or and and by two arithmetic functions, while the immediate versions were nicely put together. This patch moves the aforementioned loads after lhu, and xor above or, wher

[PATCH v7 00/18] Adding partial support for 128-bit riscv target

2021-12-13 Thread Frédéric Pétrot
This series of patches provides partial 128-bit support for the riscv target architecture, namely RVI and RVM, with minimal csr support. Thanks again for the reviews and advices. v7: - code motion following reviews - correction of a bug preventing riscv{32,64}-linux-user to compile - sync with ma

[PATCH v7 04/18] target/riscv: additional macros to check instruction support

2021-12-13 Thread Frédéric Pétrot
Given that the 128-bit version of the riscv spec adds new instructions, and that some instructions that were previously only available in 64-bit mode are now available for both 64-bit and 128-bit, we added new macros to check for the processor mode during translation. Although RV128 is a superset o

[PATCH v7 01/18] exec/memop: Adding signedness to quad definitions

2021-12-13 Thread Frédéric Pétrot
Renaming defines for quad in their various forms so that their signedness is now explicit. Done using git grep as suggested by Philippe, with a bit of hand edition to keep assignments aligned. Signed-off-by: Frédéric Pétrot Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Revi

Re: [PATCH v3 0/6] aio-posix: split poll check from ready handler

2021-12-13 Thread Stefan Hajnoczi
On Tue, Dec 07, 2021 at 01:23:30PM +, Stefan Hajnoczi wrote: > v3: > - Fixed FUSE export aio_set_fd_handler() call that I missed and double-checked > for any other missing call sites using Coccinelle [Rich] > v2: > - Cleaned up unused return values in nvme and virtio-blk [Stefano] > - Documen

Re: [RFC PATCH] target/ppc: do not silence snan in xscvspdpn

2021-12-13 Thread Richard Henderson
On 12/13/21 4:13 AM, matheus.fe...@eldorado.org.br wrote: From: Matheus Ferst The non-signalling versions of VSX scalar convert to shorter/longer precision insns doesn't silence SNaNs in the hardware. We are currently honoring this behavior in xscvdpspn, since helper_xscvdpspn handles the conve

Re: [PATCH v2 0/4] block: minor refactoring in preparation to the block layer API split

2021-12-13 Thread Stefan Hajnoczi
On Tue, Nov 30, 2021 at 04:46:29AM -0500, Emanuele Giuseppe Esposito wrote: > These patches are taken from my old patches and feedback of > my series "block layer: split block APIs in global state and I/O". > > The reason for a separate series is that the original one is > already too long, and th

Re: [PATCH 26/26] hw/intc/arm_gicv3_its: Factor out "find address of table entry" code

2021-12-13 Thread Peter Maydell
On Mon, 13 Dec 2021 at 15:00, Alex Bennée wrote: > > > Peter Maydell writes: > > > The ITS has several tables which all share a similar format, > > described by the TableDesc struct: the guest may configure them > > to be a single-level table or a two-level table. Currently we > > open-code the p

Re: [PATCH v2 4/4] include/sysemu/blockdev.h: remove drive_get_max_devs

2021-12-13 Thread Stefan Hajnoczi
On Tue, Nov 30, 2021 at 04:46:33AM -0500, Emanuele Giuseppe Esposito wrote: > Remove drive_get_max_devs, as it is not used by anyone. > > Last use was removed in commit 8f2d75e81d5 > ("hw: Drop superfluous special checks for orphaned -drive"). > > Signed-off-by: Emanuele Giuseppe Esposito > Revi

Re: [PATCH v2 1/4] block_int: make bdrv_backing_overridden static

2021-12-13 Thread Stefan Hajnoczi
On Tue, Nov 30, 2021 at 04:46:30AM -0500, Emanuele Giuseppe Esposito wrote: > bdrv_backing_overridden is only used in block.c, so there is > no need to leave it in block_int.h > > Signed-off-by: Emanuele Giuseppe Esposito > --- > block.c | 4 +++- > include/block/block_int.h |

Re: Redesign of QEMU startup & initial configuration

2021-12-13 Thread Markus Armbruster
Damien Hedde writes: [...] >> Painted with a big brush, there are two kinds of code in hw/: actual >> device emulation, and "wiring". Both in C, and sometimes in the same .c >> file. >> >> Doing the "wiring" in configuration instead is less powerful (no longer >> Turing complete[2]), but easi

Re: [PATCH v2 3/4] include/sysemu/blockdev.h: move drive_add and inline drive_def

2021-12-13 Thread Stefan Hajnoczi
On Tue, Nov 30, 2021 at 04:46:32AM -0500, Emanuele Giuseppe Esposito wrote: > drive_add is only used in softmmu/vl.c, so it can be a static > function there, and drive_def is only a particular use case of > qemu_opts_parse_noisily, so it can be inlined. > > Also remove drive_mark_claimed_by_board,

  1   2   3   >