Re: [PATCH] linux-user/riscv: fix up struct target_ucontext definition

2020-04-22 Thread Richard Henderson
On 4/22/20 11:05 AM, Alistair Francis wrote: > Just to clarify, this patch is still correct right? Yes. r~

[ANNOUNCE] QEMU 5.0.0-rc4 is now available

2020-04-22 Thread Michael Roth
Hello, On behalf of the QEMU Team, I'd like to announce the availability of the fifth release candidate for the QEMU 5.0 release. This release is meant for testing purposes and should not be used in a production environment. http://download.qemu-project.org/qemu-5.0.0-rc4.tar.xz http://downl

Re: [PATCH v2 21/36] tcg: Use tcg_out_dupi_vec from temp_load

2020-04-22 Thread Alex Bennée
Richard Henderson writes: > Having dupi pass though movi is confusing and arguably wrong. > > Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée > --- > tcg/aarch64/tcg-target.inc.c | 7 > tcg/i386/tcg-target.inc.c| 63 > tcg/ppc/tcg-ta

Re: [PATCH v2 2/4] smbus: Fix spd_data_generate() error API violation

2020-04-22 Thread BALATON Zoltan
On Wed, 22 Apr 2020, Philippe Mathieu-Daudé wrote: On 4/22/20 4:27 PM, BALATON Zoltan wrote: On Wed, 22 Apr 2020, Markus Armbruster wrote: The Error ** argument must be NULL, &error_abort, &error_fatal, or a pointer to a variable containing NULL.  Passing an argument of the latter kind twice wi

Re: [RFC 0/3] 64bit block-layer part I

2020-04-22 Thread Eric Blake
On 4/22/20 1:24 PM, Vladimir Sementsov-Ogievskiy wrote: So, I think the simplest way is to add .bdrv_co_pwritev_zeros64 and .bdrv_co_pdiscard64 and update drivers one-by-one. If at some point all drivers updated - drop unused 32bit functions, and then drop "64" suffix from API. If not - we'll li

Re: [PATCH v2 22/36] tcg: Increase tcg_out_dupi_vec immediate to int64_t

2020-04-22 Thread Alex Bennée
Richard Henderson writes: > While we don't store more than tcg_target_long in TCGTemp, > we shouldn't be limited to that for code generation. We will > be able to use this for INDEX_op_dup2_vec with 2 constants. > > Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée > --- > tcg/aar

Re: [PATCH v2 23/36] tcg: Add tcg_reg_alloc_dup2

2020-04-22 Thread Alex Bennée
Richard Henderson writes: > There are several ways we can expand a vector dup of a 64-bit > element on a 32-bit host. > > Signed-off-by: Richard Henderson > --- > tcg/tcg.c | 88 +++ > 1 file changed, 88 insertions(+) > > diff --git a/tcg/tc

Re: [PATCH v2 24/36] tcg/i386: Use tcg_constant_vec with tcg vec expanders

2020-04-22 Thread Alex Bennée
Richard Henderson writes: > Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée > --- > tcg/i386/tcg-target.inc.c | 26 +- > 1 file changed, 13 insertions(+), 13 deletions(-) > > diff --git a/tcg/i386/tcg-target.inc.c b/tcg/i386/tcg-target.inc.c > index 9cb627

Re: qemu 4.2.0 audiodev soundhw

2020-04-22 Thread BALATON Zoltan
On Wed, 22 Apr 2020, Philippe Mathieu-Daudé wrote: Hi Jakob, On 4/21/20 12:06 AM, Jakob Bohm wrote: [...] In fact, over the years, I have found it excruciatingly difficult to find valid qemu documentation, as each feature effort tends to leave behind half-updated pages and a bunch of uncoordin

Re: [PATCH v2 09/36] tcg: Consolidate 3 bits into enum TCGTempKind

2020-04-22 Thread Aleksandar Markovic
сре, 22. апр 2020. у 03:27 Richard Henderson је написао/ла: > > The temp_fixed, temp_global, temp_local bits are all related. > Combine them into a single enumeration. > > Signed-off-by: Richard Henderson > --- > include/tcg/tcg.h | 20 +--- > tcg/optimize.c| 8 +-- > tcg/tcg.c

Re: [PATCH v2 13/36] tcg: Use tcg_constant_{i32,i64} with tcg int expanders

2020-04-22 Thread Alex Bennée
Richard Henderson writes: > Signed-off-by: Richard Henderson We have a regression. Setting up a build dir with: ../../configure --disable-tools --disable-docs --target-list=sparc-softmmu,sparc64-softmmu make -j30 && make check-acceptance And then running a bisect between HEAD and maste

Re: [PATCH v2 00/14] Miscellaneous error handling fixes

2020-04-22 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200422130719.28225-1-arm...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PATCH v2 00/14] Miscellaneous error handling fixes Message-id: 20200422130719.28225-1-arm...@redhat.com Typ

[PATCH] qcow2: Allow resize of images with internal snapshots

2020-04-22 Thread Eric Blake
We originally refused to allow resize of images with internal snapshots because the v2 image format did not require the tracking of snapshot size, making it impossible to safely revert to a snapshot with a different size than the current view of the image. But the snapshot size tracking was rectif

Re: [PATCH] linux-user/riscv: fix up struct target_ucontext definition

2020-04-22 Thread Alistair Francis
On Wed, Apr 22, 2020 at 12:20 PM Richard Henderson wrote: > > On 4/22/20 11:05 AM, Alistair Francis wrote: > > Just to clarify, this patch is still correct right? > > Yes. That's what I thought. Thanks :) Applied to the RISC-V tree for 5.1. Alistair > > > r~

Re: [PATCH for QEMU] hw/vfio: Add VMD Passthrough Quirk

2020-04-22 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200422171305.10923-1-jonathan.derr...@intel.com/ Hi, This series failed the asan build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN === #!/bin/b

Re: [PATCH for QEMU] hw/vfio: Add VMD Passthrough Quirk

2020-04-22 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200422171305.10923-1-jonathan.derr...@intel.com/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT B

[PATCH v2 2/2] virtio-pci: update virtio pci bar layout documentation

2020-04-22 Thread Anthoine Bourgeois
The modern io bar was never documented. Signed-off-by: Anthoine Bourgeois --- hw/virtio/virtio-pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c index 4cb784389c..d028c17c24 100644 --- a/hw/virtio/virtio-pci.c +++ b/hw/virtio/virtio-pci.c @

[PATCH v2 1/2] virtio-vga: fix virtio-vga bar ordering

2020-04-22 Thread Anthoine Bourgeois
With virtio-vga, pci bar are reordered. Bar #2 is used for compatibility with stdvga. By default, bar #2 is used by virtio modern io bar. This bar is the last one introduce in the virtio pci bar layout and it's crushed by the virtio-vga reordering. So virtio-vga and modern-pio-notify are incompatib

Re: [PATCH] virtio-vga: fix virtio-vga bar ordering

2020-04-22 Thread Anthoine Bourgeois
On Wed, Apr 22, 2020 at 12:46:57PM +0200, Gerd Hoffmann wrote: This fix exchange the modern io bar with the modern memory bar, replacing the msix bar that is never impacted anyway. Well, msix was placed in bar 4 intentionally. That keeps bar 1 (default msix location) free, so we have the optio

Re: [PATCH for QEMU] hw/vfio: Add VMD Passthrough Quirk

2020-04-22 Thread Derrick, Jonathan
On Wed, 2020-04-22 at 14:36 -0700, no-re...@patchew.org wrote: > Patchew URL: > https://patchew.org/QEMU/20200422171305.10923-1-jonathan.derr...@intel.com/ > > > > Hi, > > This series failed the asan build test. Please find the testing commands and > their output below. If you have Docker inst

Re: [PATCH for QEMU] hw/vfio: Add VMD Passthrough Quirk

2020-04-22 Thread Andrzej Jakowski
On 4/22/20 10:13 AM, Jon Derrick wrote: > The VMD endpoint provides a real PCIe domain to the guest, including > bridges and endpoints. The IOMMU performs Host Physical Address to Guest > Physical Address translation when assigning downstream endpoint BARs and > when translating MMIO addresses. > >

[PATCH v3 3/4] tests/qtest: Introduce tests for Xilinx ZyqnMP CAN controller

2020-04-22 Thread Vikram Garhwal
Qtest performs five tests on Xlnx-CAN controller: It checks communication between CAN0 and CAN1 via can-bus. Tests CAN in loopback, sleep and snoop mode. Tests CAN filtering for incoming messages. Signed-off-by: Vikram Garhwal --- tests/qtest/Makefile.include | 2 + tes

[PATCH v3 1/4] hw/net/can: Introduce Xilinx ZynqMP CAN controller

2020-04-22 Thread Vikram Garhwal
XlnxCAN is developed based on SocketCAN, QEMU CAN bus implementation. Bus connection and socketCAN connection for each CAN module can be set through command lines. Signed-off-by: Vikram Garhwal --- hw/net/can/Makefile.objs |1 + hw/net/can/xlnx-zynqmp-can.c | 1113 +++

[PATCH v3 4/4] MAINTAINERS: Add maintainer entry for Xilinx ZynqMP CAN

2020-04-22 Thread Vikram Garhwal
Add myself as Xilinx CAN maintainer. Signed-off-by: Vikram Garhwal --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8cbc1fa..6223573 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1433,6 +1433,13 @@ F: hw/net/opencores_eth.c Devices -

[PATCH v3 2/4] xlnx-zynqmp: Connect Xilinx ZynqMP CAN controller

2020-04-22 Thread Vikram Garhwal
Connect CAN0 and CAN1 to ZCU102 board. Signed-off-by: Vikram Garhwal --- hw/arm/xlnx-zynqmp.c | 26 ++ include/hw/arm/xlnx-zynqmp.h | 3 +++ 2 files changed, 29 insertions(+) diff --git a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c index b84d153..e5f0d9f 100644

[PATCH v3 0/4] Introduce Xilinx ZynqMP CAN controller

2020-04-22 Thread Vikram Garhwal
Example for single CAN: -object can-bus,id=canbus0 \ -global driver=xlnx.zynqmp-can,property=canbus0,value=canbus0 \ -object can-host-socketcan,id=socketcan0,if=vcan0,canbus=canbus0 Example for connecting both CAN: -object can-bus,id=canbus0 -object can-bus,id=canbus1 \

Re: [PATCH] linux-user/riscv: fix up struct target_ucontext definition

2020-04-22 Thread LIU Zhiwei
On 2020/4/22 12:10, Richard Henderson wrote: On 4/21/20 7:34 PM, LIU Zhiwei wrote: Ping. When I port RISU, I find this bug. I can't get the correct registers from the struct ucontext_t parameter in the signal handler. The RISC-V Linux ABI will need to be extended to handle RVV state. There

[PATCH] qemu-sockets: add abstract UNIX domain socket support

2020-04-22 Thread xiaoqiang zhao
unix_connect_saddr now support abstract address type By default qemu does not support abstract UNIX domain socket address. Add this ability to make qemu handy when abstract address is needed. Abstract address is marked by prefixing the address name with a '@'. Signed-off-by: xiaoqiang zhao ---

Re: [edk2-discuss] Load Option passing. Either bugs or my confusion.

2020-04-22 Thread Hou Qiming
> > > > And when the user provides an EDID one should parse it and set the > default > > resolution to match it. But that's a less important feature. > > It's more complex than you might think, and (to me personally) it seems > to require more time than its importance justifies. > > https://bugzill

Re: [PATCH] qemu-sockets: add abstract UNIX domain socket support

2020-04-22 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200423023212.20968-1-zxq_yx_...@163.com/ Hi, This series failed the asan build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN === #!/bin/bash expor

Re: [PATCH] qemu-sockets: add abstract UNIX domain socket support

2020-04-22 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200423023212.20968-1-zxq_yx_...@163.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PATCH] qemu-sockets: add abstract UNIX domain socket support Message-id: 20200423023212.20968-1-zxq_yx_...

[PATCH v2] qemu-sockets: add abstract UNIX domain socket support

2020-04-22 Thread xiaoqiang zhao
unix_connect_saddr now support abstract address type By default qemu does not support abstract UNIX domain socket address. Add this ability to make qemu handy when abstract address is needed. Abstract address is marked by prefixing the address name with a '@'. Signed-off-by: xiaoqiang zhao ---

[PATCH RESEND v6 00/36] Initial support for multi-process qemu

2020-04-22 Thread elena . ufimtseva
From: Elena Ufimtseva Hello This is a resend of v6 patchset since we regrettably omitted few comments from v5 review in the previously sent series (see in https://lists.gnu.org/archive/html/qemu-devel/2020-04/msg00828.html). We also run more tests and fixed the build errors that were found in v

[PATCH RESEND v6 03/36] command-line: refractor parser code

2020-04-22 Thread elena . ufimtseva
From: Elena Ufimtseva Refactor command-line parser code so that it could be used by other processes as well. Signed-off-by: Elena Ufimtseva Signed-off-by: Jagannathan Raman Signed-off-by: John G Johnson --- MAINTAINERS | 2 + Makefile.objs| 2 + include/qemu-parse.h | 42 +

[PATCH RESEND v6 01/36] memory: alloc RAM from file at offset

2020-04-22 Thread elena . ufimtseva
From: Jagannathan Raman Allow RAM MemoryRegion to be created from an offset in a file, instead of allocating at offset of 0 by default. This is needed to synchronize RAM between QEMU & remote process. Signed-off-by: Jagannathan Raman Signed-off-by: John G Johnson Signed-off-by: Elena Ufimtseva

[PATCH RESEND v6 04/36] multi-process: Refactor chardev functions out of vl.c

2020-04-22 Thread elena . ufimtseva
From: Elena Ufimtseva Some of the initialization helper functions w.r.t chardev in vl.c are also used by the remote process. Therefore, these functions are refactored into shared files that both QEMU & remote process could use. Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signe

[PATCH RESEND v6 06/36] monitor: destaticize HMP commands

2020-04-22 Thread elena . ufimtseva
From: Jagannathan Raman Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman Reviewed-by: Dr. David Alan Gilbert --- hmp-commands.hx| 4 +- monitor/misc.c | 76 +++--- monitor/monitor-internal.h

[PATCH RESEND v6 19/36] multi-process: Connect Proxy Object with device in the remote process

2020-04-22 Thread elena . ufimtseva
From: Jagannathan Raman Send a message to the remote process to connect PCI device with the corresponding Proxy object in QEMU Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- hw/proxy/qemu-proxy.c| 34 +++ incl

[PATCH RESEND v6 13/36] multi-process: setup PCI host bridge for remote device

2020-04-22 Thread elena . ufimtseva
From: Jagannathan Raman PCI host bridge is setup for the remote device process. It is implemented using remote-pcihost object. It is an extension of the PCI host bridge setup by QEMU. Remote-pcihost configures a PCI bus which could be used by the remote PCI device to latch on to. Signed-off-by:

[PATCH RESEND v6 05/36] multi-process: Refactor monitor functions out of vl.c

2020-04-22 Thread elena . ufimtseva
From: Elena Ufimtseva Some of the initialization helper functions w.r.t monitor in vl.c are also used by the remote process. Therefore, these functions are refactored into shared files that both QEMU & remote process could use. Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signe

[PATCH RESEND v6 09/36] multi-process: Add config option for multi-process QEMU

2020-04-22 Thread elena . ufimtseva
From: Jagannathan Raman Add a configuration option to separate multi-process code Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman Signed-off-by: Elena Ufimtseva --- configure | 11 +++ 1 file changed, 11 insertions(+) diff --git a/configure b/configure index 23b5e9375

[PATCH RESEND v6 21/36] multi-process: PCI BAR read/write handling for proxy & remote endpoints

2020-04-22 Thread elena . ufimtseva
From: Jagannathan Raman Proxy device object implements handler for PCI BAR writes and reads. The handler uses BAR_WRITE/BAR_READ message to communicate to the remote process with the BAR address and value to be written/read. The remote process implements handler for BAR_WRITE/BAR_READ message. S

[PATCH RESEND v6 31/36] multi-process/mon: choose HMP commands based on target

2020-04-22 Thread elena . ufimtseva
From: Elena Ufimtseva Add "targets" field to HMP command definition to select the targets which would be supported by each command Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- hmp-commands-info.hx | 10 ++ hmp-commands.hx | 20

[PATCH RESEND v6 07/36] multi-process: add a command line option for debug file

2020-04-22 Thread elena . ufimtseva
From: Elena Ufimtseva Can be used with -d rdebug command options when starting qemu. Signed-off-by: Elena Ufimtseva Signed-off-by: Jagannathan Raman Signed-off-by: John G Johnson Reviewed-by: Stefan Hajnoczi --- include/qemu/log.h | 1 + util/log.c | 2 ++ 2 files changed, 3 inserti

[PATCH RESEND v6 33/36] multi-process/mon: enable QMP module support in the remote process

2020-04-22 Thread elena . ufimtseva
From: Elena Ufimtseva Build system changes to enable QMP module in the remote process Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- Makefile.objs | 10 ++ Makefile.target | 35 ++

[PATCH RESEND v6 22/36] multi-process: Synchronize remote memory

2020-04-22 Thread elena . ufimtseva
From: Jagannathan Raman Add memory-listener object which is used to keep the view of the RAM in sync between QEMU and remote process. A MemoryListener is registered for system-memory AddressSpace. The listener sends SYNC_SYSMEM message to the remote process when memory listener commits the change

[PATCH RESEND v6 16/36] multi-process: remote process initialization

2020-04-22 Thread elena . ufimtseva
From: Jagannathan Raman Adds the handler to process message from QEMU, Initialize remote process main loop, handles SYNC_SYSMEM message by updating its "system_memory" container using shared file descriptors received from QEMU. Signed-off-by: John G Johnson Signed-off-by: Elena Ufimtseva Signe

[PATCH RESEND v6 15/36] multi-process: setup memory manager for remote device

2020-04-22 Thread elena . ufimtseva
From: Jagannathan Raman sync_sysmem_msg_t message format is defined. It is used to send file descriptors of the RAM regions to remote device. RAM on the remote device is configured with a set of file descriptors. Old RAM regions are deleted and new regions, each with an fd, is added to the RAM.

[PATCH RESEND v6 18/36] multi-process: Initialize Proxy Object's communication channel

2020-04-22 Thread elena . ufimtseva
From: Jagannathan Raman Add "socket" object property which initializes the communication channel Signed-off-by: Elena Ufimtseva Signed-off-by: Jagannathan Raman Signed-off-by: John G Johnson --- hw/proxy/qemu-proxy.c | 20 1 file changed, 20 insertions(+) diff --git a/h

[PATCH RESEND v6 20/36] multi-process: Forward PCI config space acceses to the remote process

2020-04-22 Thread elena . ufimtseva
From: Elena Ufimtseva The Proxy Object sends the PCI config space accesses as messages to the remote process over the communication channel Signed-off-by: Elena Ufimtseva Signed-off-by: Jagannathan Raman Signed-off-by: John G Johnson --- hw/proxy/qemu-proxy.c| 61

[PATCH RESEND v6 29/36] multi-process: handle heartbeat messages in remote process

2020-04-22 Thread elena . ufimtseva
From: Elena Ufimtseva If the remote process is alive, it responds to proxy's heartbeat messages Signed-off-by: Jagannathan Raman Signed-off-by: John G Johnson Signed-off-by: Elena Ufimtseva --- remote/remote-main.c | 5 + 1 file changed, 5 insertions(+) diff --git a/remote/remote-main.c

[PATCH RESEND v6 30/36] multi-process: perform device reset in the remote process

2020-04-22 Thread elena . ufimtseva
From: Elena Ufimtseva Perform device reset in the remote process when QEMU performs device reset. This is required to reset the internal state (like registers, etc...) of emulated devices Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- hw/pro

[PATCH RESEND v6 23/36] multi-process: create IOHUB object to handle irq

2020-04-22 Thread elena . ufimtseva
From: Jagannathan Raman IOHUB object is added to manage PCI IRQs. It uses KVM_IRQFD ioctl to create irqfd to injecting PCI interrupts to the guest. IOHUB object forwards the irqfd to the remote process. Remote process uses this fd to directly send interrupts to the guest, bypassing QEMU. Signed-

[PATCH RESEND v6 27/36] multi-process: add support to parse device option

2020-04-22 Thread elena . ufimtseva
From: Elena Ufimtseva Enable remote process to parse device command line option Signed-off-by: Elena Ufimtseva Signed-off-by: Jagannathan Raman Signed-off-by: John G Johnson --- remote/remote-opts.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/remote/remote-opts.c b/remote

[PATCH RESEND v6 25/36] multi-process: Introduce build flags to separate remote process code

2020-04-22 Thread elena . ufimtseva
From: Elena Ufimtseva Introduce SCSI_PROCESS & REMOTE_PROCESS build flags to separate code that applies only to remote processes. Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- Makefile.target | 4 rules.mak | 2 +- 2 files change

[PATCH RESEND v6 34/36] multi-process/mon: Initialize QMP module for remote processes

2020-04-22 Thread elena . ufimtseva
From: Elena Ufimtseva Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- remote/remote-main.c | 13 + remote/remote-opts.c | 11 +++ 2 files changed, 24 insertions(+) diff --git a/remote/remote-main.c b/remote/remote-main.c i

[PATCH RESEND v6 32/36] multi-process/mon: stub functions to enable QMP module for remote process

2020-04-22 Thread elena . ufimtseva
From: Elena Ufimtseva QMP module doesn't need some functions to run independently on the remote processes. However, these functions are necessary for compilation. Therefore, these functions are stub'ed out. The stub functions raise an assert if QEMU is built in debug mode (--enable-debug). Signe

[PATCH RESEND v6 10/36] multi-process: build system for remote device process

2020-04-22 Thread elena . ufimtseva
From: Jagannathan Raman Modify Makefile to support the building of the remote device process. Implements main() function of remote device process. Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman Signed-off-by: Elena Ufimtseva --- MAINTAINERS | 8 ++ Makefile

[PATCH RESEND v6 02/36] multi-process: Refactor machine_init and exit notifiers

2020-04-22 Thread elena . ufimtseva
From: Elena Ufimtseva Relocate machine_int and exit notifiers into common code Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- MAINTAINERS | 1 + Makefile.objs | 1 + include/sysemu/sysemu.h | 2 ++ softmm

[PATCH RESEND v6 35/36] multi-process: add the concept description to docs/devel/qemu-multiprocess

2020-04-22 Thread elena . ufimtseva
From: John G Johnson Signed-off-by: John G Johnson Signed-off-by: Elena Ufimtseva Signed-off-by: Jagannathan Raman --- MAINTAINERS | 1 + docs/devel/index.rst | 1 + docs/devel/multi-process.rst | 957 +++ 3 files changed, 959 inser

[PATCH RESEND v6 08/36] multi-process: Add stub functions to facilitate build of multi-process

2020-04-22 Thread elena . ufimtseva
From: Jagannathan Raman Add stub functions that are needed during compile time but not in runtime. To avoid duplicate symbol while linking for monitor_get_fd, put in a separate file. Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman Signed-off-by: Elena Ufimtseva --- MAINTAINERS

[PATCH RESEND v6 17/36] multi-process: introduce proxy object

2020-04-22 Thread elena . ufimtseva
From: Elena Ufimtseva Defines a PCI Device proxy object as a parent of TYPE_PCI_DEVICE. PCI Proxy Object registers as a PCI device with QEMU and forwards all PCI accesses to the remote process using the communication channel. Signed-off-by: Elena Ufimtseva Signed-off-by: Jagannathan Raman Sig

[PATCH RESEND v6 12/36] multi-process: add functions to synchronize proxy and remote endpoints

2020-04-22 Thread elena . ufimtseva
From: Jagannathan Raman In some cases, for example MMIO read, QEMU has to wait for the remote to complete a command before proceeding. An eventfd based mechanism is added to synchronize QEMU & remote process. Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman Signed-off-by: Elena U

[PATCH RESEND v6 11/36] multi-process: define mpqemu-link object

2020-04-22 Thread elena . ufimtseva
From: Jagannathan Raman Defines mpqemu-link object which forms the communication link between QEMU & emulation program. Adds functions to configure members of mpqemu-link object instance. Adds functions to send and receive messages over the communication channel. Adds GMainLoop to handle events r

[PATCH RESEND v6 24/36] multi-process: Retrieve PCI info from remote process

2020-04-22 Thread elena . ufimtseva
From: Jagannathan Raman Retrieve PCI configuration info about the remote device and configure the Proxy PCI object based on the returned information Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- hw/proxy/qemu-proxy.c| 84 +++

[PATCH RESEND v6 26/36] multi-process: add parse_cmdline in remote process

2020-04-22 Thread elena . ufimtseva
From: Elena Ufimtseva Signed-off-by: Elena Ufimtseva Signed-off-by: Jagannathan Raman Signed-off-by: John G Johnson --- MAINTAINERS | 2 ++ remote/Makefile.objs | 1 + remote/remote-main.c | 21 - remote/remote-opts.c | 75 r

[PATCH RESEND v6 14/36] multi-process: setup a machine object for remote device process

2020-04-22 Thread elena . ufimtseva
From: Jagannathan Raman remote-machine object sets up various subsystems of the remote device process. Instantiate PCI host bridge object and initialize RAM, IO & PCI memory regions. Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman Signed-off-by: Elena Ufimtseva --- MAINTAINERS

[PATCH RESEND v6 28/36] multi-process: send heartbeat messages to remote

2020-04-22 Thread elena . ufimtseva
From: Elena Ufimtseva In order to detect remote processes which are hung, the proxy periodically sends heartbeat messages to confirm if the remote process is alive Signed-off-by: Jagannathan Raman Signed-off-by: John G Johnson Signed-off-by: Elena Ufimtseva --- hw/proxy/qemu-proxy.c

[PATCH RESEND v6 36/36] multi-process: add configure and usage information

2020-04-22 Thread elena . ufimtseva
From: Elena Ufimtseva Signed-off-by: Elena Ufimtseva Signed-off-by: Jagannathan Raman Signed-off-by: John G Johnson --- MAINTAINERS | 2 + docs/multi-process.rst | 85 + scripts/mpqemu-launcher-perf-mode.py | 92 +

Re: [PATCH 0/1] KVM support for VMD devices

2020-04-22 Thread Christoph Hellwig
On Wed, Apr 22, 2020 at 01:14:44PM -0400, Jon Derrick wrote: > The two patches (Linux & QEMU) add support for passthrough VMD devices > in QEMU/KVM. VMD device 28C0 already supports passthrough natively by > providing the Host Physical Address in a shadow register to the guest > for correct bridge

[PATCH v3 03/16] nvme: remove superfluous breaks

2020-04-22 Thread Klaus Jensen
From: Klaus Jensen These break statements was left over when commit 3036a626e9ef ("nvme: add Get/Set Feature Timestamp support") was merged. Signed-off-by: Klaus Jensen Reviewed-by: Maxim Levitsky Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Keith Busch --- hw/block/nvme.c | 4 1 f

[PATCH v3 06/16] nvme: refactor nvme_addr_read

2020-04-22 Thread Klaus Jensen
From: Klaus Jensen Pull the controller memory buffer check to its own function. The check will be used on its own in later patches. Signed-off-by: Klaus Jensen Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Maxim Levitsky Reviewed-by: Keith Busch --- hw/block/nvme.c | 16

[PATCH v3 04/16] nvme: move device parameters to separate struct

2020-04-22 Thread Klaus Jensen
From: Klaus Jensen Move device configuration parameters to separate struct to make it explicit what is configurable and what is set internally. Signed-off-by: Klaus Jensen Signed-off-by: Klaus Jensen --- hw/block/nvme.c | 49 - hw/block/nvme.h |

[PATCH v3 00/16] nvme: refactoring and cleanups

2020-04-22 Thread Klaus Jensen
From: Klaus Jensen Changes since v2 * Rebased on block-next (Kevin) This caused "nvme: move device parameters to separate struct" and "nvme: factor out cmb/pmr setup" to change a bit too much for me to feel its fair to keep the Reviewed-by's, so please re-review. * Changed

[PATCH v3 08/16] nvme: remove redundant cmbloc/cmbsz members

2020-04-22 Thread Klaus Jensen
From: Klaus Jensen Signed-off-by: Klaus Jensen Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Maxim Levitsky Reviewed-by: Keith Busch --- hw/block/nvme.c | 7 ++- hw/block/nvme.h | 2 -- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/hw/block/nvme.c b/hw/block/nvme.c in

[PATCH v3 01/16] nvme: fix pci doorbell size calculation

2020-04-22 Thread Klaus Jensen
From: Klaus Jensen The size of the BAR is 0x1000 (main registers) + 8 bytes for each queue. Currently, the size of the BAR is calculated like so: n->reg_size = pow2ceil(0x1004 + 2 * (n->num_queues + 1) * 4); Since the 'num_queues' parameter already accounts for the admin queue, this should

[PATCH v3 07/16] nvme: add max_ioqpairs device parameter

2020-04-22 Thread Klaus Jensen
From: Klaus Jensen The num_queues device paramater has a slightly confusing meaning because it accounts for the admin queue pair which is not really optional. Secondly, it is really a maximum value of queues allowed. Add a new max_ioqpairs parameter that only accounts for I/O queue pairs, but ke

[PATCH v3 05/16] nvme: use constants in identify

2020-04-22 Thread Klaus Jensen
From: Klaus Jensen Signed-off-by: Klaus Jensen Reviewed-by: Maxim Levitsky Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Keith Busch --- hw/block/nvme.c | 8 include/block/nvme.h | 8 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/hw/block/nvme.c b/

[PATCH v3 09/16] nvme: factor out property/constraint checks

2020-04-22 Thread Klaus Jensen
From: Klaus Jensen Signed-off-by: Klaus Jensen Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Maxim Levitsky Reviewed-by: Keith Busch --- hw/block/nvme.c | 48 ++-- 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/hw/block/nvme.c b

[PATCH v3 11/16] nvme: factor out block backend setup

2020-04-22 Thread Klaus Jensen
From: Klaus Jensen Signed-off-by: Klaus Jensen Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Maxim Levitsky Reviewed-by: Keith Busch --- hw/block/nvme.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 29cca6e95114.

[PATCH v3 02/16] nvme: rename trace events to pci_nvme

2020-04-22 Thread Klaus Jensen
From: Klaus Jensen Change the prefix of all nvme device related trace events to 'pci_nvme' to not clash with trace events from the nvme block driver. Signed-off-by: Klaus Jensen Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Maxim Levitsky Reviewed-by: Keith Busch --- hw/block/nvme.c

[PATCH v3 10/16] nvme: factor out device state setup

2020-04-22 Thread Klaus Jensen
From: Klaus Jensen Signed-off-by: Klaus Jensen Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Maxim Levitsky Reviewed-by: Keith Busch --- hw/block/nvme.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 658d

[PATCH v3 16/16] nvme: factor out controller identify setup

2020-04-22 Thread Klaus Jensen
From: Klaus Jensen Signed-off-by: Klaus Jensen Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Maxim Levitsky Reviewed-by: Keith Busch --- hw/block/nvme.c | 50 ++--- 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/hw/block/nvme.c

[PATCH v3 12/16] nvme: add namespace helpers

2020-04-22 Thread Klaus Jensen
From: Klaus Jensen Introduce some small helpers to make the next patches easier on the eye. Signed-off-by: Klaus Jensen Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Maxim Levitsky Reviewed-by: Keith Busch --- hw/block/nvme.c | 3 +-- hw/block/nvme.h | 17 + 2 files chan

[PATCH v3 13/16] nvme: factor out namespace setup

2020-04-22 Thread Klaus Jensen
From: Klaus Jensen Signed-off-by: Klaus Jensen Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Maxim Levitsky Reviewed-by: Keith Busch --- hw/block/nvme.c | 46 ++ 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/hw/block/nvme.c b/

[PATCH v3 15/16] nvme: factor out cmb/pmr setup

2020-04-22 Thread Klaus Jensen
From: Klaus Jensen Signed-off-by: Klaus Jensen --- hw/block/nvme.c | 146 ++-- 1 file changed, 79 insertions(+), 67 deletions(-) diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 5dddb97a7394..bc4f6b20045b 100644 --- a/hw/block/nvme.c +++ b/hw/blo

[PATCH v3 14/16] nvme: factor out pci setup

2020-04-22 Thread Klaus Jensen
From: Klaus Jensen Signed-off-by: Klaus Jensen Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Maxim Levitsky Reviewed-by: Keith Busch --- hw/block/nvme.c | 30 ++ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/hw/block/nvme.c b/hw/block/nvme.c i

Re: [PATCH v5 0/4] introduction of migration_version attribute for VFIO live migration

2020-04-22 Thread Yan Zhao
On Tue, Apr 21, 2020 at 08:08:49PM +0800, Tian, Kevin wrote: > > From: Yan Zhao > > Sent: Tuesday, April 21, 2020 10:37 AM > > > > On Tue, Apr 21, 2020 at 06:56:00AM +0800, Alex Williamson wrote: > > > On Sun, 19 Apr 2020 21:24:57 -0400 > > > Yan Zhao wrote: > > > > > > > On Fri, Apr 17, 2020 at

Re: [edk2-discuss] Load Option passing. Either bugs or my confusion.

2020-04-22 Thread Hou Qiming
A little off topic thing: isn't the default resolution supposed to be 1024x768? This is the Microsoft regulation which all my physical devices seem to follow: https://docs.microsoft.com/en-us/windows-hardware/test/hlk/testref/6afc8979-df62-4d86-8f6a-99f05bbdc7f3 And when the user provides an EDID

Re: [PATCH 3/7] target/ppc: Use tcg_gen_gvec_dup_imm

2020-04-22 Thread David Gibson
On Tue, Apr 21, 2020 at 10:50:25AM -0700, Richard Henderson wrote: > On 4/20/20 3:34 AM, Alex Bennée wrote: > >> +GEN_VXFORM_VSPLTI(vspltisb, MO_8, 6, 12); > >> +GEN_VXFORM_VSPLTI(vspltish, MO_16, 6, 13); > >> +GEN_VXFORM_VSPLTI(vspltisw, MO_32, 6, 14); > > > > There are unused parameters opc2/opc

Re: [PATCH v3 04/16] nvme: move device parameters to separate struct

2020-04-22 Thread Philippe Mathieu-Daudé
On 4/22/20 9:09 AM, Klaus Jensen wrote: From: Klaus Jensen Move device configuration parameters to separate struct to make it explicit what is configurable and what is set internally. Signed-off-by: Klaus Jensen Signed-off-by: Klaus Jensen --- hw/block/nvme.c | 49 -

Re: [PATCH v4 18/30] qcow2: Add subcluster support to qcow2_get_host_offset()

2020-04-22 Thread Vladimir Sementsov-Ogievskiy
17.03.2020 21:16, Alberto Garcia wrote: The logic of this function remains pretty much the same, except that it uses count_contiguous_subclusters(), which combines the logic of count_contiguous_clusters() / count_contiguous_clusters_unallocated() and checks individual subclusters. Signed-off-by:

Re: [PATCH v3 15/16] nvme: factor out cmb/pmr setup

2020-04-22 Thread Philippe Mathieu-Daudé
On 4/22/20 9:09 AM, Klaus Jensen wrote: From: Klaus Jensen Signed-off-by: Klaus Jensen --- hw/block/nvme.c | 146 ++-- 1 file changed, 79 insertions(+), 67 deletions(-) diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 5dddb97a7394..bc4f6b2004

Re: [PATCH v3 04/16] nvme: move device parameters to separate struct

2020-04-22 Thread Maxim Levitsky
On Wed, 2020-04-22 at 09:09 +0200, Klaus Jensen wrote: > From: Klaus Jensen > > Move device configuration parameters to separate struct to make it > explicit what is configurable and what is set internally. > > Signed-off-by: Klaus Jensen > Signed-off-by: Klaus Jensen > --- > hw/block/nvme.c

Re: [PATCH] roms: opensbi: Upgrade from v0.6 to v0.7

2020-04-22 Thread Philippe Mathieu-Daudé
On 4/22/20 3:30 AM, Bin Meng wrote: Hi Alistair, On Tue, Apr 21, 2020 at 9:34 AM Bin Meng wrote: Hi Alistair, On Tue, Apr 21, 2020 at 2:41 AM Alistair Francis wrote: On Mon, Apr 20, 2020 at 6:25 AM Bin Meng wrote: Upgrade OpenSBI from v0.6 to v0.7 and the pre-built bios images. The v0

Re: [PATCH v3 12/16] nvme: add namespace helpers

2020-04-22 Thread Maxim Levitsky
On Wed, 2020-04-22 at 09:09 +0200, Klaus Jensen wrote: > From: Klaus Jensen > > Introduce some small helpers to make the next patches easier on the eye. > > Signed-off-by: Klaus Jensen > Reviewed-by: Philippe Mathieu-Daudé > Reviewed-by: Maxim Levitsky > Reviewed-by: Keith Busch > --- > hw/

RE: [PATCH 1/3] net/colo-compare.c: Create event_bh with the right AioContext

2020-04-22 Thread Zhang, Chen
> -Original Message- > From: Lukas Straub > Sent: Thursday, April 9, 2020 2:34 AM > To: qemu-devel > Cc: Zhang, Chen ; Li Zhijian > ; Jason Wang ; Marc- > André Lureau ; Paolo Bonzini > > Subject: [PATCH 1/3] net/colo-compare.c: Create event_bh with the right > AioContext > > qemu_bh

RE: [PATCH 2/3] chardev/char.c: Use qemu_co_sleep_ns if in coroutine

2020-04-22 Thread Zhang, Chen
> -Original Message- > From: Lukas Straub > Sent: Thursday, April 9, 2020 2:34 AM > To: qemu-devel > Cc: Zhang, Chen ; Li Zhijian > ; Jason Wang ; Marc- > André Lureau ; Paolo Bonzini > > Subject: [PATCH 2/3] chardev/char.c: Use qemu_co_sleep_ns if in coroutine > > This will be neede

RE: [PATCH 3/3] net/colo-compare.c: Fix deadlock

2020-04-22 Thread Zhang, Chen
> -Original Message- > From: Lukas Straub > Sent: Thursday, April 9, 2020 2:34 AM > To: qemu-devel > Cc: Zhang, Chen ; Li Zhijian > ; Jason Wang ; Marc- > André Lureau ; Paolo Bonzini > > Subject: [PATCH 3/3] net/colo-compare.c: Fix deadlock > > The chr_out chardev is connected to a

Re: [PATCH 1/3] net/colo-compare.c: Create event_bh with the right AioContext

2020-04-22 Thread Lukas Straub
On Wed, 22 Apr 2020 08:29:39 + "Zhang, Chen" wrote: > > -Original Message- > > From: Lukas Straub > > Sent: Thursday, April 9, 2020 2:34 AM > > To: qemu-devel > > Cc: Zhang, Chen ; Li Zhijian > > ; Jason Wang ; Marc- > > André Lureau ; Paolo Bonzini > > > > Subject: [PATCH 1/3] net

<    1   2   3   >