[PULL 18/20] ppc/pnv: Introduce a pnv-phb5 device to match root port

2022-03-15 Thread Cédric Le Goater
From: Frederic Barrat We already have the pnv-phb3 and pnv-phb4 devices for POWER8 and POWER9 respectively. POWER10 uses version 5 of the PHB. It is very close to the PHB4 from POWER9, at least in our model and we could almost keep using the PHB4 model. However the matching root port pnv-phb5-roo

[PATCH v4 6/7] target/riscv: cpu: Enable native debug feature

2022-03-15 Thread Bin Meng
From: Bin Meng Turn on native debug feature by default for all CPUs. Signed-off-by: Bin Meng --- (no changes since v3) Changes in v3: - enable debug feature by default for all CPUs target/riscv/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/riscv/cpu.c b/ta

[PULL 17/20] ppc/xive2: Make type Xive2EndSource not user creatable

2022-03-15 Thread Cédric Le Goater
Xive2EndSource objects can only be instantiated through a Xive2Router (PnvXive2). Reported-by: Thomas Huth Fixes: f8a233dedf25 ("ppc/xive2: Introduce a XIVE2 core framework") Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Cédric Le Goater --- hw/intc/xive2.c | 1 + 1 file changed, 1 insert

[PATCH 1/2] target/riscv: cpu: Fixup indentation

2022-03-15 Thread Alistair Francis
From: Alistair Francis Signed-off-by: Alistair Francis --- target/riscv/cpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index ddda4906ff..a4120c7fb4 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -709,11 +709,1

[PULL 10/20] avocado/ppc_74xx.py: check TCG accel for all tests

2022-03-15 Thread Cédric Le Goater
From: Daniel Henrique Barboza All tests of this file, when running in an IBM POWER host and with --disable-tcg, fail in a similar manner: Command: ./qemu-system-ppc -display none -vga none (...) -cpu 7400 (...) Output: ioctl(KVM_CREATE_VM) failed: 22 Invalid argument PPC KVM modu

[PATCH v4 4/7] target/riscv: cpu: Add a config option for native debug

2022-03-15 Thread Bin Meng
From: Bin Meng Add a config option to enable support for native M-mode debug. This is disabled by default and can be enabled with 'debug=true'. Signed-off-by: Bin Meng Reviewed-by: Alistair Francis --- (no changes since v2) Changes in v2: - change the config option to 'disabled' by default

[PATCH 0/2] target/riscv: Allow software access to MIP SEIP

2022-03-15 Thread Alistair Francis
From: Alistair Francis The RISC-V specification states that: "Supervisor-level external interrupts are made pending based on the logical-OR of the software-writable SEIP bit and the signal from the external interrupt controller." We currently only allow either the interrupt controller or s

[PATCH v4 5/7] target/riscv: csr: Hook debug CSR read/write

2022-03-15 Thread Bin Meng
From: Bin Meng This adds debug CSR read/write support to the RISC-V CSR RW table. Signed-off-by: Bin Meng --- Changes in v4: - move riscv_trigger_init() call to riscv_cpu_reset() Changes in v3: - add riscv_trigger_init(), moved from patch #1 to this patch target/riscv/debug.h | 2 ++ targe

[PATCH 2/2] target/riscv: Allow software access to MIP SEIP

2022-03-15 Thread Alistair Francis
From: Alistair Francis The RISC-V specification states that: "Supervisor-level external interrupts are made pending based on the logical-OR of the software-writable SEIP bit and the signal from the external interrupt controller." We currently only allow either the interrupt controller or s

Re: QEMU+KVM on RISC-V + Hypervisor Extension

2022-03-15 Thread Alistair Francis
On Sun, Mar 13, 2022 at 12:12 PM Ralf Ramsauer wrote: > > Hi, > > I'm trying to run Linux/QEMU+KVM inside an emulated > qemu-system-riscv64 VM (x86 host). On latest&greatest QEMU (1416688c53), > I run Linux inside QEMU. On host side: > > qemu-system-riscv64 -nographic \ > -machine virt \

[PATCH v4 7/7] hw/core: tcg-cpu-ops.h: Update comments of debug_check_watchpoint()

2022-03-15 Thread Bin Meng
From: Bin Meng This is now used by RISC-V as well. Update the comments. Signed-off-by: Bin Meng Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- (no changes since v1) include/hw/core/tcg-cpu-ops.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/hw/core/tcg-cpu-o

[PULL 16/20] target/ppc: fix xxspltw for big endian hosts

2022-03-15 Thread Cédric Le Goater
From: Matheus Ferst Fix a typo in the host endianness macro and add a simple test to detect regressions. Fixes: 9bb0048ec6f8 ("target/ppc: convert xxspltw to vector operations") Signed-off-by: Matheus Ferst Reviewed-by: Richard Henderson Message-Id: <20220310172047.61094-1-matheus.fe...@eldora

Re: [PATCH] target/ppc: Replicate double->int32 result for some vector insns

2022-03-15 Thread Cédric Le Goater
On 3/15/22 06:39, Richard Henderson wrote: Power ISA v3.1 formalizes the previously undefined result in words 1 and 3 to be a copy of the result in words 0 and 2. This affects: xscvdpsxws, xscvdpuxws, xvcvdpsxws, xvcvdpuxws. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/852 Signed-off

[PATCH v4 0/7] target/riscv: Initial support for the Sdtrig extension via M-mode CSRs

2022-03-15 Thread Bin Meng
This adds initial support for the Sdtrig extension via the Trigger Module, as defined in the RISC-V Debug Specification [1]. Only "Address / Data Match" trigger (type 2) is implemented as of now, which is mainly used for hardware breakpoint and watchpoint. The number of type 2 triggers implement

[PATCH v4 2/7] target/riscv: machine: Add debug state description

2022-03-15 Thread Bin Meng
From: Bin Meng Add a subsection to machine.c to migrate debug CSR state. Signed-off-by: Bin Meng Reviewed-by: Alistair Francis --- (no changes since v2) Changes in v2: - new patch: add debug state description target/riscv/machine.c | 32 1 file changed, 32

[PATCH v4 3/7] target/riscv: debug: Implement debug related TCGCPUOps

2022-03-15 Thread Bin Meng
From: Bin Meng Implement .debug_excp_handler, .debug_check_{breakpoint, watchpoint} TCGCPUOps and hook them into riscv_tcg_ops. Signed-off-by: Bin Meng Reviewed-by: Alistair Francis --- (no changes since v2) Changes in v2: - use 0 instead of GETPC() target/riscv/debug.h | 4 +++ target/ri

[PATCH v4 1/7] target/riscv: Add initial support for the Sdtrig extension

2022-03-15 Thread Bin Meng
From: Bin Meng This adds initial support for the Sdtrig extension via the Trigger Module, as defined in the RISC-V Debug Specification [1]. Only "Address / Data Match" trigger (type 2) is implemented as of now, which is mainly used for hardware breakpoint and watchpoint. The number of type 2 tri

[PATCH] ui: avoid unnecessary memory operations in vnc_refresh_server_surface()

2022-03-15 Thread Wen, Jianxian
Check the dirty bits in advance to avoid unnecessary memory operations. In the case that guest surface has different format than the server, but it does not have dirty bits which means no refresh is actually needed, the memory operations is not necessary. Signed-off-by: Jianxian Wen Signed-off-by

Re: [PATCH 1/2] target/riscv: cpu: Fixup indentation

2022-03-15 Thread Bin Meng
On Tue, Mar 15, 2022 at 2:40 PM Alistair Francis wrote: > > From: Alistair Francis > > Signed-off-by: Alistair Francis > --- > target/riscv/cpu.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > Reviewed-by: Bin Meng

Re: [ANNOUNCE] SeaBIOS 1.16.0

2022-03-15 Thread Michael Tokarev
02.03.2022 05:19, Kevin O'Connor rote: The 1.16.0 version of SeaBIOS has now been released. For more information on the release, please see: Hi Kevin! This release seems to be missing at https://www.seabios.org/downloads/ - there are binaries in there, but not the source. Is it intentional? T

Re: [PATCH] accel/tcg: Fix cpu_ldq_be_mmu typo

2022-03-15 Thread Thomas Huth
On 15/03/2022 01.25, Richard Henderson wrote: In the conversion to cpu_ld_*_mmu, the retaddr parameter was corrupted in the one case of cpu_ldq_be_mmu. Cc: Thomas Huth Resolves: https://gitlab.com/qemu-project/qemu/-/issues/902 Fixes: f83bcecb1 ("accel/tcg: Add cpu_{ld,st}*_mmu interfaces") Sig

Re: [PATCH v6 06/12] target/riscv: Add support for hpmcounters/hpmevents

2022-03-15 Thread Frank Chang
Atish Patra 於 2022年3月4日 週五 上午8:06寫道: > From: Atish Patra > > With SBI PMU extension, user can use any of the available hpmcounters to > track any perf events based on the value written to mhpmevent csr. > Add read/write functionality for these csrs. > > Reviewed-by: Alistair Francis > Reviewed-

Re: [PATCH 2/3] 9pfs: Use g_new() & friends where that makes obvious sense

2022-03-15 Thread Greg Kurz
On Mon, 14 Mar 2022 17:01:07 +0100 Markus Armbruster wrote: > g_new(T, n) is neater than g_malloc(sizeof(T) * n). It's also safer, > for two reasons. One, it catches multiplication overflowing size_t. > Two, it returns T * rather than void *, which lets the compiler catch > more type errors. >

[PATCH v2 1/2] hw: aspeed_scu: Add AST2600 apb_freq and hpll calculation function

2022-03-15 Thread Steven Lee
AST2600's HPLL register offset and bit definition are different from AST2500. Add a hpll calculation function and an apb frequency calculation function based on SCU200 register description in ast2600v11.pdf. Signed-off-by: Steven Lee --- hw/misc/aspeed_scu.c | 39

[PATCH v2 2/2] hw: aspeed_scu: Introduce clkin_25Mhz attribute

2022-03-15 Thread Steven Lee
AST2600 clkin is always 25MHz, introduce clkin_25Mhz attribute for aspeed_scu_get_clkin() to return the correct clkin for ast2600. Signed-off-by: Steven Lee --- hw/misc/aspeed_scu.c | 6 +- include/hw/misc/aspeed_scu.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --gi

[PATCH v2 0/2] hw: aspeed_scu: Add AST2600 hpll calculation function

2022-03-15 Thread Steven Lee
AST2600's HPLL register offset and bit definition are different from AST2500. The patch series adds a hpll calculation function for ast2600 and modify apb frequency calculation function based on SCU200 register description and note in ast2600v11.pdf. Changes since v1: - introduce ast2400 and ast

Re: QEMU+KVM on RISC-V + Hypervisor Extension

2022-03-15 Thread Anup Patel
On Tue, Mar 15, 2022 at 12:18 PM Alistair Francis wrote: > > On Sun, Mar 13, 2022 at 12:12 PM Ralf Ramsauer > wrote: > > > > Hi, > > > > I'm trying to run Linux/QEMU+KVM inside an emulated > > qemu-system-riscv64 VM (x86 host). On latest&greatest QEMU (1416688c53), > > I run Linux inside QEMU. On

[PATCH for-7.0?] meson: Update to version 0.61.3

2022-03-15 Thread Thomas Huth
Meson 0.61.3 contains an important fix which helps to see the output of failed qemu-iotests on the console again: https://gitlab.com/qemu-project/meson/-/commit/7534cf34f83b9c43 Signed-off-by: Thomas Huth --- meson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson b/meson

[PULL 02/11] edk2: update submodule to stable202202

2022-03-15 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Reviewed-by: Alex Bennée --- roms/edk2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roms/edk2 b/roms/edk2 index 06dc822d045c..b24306f15daa 16 --- a/roms/edk2 +++ b/roms/edk2 @@ -1 +1 @@ -Subproject commit 06dc822d045c2bb42e49748793548530248

[PULL 10/11] edk2/docker: use ubuntu 18.04

2022-03-15 Thread Gerd Hoffmann
Upstream CI uses ubuntu 18.04 too, so pick that version (instead of something newer). Signed-off-by: Gerd Hoffmann Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé --- .gitlab-ci.d/edk2/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.d/edk2

[PULL 01/11] tests/acpi: allow virt memory hotplug changes

2022-03-15 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Reviewed-by: Alex Bennée Reviewed-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test-allowed-diff.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allow

[PULL 00/11] Edk2 20220315 patches

2022-03-15 Thread Gerd Hoffmann
The following changes since commit 352998df1c53b366413690d95b35f76d0721ebed: Merge tag 'i2c-20220314' of https://github.com/philmd/qemu into staging (2022-03-14 14:39:33 +) are available in the Git repository at: git://git.kraxel.org/qemu tags/edk2-20220315-pull-request

[PULL 08/11] tests/acpi: disallow virt memory hotplug changes

2022-03-15 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Reviewed-by: Igor Mammedov --- tests/qtest/bios-tables-test-allowed-diff.h | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allowed-diff.h index e569098abddc..dfb8523c8bf4 100644 --- a/test

[PULL 03/11] edk2: switch to release builds

2022-03-15 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée --- roms/Makefile.edk2 | 17 + roms/edk2-build.sh | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/roms/Makefile.edk2 b/roms/Makefile.edk2 index fdae0b511f59..3d75a8

[PATCH 3/5] linux-user: Properly handle sigset arg to pselect

2022-03-15 Thread Richard Henderson
Unblocked signals are never delivered, because we didn't record the new mask for process_pending_signals. Handle this with the same mechanism as sigsuspend. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/834 Signed-off-by: Richard Henderson --- linux-user/syscall.c | 30 ++--

[PULL 07/11] tests/acpi: update expected data files

2022-03-15 Thread Gerd Hoffmann
The switch to edk2 RELEASE builds changes the memory layout a bit, resulting in a acpi table change. See commits ca26041500eb ("edk2: switch to release builds") and 3891a5996fee ("edk2: update binaries to stable202202") DefinitionBlock ("", "SSDT", 1, "BOCHS ", "NVDIMM", 0x0001) { Scop

[PULL 04/11] edk2: .git can be a file

2022-03-15 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Reviewed-by: Eric Blake Reviewed-by: Philippe Mathieu-Daudé --- roms/Makefile.edk2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roms/Makefile.edk2 b/roms/Makefile.edk2 index 3d75a842a4df..6801ea62e8f1 100644 --- a/roms/Makefile.edk2 +++ b/roms

[PATCH 2/5] linux-user: Split out helpers for sigsuspend

2022-03-15 Thread Richard Henderson
Two new functions: process_sigsuspend_mask and finish_sigsuspend_mask. Move the size check and copy-from-user code. Signed-off-by: Richard Henderson --- linux-user/signal-common.h | 26 + linux-user/signal.c| 23 ++ linux-user/syscall.c |

[PULL 05/11] edk2: add microvm build

2022-03-15 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daudé --- roms/Makefile.edk2 | 11 +++ 1 file changed, 11 insertions(+) diff --git a/roms/Makefile.edk2 b/roms/Makefile.edk2 index 6801ea62e8f1..485f2244b159 100644 --- a/roms/Makefile.edk2 +++ b/roms/Makefile.edk2 @@ -33,6 +33,

[PULL 09/11] edk2/docker: install python3

2022-03-15 Thread Gerd Hoffmann
python2 is not supported any more, so go install python3 instead. Signed-off-by: Gerd Hoffmann Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé --- .gitlab-ci.d/edk2/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.d/edk2/Dockerfile b/.gitla

Re: [PATCH v2 1/2] hw: aspeed_scu: Add AST2600 apb_freq and hpll calculation function

2022-03-15 Thread Cédric Le Goater
On 3/15/22 08:57, Steven Lee wrote: AST2600's HPLL register offset and bit definition are different from AST2500. Add a hpll calculation function and an apb frequency calculation function based on SCU200 register description in ast2600v11.pdf. Signed-off-by: Steven Lee Reviewed-by: Cédric Le

Re: [PATCH 2/2] target/riscv: Allow software access to MIP SEIP

2022-03-15 Thread Bin Meng
On Tue, Mar 15, 2022 at 2:40 PM Alistair Francis wrote: > > From: Alistair Francis > > The RISC-V specification states that: > "Supervisor-level external interrupts are made pending based on the > logical-OR of the software-writable SEIP bit and the signal from the > external interrupt cont

[PULL 11/11] MAINTAINERS: take edk2

2022-03-15 Thread Gerd Hoffmann
Cc: Philippe Mathieu-Daudé Signed-off-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daudé --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index f2e9ce1da2ac..b976a942dcfd 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3159,7 +3159,

Re: [PATCH v2 0/2] hw: aspeed_scu: Add AST2600 hpll calculation function

2022-03-15 Thread Cédric Le Goater
On 3/15/22 08:57, Steven Lee wrote: AST2600's HPLL register offset and bit definition are different from AST2500. The patch series adds a hpll calculation function for ast2600 and modify apb frequency calculation function based on SCU200 register description and note in ast2600v11.pdf. Changes

Re: [RFC PATCH] mailmap/gitdm: more fixes for bad tags and authors

2022-03-15 Thread Alex Bennée
alar...@ddci.com writes: >>Alex Bennée writes: > >> I was running some historical tags for the last 10 years and got the >> following warnings: >> >> git log --use-mailmap --numstat --since "June 2010" | >> ~/src/gitdm.git/gitdm >> -n -l 5 >> alar...@ddci.com is an author name, probably

[PATCH 1/5] linux-user/alpha: Fix sigsuspend for big-endian hosts

2022-03-15 Thread Richard Henderson
On alpha, the sigset argument for sigsuspend is in a register. When we drop that into memory that happens in host-endianness, but target_to_host_old_sigset will treat it as target-endianness. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 3 ++- 1 file changed, 2 insertions(+), 1 de

[PATCH 0/5] linux-user: signal mask fixes for pselect et al

2022-03-15 Thread Richard Henderson
Split out some helpers from sigsuspend. Reuse them for pselect, epoll_pwait, ppoll. Fix an alpha buglet found on the way. r~ Richard Henderson (5): linux-user/alpha: Fix sigsuspend for big-endian hosts linux-user: Split out helpers for sigsuspend linux-user: Properly handle sigset arg to ps

[PATCH 4/5] linux-user: Properly handle sigset arg to epoll_pwait

2022-03-15 Thread Richard Henderson
Unblocked signals are never delivered, because we didn't record the new mask for process_pending_signals. Handle this with the same mechanism as sigsuspend. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 22 +++--- 1 file changed, 7 insertions(+), 15 deletions(-) di

Re: [PATCH v6 10/12] target/riscv: Add few cache related PMU events

2022-03-15 Thread Frank Chang
On Fri, Mar 4, 2022 at 8:11 AM Atish Patra wrote: > From: Atish Patra > > Qemu can monitor the following cache related PMU events through > tlb_fill functions. > > 1. DTLB load/store miss > 3. ITLB prefetch miss > > Increment the PMU counter in tlb_fill function. > > Reviewed-by: Alistair Franci

Re: [PATCH v2 1/2] Replacing CONFIG_VNC_PNG with CONFIG_PNG

2022-03-15 Thread Paolo Bonzini
On 3/15/22 05:47, Kshitij Suri wrote: +png = dependency('libpng', required: get_option('png'), + method: 'pkg-config', kwargs: static_kwargs) The full way to write it would be: png = not_found if get_option('png').allowed() and have_system png = dependency('libpng', required:

Re: [PATCH experiment 00/16] C++20 coroutine backend

2022-03-15 Thread Paolo Bonzini
On 3/14/22 17:52, Daniel P. Berrangé wrote: RHEL-8: 10.0.1 openSUSE Leap 15.3: 9.0.1 Ubuntu LTS 18.04: 6.0.0 FreeBSD 12: 8.0.1 Ubuntu 18.04 drops off our list after 7.0 comes out OpenSUSE Leap 15.2 was EOL'd by SUSE themselves in Jan 2022, We use it as

Re: [PATCH v2 3/6] libvduse: Add VDUSE (vDPA Device in Userspace) library

2022-03-15 Thread Stefan Hajnoczi
On Tue, Feb 15, 2022 at 06:59:40PM +0800, Xie Yongji wrote: > 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

Re: [PULL 0/4] tcg patch queue

2022-03-15 Thread Peter Maydell
On Mon, 14 Mar 2022 at 17:36, Richard Henderson wrote: > > The following changes since commit 15df33ceb73cb6bb3c6736cf4d2cff51129ed4b4: > > Merge remote-tracking branch 'remotes/quic/tags/pull-hex-20220312-1' into > staging (2022-03-13 17:29:18 +) > > are available in the Git repository at:

[PATCH v17 1/7] net/vmnet: add vmnet dependency and customizable option

2022-03-15 Thread Vladislav Yaroshchuk
vmnet.framework dependency is added with 'vmnet' option to enable or disable it. Default value is 'auto'. vmnet features to be used are available since macOS 11.0, corresponding probe is created into meson.build. Signed-off-by: Vladislav Yaroshchuk --- meson.build | 16 +++

[PATCH v17 2/7] net/vmnet: add vmnet backends to qapi/net

2022-03-15 Thread Vladislav Yaroshchuk
Create separate netdevs for each vmnet operating mode: - vmnet-host - vmnet-shared - vmnet-bridged Signed-off-by: Vladislav Yaroshchuk --- net/clients.h | 11 net/meson.build | 7 +++ net/net.c | 10 net/vmnet-bridged.m | 25 + net/vmnet-common.m | 20

[PATCH v17 4/7] net/vmnet: implement host mode (vmnet-host)

2022-03-15 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-host.c | 113 --- 1 file changed, 107 insertions(+), 6 deletions(-) diff --git a/net/vmnet-host.c b/net/vmnet-host.c index 32dc437037..0395458d8d 100644 --- a/net/vmnet-host.c +++ b/net/vmnet-host.c @@

[PATCH v17 5/7] net/vmnet: implement bridged mode (vmnet-bridged)

2022-03-15 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-bridged.m | 133 ++-- 1 file changed, 128 insertions(+), 5 deletions(-) diff --git a/net/vmnet-bridged.m b/net/vmnet-bridged.m index c735901666..4e29546bf2 100644 --- a/net/vmnet-bridged.m +++ b/net/vmnet-b

Re: [PATCH v17 2/7] net/vmnet: add vmnet backends to qapi/net

2022-03-15 Thread Akihiko Odaki
On 2022/03/15 19:02, Vladislav Yaroshchuk wrote: Create separate netdevs for each vmnet operating mode: - vmnet-host - vmnet-shared - vmnet-bridged Signed-off-by: Vladislav Yaroshchuk --- net/clients.h | 11 net/meson.build | 7 +++ net/net.c | 10 net/vmn

Re: [PATCH v2 2/2] Added parameter to take screenshot with screendump as PNG.

2022-03-15 Thread Markus Armbruster
Kshitij Suri writes: > On 11/03/22 5:50 pm, Markus Armbruster wrote: >> Kshitij Suri writes: >> >>> Currently screendump only supports PPM format, which is un-compressed and >>> not >>> standard. Added a "format" parameter to qemu monitor screendump capabilites >>> to support PNG image capture

Re: [PATCH v17 3/7] net/vmnet: implement shared mode (vmnet-shared)

2022-03-15 Thread Akihiko Odaki
On 2022/03/15 19:02, Vladislav Yaroshchuk wrote: Interaction with vmnet.framework in different modes differs only on configuration stage, so we can create common `send`, `receive`, etc. procedures and reuse them. Signed-off-by: Phillip Tennen Signed-off-by: Vladislav Yaroshchuk --- net/vmnet

[PATCH 5/5] linux-user: Properly handle sigset arg to ppoll

2022-03-15 Thread Richard Henderson
Unblocked signals are never delivered, because we didn't record the new mask for process_pending_signals. Handle this with the same mechanism as sigsuspend. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 24 +++- 1 file changed, 7 insertions(+), 17 deletions(-)

Re: [PATCH v2 2/2] Added parameter to take screenshot with screendump as PNG.

2022-03-15 Thread Daniel P . Berrangé
On Tue, Mar 15, 2022 at 11:06:31AM +0100, Markus Armbruster wrote: > Kshitij Suri writes: > > > On 11/03/22 5:50 pm, Markus Armbruster wrote: > >> Kshitij Suri writes: > >> > >>> Currently screendump only supports PPM format, which is un-compressed and > >>> not > >>> standard. Added a "format"

Re: [PATCH v2 2/2] hw: aspeed_scu: Introduce clkin_25Mhz attribute

2022-03-15 Thread Cédric Le Goater
On 3/15/22 08:57, Steven Lee wrote: AST2600 clkin is always 25MHz, introduce clkin_25Mhz attribute for aspeed_scu_get_clkin() to return the correct clkin for ast2600. Signed-off-by: Steven Lee Reviewed-by: Cédric Le Goater Thanks, C. --- hw/misc/aspeed_scu.c | 6 +- inc

[PATCH v4 0/7] 9pfs: fix 'Twalk' protocol violation

2022-03-15 Thread Christian Schoenebeck
Currently the implementation of 'Twalk' does not behave exactly as specified by the 9p2000 protocol specification. Actual fix is patch 5; see the description of that patch for details of what this overall fix and series is about. PREREQUISITES = This series requires the following addi

[PATCH v4 1/7] tests/9pfs: walk to non-existent dir

2022-03-15 Thread Christian Schoenebeck
Expect ENOENT Rlerror response when trying to walk to a non-existent directory. Signed-off-by: Christian Schoenebeck Reviewed-by: Greg Kurz Based-on: --- tests/qtest/virtio-9p-test.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/tests/qtest/virtio-9p-test.

[PATCH v4 2/7] tests/9pfs: Twalk with nwname=0

2022-03-15 Thread Christian Schoenebeck
Send Twalk request with nwname=0. In this case no QIDs should be returned by 9p server; this is equivalent to walking to dot. Signed-off-by: Christian Schoenebeck Reviewed-by: Greg Kurz --- tests/qtest/virtio-9p-test.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/

Re: [PATCH v2 1/6] block: Support passing NULL ops to blk_set_dev_ops()

2022-03-15 Thread Stefan Hajnoczi
On Mon, Mar 14, 2022 at 03:09:35PM -0400, John Snow wrote: > On Mon, Mar 14, 2022 at 1:23 PM Stefan Hajnoczi wrote: > > > > On Tue, Feb 15, 2022 at 06:59:38PM +0800, Xie Yongji wrote: > > > This supports passing NULL ops to blk_set_dev_ops() > > > so that we can remove stale ops in some cases. > >

[PATCH v4 5/7] 9pfs: fix 'Twalk' to only send error if no component walked

2022-03-15 Thread Christian Schoenebeck
Current implementation of 'Twalk' request handling always sends an 'Rerror' response if any error occured. The 9p2000 protocol spec says though: " If the first element cannot be walked for any reason, Rerror is returned. Otherwise, the walk will return an Rwalk message containing nwqid qids

[PATCH v4 3/7] tests/9pfs: compare QIDs in fs_walk_none() test

2022-03-15 Thread Christian Schoenebeck
Extend previously added fs_walk_none() test by comparing the QID of the root fid with the QID of the cloned fid. They should be equal. Signed-off-by: Christian Schoenebeck --- tests/qtest/virtio-9p-test.c | 87 1 file changed, 87 insertions(+) diff --git a/t

[PATCH v4 4/7] 9pfs: refactor 'name_idx' -> 'nwalked' in v9fs_walk()

2022-03-15 Thread Christian Schoenebeck
The local variable 'name_idx' is used in two loops in function v9fs_walk(). Let the first loop use its own variable 'nwalked' instead, which we will use in subsequent patch as the number of (requested) path components successfully walked by background I/O thread. Signed-off-by: Christian Schoenebe

[PATCH v4 6/7] tests/9pfs: guard recent 'Twalk' behaviour fix

2022-03-15 Thread Christian Schoenebeck
Previous 9p patch fixed 'Twalk' request handling, which was previously not behaving as specified by the 9p2000 protocol spec. This patch adds a new test case which guards the new 'Twalk' behaviour in question. More specifically: it sends a 'Twalk' request where the 1st path component is valid, whe

Re: [PATCH 3/3] Use g_new() & friends where that makes obvious sense

2022-03-15 Thread Eric Blake
On Mon, Mar 14, 2022 at 05:01:08PM +0100, Markus Armbruster wrote: > g_new(T, n) is neater than g_malloc(sizeof(T) * n). It's also safer, > for two reasons. One, it catches multiplication overflowing size_t. > Two, it returns T * rather than void *, which lets the compiler catch > more type error

[PATCH v4 7/7] tests/9pfs: check fid being unaffected in fs_walk_2nd_nonexistent

2022-03-15 Thread Christian Schoenebeck
Extend previously added test case by checking that fid was unaffected by 'Twalk' request (i.e. when 2nd path component of request being invalid). Do that by subsequently sending a 'Tgetattr' request with the fid previously used for 'Twalk'; that 'Tgetattr' request should return an 'Rlerror' respons

Re: [PATCH v4] ppc64: Avoid pt_regs struct definition

2022-03-15 Thread Peter Maydell
On Tue, 15 Mar 2022 at 02:14, Richard Henderson wrote: > > On 3/14/22 18:57, Khem Raj wrote: > > Remove pt_regs indirection and instead reference gp_regs directly, this > > makes it portable across musl/glibc > > > > Use PT_* constants defined in asm/ptrace.h > > > > Move the file to ppc64 subdir

Re: [PATCH v5] target/riscv: Add isa extenstion strings to the device tree

2022-03-15 Thread Bin Meng
On Tue, Mar 15, 2022 at 7:43 AM Atish Patra wrote: > > The Linux kernel parses the ISA extensions from "riscv,isa" DT > property. It used to parse only the single letter base extensions > until now. A generic ISA extension parsing framework was proposed[1] > recently that can parse multi-letter IS

Re: [PATCH for-7.0?] meson: Update to version 0.61.3

2022-03-15 Thread Paolo Bonzini
On 3/15/22 09:35, Thomas Huth wrote: Meson 0.61.3 contains an important fix which helps to see the output of failed qemu-iotests on the console again: https://gitlab.com/qemu-project/meson/-/commit/7534cf34f83b9c43 Signed-off-by: Thomas Huth --- meson | 2 +- 1 file changed, 1 insertion(+),

[PATCH v2] meson: Update to version 0.61.3

2022-03-15 Thread Thomas Huth
Meson 0.61.3 contains an important fix which helps to see the output of failed qemu-iotests on the console again: https://gitlab.com/qemu-project/meson/-/commit/7534cf34f83b9c43 Acked-by: Paolo Bonzini Signed-off-by: Thomas Huth --- v2: Update the version in the configure script, too (as sugges

Re: Time to introduce a migration protocol negotiation (Re: [PATCH v2 00/25] migration: Postcopy Preemption)

2022-03-15 Thread Dr. David Alan Gilbert
* Daniel P. Berrangé (berra...@redhat.com) wrote: > On Tue, Mar 01, 2022 at 04:51:09PM +, Dr. David Alan Gilbert wrote: > > * Peter Xu (pet...@redhat.com) wrote: > > > On Tue, Mar 01, 2022 at 10:27:10AM +, Daniel P. Berrangé wrote: > > > > > I also didn't know whether there's other limitati

Re: [PATCH experiment 00/16] C++20 coroutine backend

2022-03-15 Thread Daniel P . Berrangé
On Tue, Mar 15, 2022 at 10:05:32AM +0100, Paolo Bonzini wrote: > On 3/14/22 17:52, Daniel P. Berrangé wrote: > > RHEL-8: 10.0.1 > > openSUSE Leap 15.3: 9.0.1 > >Ubuntu LTS 18.04: 6.0.0 > > FreeBSD 12: 8.0.1 > > > > Ubuntu 18.04 drops off our list after 7.

[PATCH v17 0/7] Add vmnet.framework based network backend

2022-03-15 Thread Vladislav Yaroshchuk
macOS provides networking API for VMs called 'vmnet.framework': https://developer.apple.com/documentation/vmnet We can provide its support as the new QEMU network backends which represent three different vmnet.framework interface usage modes: * `vmnet-shared`: allows the guest to communicat

[PATCH v17 7/7] net/vmnet: update hmp-commands.hx

2022-03-15 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- hmp-commands.hx | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hmp-commands.hx b/hmp-commands.hx index 8476277aa9..8f3d78f177 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1265,7 +1265,11 @@ ERST { .name

[PULL v3 11/22] target/i386: Throw a #SS when loading a non-canonical IST

2022-03-15 Thread Paolo Bonzini
From: Gareth Webb Loading a non-canonical address into rsp when handling an interrupt or performing a far call should raise a #SS not a #GP. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/870 Signed-off-by: Gareth Webb Message-Id: <164529651121.25406.1533713706858424639...@git.sr.ht> [

[PATCH v17 3/7] net/vmnet: implement shared mode (vmnet-shared)

2022-03-15 Thread Vladislav Yaroshchuk
Interaction with vmnet.framework in different modes differs only on configuration stage, so we can create common `send`, `receive`, etc. procedures and reuse them. Signed-off-by: Phillip Tennen Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-common.m | 359

[PATCH v17 6/7] net/vmnet: update qemu-options.hx

2022-03-15 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- qemu-options.hx | 25 + 1 file changed, 25 insertions(+) diff --git a/qemu-options.hx b/qemu-options.hx index 5ce0ada75e..ea00d0eeb6 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2743,6 +2743,25 @@ DEF("netdev", HAS_ARG, QE

[PULL v3 00/22] QEMU changes for 7.0 soft freeze

2022-03-15 Thread Paolo Bonzini
The following changes since commit 6f4fe14b46f0a161f94e3f6e98690ac38184b0be: Merge tag 'pull-tcg-20220314' of https://gitlab.com/rth7680/qemu into staging (2022-03-14 18:11:36 +) are available in the Git repository at: https://gitlab.com/bonzini/qemu.git tags/for-upstream for you to fe

Re: [PATCH 3/3] Use g_new() & friends where that makes obvious sense

2022-03-15 Thread Dr. David Alan Gilbert
* Markus Armbruster (arm...@redhat.com) wrote: > g_new(T, n) is neater than g_malloc(sizeof(T) * n). It's also safer, > for two reasons. One, it catches multiplication overflowing size_t. > Two, it returns T * rather than void *, which lets the compiler catch > more type errors. > > This commit

Re: Time to introduce a migration protocol negotiation (Re: [PATCH v2 00/25] migration: Postcopy Preemption)

2022-03-15 Thread Daniel P . Berrangé
On Tue, Mar 15, 2022 at 10:43:45AM +, Dr. David Alan Gilbert wrote: > * Daniel P. Berrangé (berra...@redhat.com) wrote: > > Almost every time we add a new feature to migration, we end up > > having to define at least one new migration parameter, then wire > > it up in libvirt, and then the mgmt

Re: [PATCH] target/arm: Fix pauth_check_trap vs SEL2

2022-03-15 Thread Philippe Mathieu-Daudé
Cc'ing Rémi On 15/3/22 03:12, Richard Henderson wrote: When arm_is_el2_enabled was introduced, we missed updating pauth_check_trap. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/788 Fixes: e6ef0169264b ("target/arm: use arm_is_el2_enabled() where applicable") Signed-off-by: Richard He

Re: [PATCH] hw/sensor: enable setting adm1272 temperature with qmp

2022-03-15 Thread Philippe Mathieu-Daudé
On 6/1/22 18:38, Patrick Venture wrote: From: Titus Rwantare Reviewed-by: Patrick Venture Reviewed-by: Chris Rauer Reviewed-by: Hao Wu Signed-off-by: Titus Rwantare --- hw/sensor/adm1272.c| 27 ++- tests/qtest/adm1272-test.c | 28 ++

[PULL v2 06/12] ui/shader: fix potential leak of shader on error

2022-03-15 Thread marcandre . lureau
From: Marc-André Lureau Value of 0 for program and shaders are silently ignored and indicate error. Signed-off-by: Marc-André Lureau Acked-by: Gerd Hoffmann --- ui/shader.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/shader.c b/ui/shader.c index e8b8d321b7c7..

[PULL v2 00/12] dbus console fixes

2022-03-15 Thread marcandre . lureau
From: Marc-André Lureau The following changes since commit 1416688c53be6535be755b44c15fb2eb9defd20f: Merge remote-tracking branch 'remotes/mcayland/tags/q800-updates-for-7.0-20220309' into staging (2022-03-10 13:16:37 +) are available in the Git repository at: g...@gitlab.com:marcand

[PULL v2 09/12] ui/console: optionally update after gfx switch

2022-03-15 Thread marcandre . lureau
From: Marc-André Lureau When switching to the dummy surface, we should also call gfx_update. But when using GL, we shouldn't call it. By making it an argument to displaychangelistener_gfx_switch(), it will be explicit, and cannot be forgotten that easily. Fixes: commit ebced091 ("console: save

[PULL v2 01/12] ui/console: move check for compatible GL context

2022-03-15 Thread marcandre . lureau
From: Marc-André Lureau Move GL context compatibility check in dpy_compatible_with(), and use recommended error reporting. Signed-off-by: Marc-André Lureau Acked-by: Gerd Hoffmann --- ui/console.c | 21 ++--- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/ui/co

[PULL v2 07/12] ui/shader: free associated programs

2022-03-15 Thread marcandre . lureau
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Acked-by: Gerd Hoffmann --- ui/shader.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/shader.c b/ui/shader.c index 4c80fc831f68..ab448c41d4c6 100644 --- a/ui/shader.c +++ b/ui/shader.c @@ -172,5 +172,8 @@ void qemu_gl_fini_sh

[PULL v2 04/12] ui/dbus: associate the DBusDisplayConsole listener with the given console

2022-03-15 Thread marcandre . lureau
From: Marc-André Lureau DBusDisplayConsole is specific to a given QemuConsole. Fixes: commit 142ca628 ("ui: add a D-Bus display backend") Reported-by: Akihiko Odaki Signed-off-by: Marc-André Lureau Acked-by: Gerd Hoffmann --- ui/dbus.h | 3 +++ ui/dbus-console.c | 27 +--

Re: [PATCH-for-7.0 v3] softmmu: List CPU types again

2022-03-15 Thread Philippe Mathieu-Daudé
Hi Paolo, Could you take this patch? On 14/3/22 15:01, Philippe Mathieu-Daudé wrote: From: Philippe Mathieu-Daudé Commit e0220bb5b2 made cpus.c target-agnostic but didn't notice the cpu_list() function is only defined in target-specific code in "cpu.h". Move list_cpus() declaration to "exec/c

[PULL v2 02/12] ui/console: move dcl compatiblity check to a callback

2022-03-15 Thread marcandre . lureau
From: Marc-André Lureau As expected from the "compatible_dcl" comment, a simple comparison of ops isn't enough. The following patch will fix a regression introduced by this limited check by extending the compatibility callback for egl-headless. For now, this patch simply replaces the the "compat

[PULL v2 08/12] ui/console: add a dpy_gfx_switch callback helper

2022-03-15 Thread marcandre . lureau
From: Marc-André Lureau Slight code improvement. Signed-off-by: Marc-André Lureau Acked-by: Gerd Hoffmann --- ui/console.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/ui/console.c b/ui/console.c index d3ecbb215736..102fcf0a5068 100644 --- a/ui

Re: [PATCH v2 4/6] vduse-blk: implements vduse-blk export

2022-03-15 Thread Stefan Hajnoczi
On Tue, Feb 15, 2022 at 06:59:41PM +0800, Xie Yongji wrote: > 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,no

Re: [PATCH-for-7.0 v3] softmmu: List CPU types again

2022-03-15 Thread Thomas Huth
On 15/03/2022 12.11, Philippe Mathieu-Daudé wrote: Hi Paolo, Could you take this patch? I'm planning a PR for today ... I can add it there ("-cpu help" also does not work on s390x, so I dare to say that it is related) if Paolo does not plan a PR for rc0. Thomas

  1   2   3   4   >