Re: Re: [PATCH v2] chardev/tcp: fix error message double free error

2020-06-27 Thread lichun
>Hi > >On Thu, Jun 25, 2020 at 10:47 AM Markus Armbruster wrote: >> >> lichun writes: >> >> > Signed-off-by: lichun >> > --- >> >  chardev/char-socket.c | 3 ++- >> >  1 file changed, 2 insertions(+), 1 deletion(-) >> > >> > diff --git a/chardev/char-socket.c b/chardev/char-socket.c >> > index

Re: [RFC v2 1/1] memory: Delete assertion in memory_region_unregister_iommu_notifier

2020-06-27 Thread Yan Zhao
On Sat, Jun 27, 2020 at 08:57:14AM -0400, Peter Xu wrote: > On Sat, Jun 27, 2020 at 03:26:45AM -0400, Yan Zhao wrote: > > > -assert(entry->iova >= notifier->start && entry_end <= notifier->end); > > > +if (notifier->notifier_flags & IOMMU_NOTIFIER_ARBITRARY_MASK) { > > > +tmp.iova

Re: [PATCH v1 00/10] vDPA support in qemu

2020-06-27 Thread Cindy Lu
On Thu, Jun 25, 2020 at 12:48 PM Markus Armbruster wrote: > > Cindy Lu writes: > > > On Tue, Jun 23, 2020 at 5:43 PM Jason Wang wrote: > >> > >> > >> On 2020/6/23 下午5:16, Cindy Lu wrote: > >> > On Tue, Jun 23, 2020 at 3:07 PM Markus Armbruster > >> > wrote: > >> >> Cindy Lu writes: > >> >> >

Re: [PATCH v1 09/10] vhost-vdpa: introduce vhost-vdpa backend

2020-06-27 Thread Cindy Lu
On Thu, Jun 25, 2020 at 8:37 PM Laurent Vivier wrote: > > On 22/06/2020 17:37, Cindy Lu wrote: > > Currently we have 2 types of vhost backends in QEMU: vhost kernel and > > vhost-user. The above patch provides a generic device for vDPA purpose, > > this vDPA device exposes to user space a

RE: [PATCH 05/46] virtio-crypto-pci: Tidy up virtio_crypto_pci_realize()

2020-06-27 Thread Gonglei (Arei)
> -Original Message- > From: Markus Armbruster [mailto:arm...@redhat.com] > Sent: Thursday, June 25, 2020 12:43 AM > To: qemu-devel@nongnu.org > Cc: pbonz...@redhat.com; berra...@redhat.com; ehabk...@redhat.com; > qemu-bl...@nongnu.org; peter.mayd...@linaro.org; >

Re: [PATCH for 5.0 v1 1/2] riscv: Don't use stage-2 PTE lookup protection flags

2020-06-27 Thread Richard Henderson
On 6/25/20 12:02 PM, Alistair Francis wrote: >> (3) Do we need to validate vbase_prot for write before updating the PTE for >> Access or Dirty? That seems like a loop-hole to allow silent modification of >> hypervisor read-only memory. > > That's a good point. > > Updating the accessed bit

Re: Building in Solaris 11.4

2020-06-27 Thread Michele Denber
Well I removed the "static" from the line static int openpty(int *amaster, int *aslave, char *name, struct termios *termp, struct winsize *winp) in util/qemu-openpty.c. I odn't know if that was the right thing to do but it did allow it to compile. Now I'm stopped here:

Re: [PATCH v2 0/2] tests/qht-bench: Adjust rate/threshold computation

2020-06-27 Thread Emilio G. Cota
On Fri, Jun 26, 2020 at 13:09:48 -0700, Richard Henderson wrote: > Supercedes: <20200620214551.447392-1-richard.hender...@linaro.org> > > Thanks for Emilio's review of v1. I've split "seed" from "rate" > as suggested, left the comparisons alone, and expanded the comment > in do_threshold.

Re: [PULL 08/14] migration: add new migration state wait-unplug

2020-06-27 Thread Peter Maydell
On Tue, 29 Oct 2019 at 23:00, Michael S. Tsirkin wrote: > > From: Jens Freimann > > This patch adds a new migration state called wait-unplug. It is entered > after the SETUP state if failover devices are present. It will transition > into ACTIVE once all devices were succesfully unplugged from

Re: [PULL 49/57] target/arm: Add mte helpers for sve scatter/gather memory ops

2020-06-27 Thread Peter Maydell
On Fri, 26 Jun 2020 at 16:15, Peter Maydell wrote: > > From: Richard Henderson > > Because the elements are non-sequential, we cannot eliminate many > tests straight away like we can for sequential operations. But > we often have the PTE details handy, so we can test for Tagged. > >

Re: [PULL v2 25/31] osdep: Make MIN/MAX evaluate arguments only once

2020-06-27 Thread Peter Maydell
On Fri, 26 Jun 2020 at 14:57, Paolo Bonzini wrote: > > From: Eric Blake > > I'm not aware of any immediate bugs in qemu where a second runtime > evaluation of the arguments to MIN() or MAX() causes a problem, but > proactively preventing such abuse is easier than falling prey to an > unintended

Re: [PATCH v5] osdep: Make MIN/MAX evaluate arguments only once

2020-06-27 Thread Richard Henderson
On 6/25/20 9:26 AM, Eric Blake wrote: > I'm not aware of any immediate bugs in qemu where a second runtime > evaluation of the arguments to MIN() or MAX() causes a problem, but > proactively preventing such abuse is easier than falling prey to an > unintended case down the road. At any rate,

How Qemu TCG optimize memory read?

2020-06-27 Thread nguyen linh mai
Hi, Looking at how Qemu TCG handle "pop rax" instruction on x64, which read from stack memory, I found that the code in load_helper() in accel/tcg/cputlb.c is never exercised. I guess the reason is that TCG try to avoid "trivial" memory access by optimizing memory read, perhaps by directly

[PULL 4/6] scripts/performance: Add topN_perf.py script

2020-06-27 Thread Aleksandar Markovic
From: Ahmed Karaman Syntax: topN_perf.py [-h] [-n] -- \ [] \ [] [-h] - Print the script arguments help message. [-n] - Specify the number of top functions to print. - If this flag is not specified, the tool defaults to 25. Example of usage:

[PULL 3/6] MAINTAINERS: Add Loongson-3 maintainer and reviewer

2020-06-27 Thread Aleksandar Markovic
From: Huacai Chen Add myself as the maintainer for Loongson-3 virtual platforms, and also add Jiaxun Yang as the reviewer. Signed-off-by: Huacai Chen Co-developed-by: Jiaxun Yang Reviewed-by: Aleksandar Markovic Signed-off-by: Aleksandar Markovic Message-Id:

[PULL 6/6] MAINTAINERS: Add 'Performance Tools and Tests' subsection

2020-06-27 Thread Aleksandar Markovic
This commit creates a new 'Miscellaneous' section which hosts a new 'Performance Tools and Tests' subsection. This subsection will contain the the performance scripts and benchmarks written as a part of the 'TCG Continuous Benchmarking' project. Also, it will be a placeholder for follow-ups to

[PULL 0/6] MIPS + TCG Continuous Benchmarking queue for June 27th, 2020

2020-06-27 Thread Aleksandar Markovic
The following changes since commit 553cf5d7c47bee05a3dec9461c1f8430316d516b: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20200626' into staging (2020-06-26 18:22:36 +0100) are available in the git repository at: https://github.com/AMarkovic/qemu

[PULL 1/6] hw/mips: Implement the kvm_type() hook in MachineClass

2020-06-27 Thread Aleksandar Markovic
From: Huacai Chen MIPS has two types of KVM: TE & VZ, and TE is the default type. Now we can't create a VZ guest in QEMU because it lacks the kvm_type() hook in MachineClass. This patch add the the kvm_type() hook to support both of the two types. [AM: Added "if defined" guards.] Reviewed-by:

[PULL 2/6] hw/intc: Add Loongson LIOINTC support

2020-06-27 Thread Aleksandar Markovic
From: Huacai Chen Loongson-3 has an integrated liointc (Local I/O Interrupt Controller). It is similar to Goldfish interrupt controller, but more powerful (e.g., it can route external interrupt to multi-cores). Documents about Loongson-3's liointc: 1, https://wiki.godson.ac.cn/ip_block:liointc;

[PULL 5/6] scripts/performance: Add topN_callgrind.py script

2020-06-27 Thread Aleksandar Markovic
From: Ahmed Karaman Python script that prints the top N most executed functions in QEMU using callgrind. Syntax: topN_callgrind.py [-h] [-n] -- \ [] \ [] [-h] - Print the script arguments help message. [-n] - Specify the number of top functions

Re: [PATCH v9 0/5] linux-user: User support for AArch64 BTI

2020-06-27 Thread Richard Henderson
On 5/20/20 10:27 AM, Richard Henderson wrote: > The kernel ABI for this is (finally) close to being merged: > > https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/log/?h=for-next/bti-user > > I've made a couple of tweaks from v8: > > (1) Only map the interpreter or a static

Re: [PATCH v4 3/3] MAINTAINERS: Add 'Performance Tools and Tests'subsection

2020-06-27 Thread Aleksandar Markovic
On Fri, Jun 26, 2020 at 7:02 PM Ahmed Karaman wrote: > > This commit creates a new 'Miscellaneous' section which hosts a new > 'Performance Tools and Tests' subsection. > The subsection will contain the the performance scripts and benchmarks > written as a part of the 'TCG Continuous

Re: [PATCH v4 1/3] scripts/performance: Add topN_perf.py script

2020-06-27 Thread Aleksandar Markovic
On Fri, Jun 26, 2020 at 7:00 PM Ahmed Karaman wrote: > > Syntax: > topN_perf.py [-h] [-n] -- \ > [] \ > [] > > [-h] - Print the script arguments help message. > [-n] - Specify the number of top functions to print. > - If this flag is not specified, the

Re: [PATCH v4 2/3] scripts/performance: Add topN_callgrind.py script

2020-06-27 Thread Aleksandar Markovic
On Fri, Jun 26, 2020 at 6:59 PM Ahmed Karaman wrote: > > Python script that prints the top N most executed functions in QEMU > using callgrind. > > Syntax: > topN_callgrind.py [-h] [-n] -- \ >[] \ >[] > > [-h] - Print the script arguments help

Re: [PATCH V6 2/4] hw/intc: Add Loongson liointc support

2020-06-27 Thread Aleksandar Markovic
On Wed, Jun 24, 2020 at 12:48 PM Huacai Chen wrote: > > Loongson-3 has an integrated liointc (Local I/O interrupt controller). > It is similar to goldfish interrupt controller, but more powerful (e.g., > it can route external interrupt to multi-cores). > > Documents about Loongson-3's liointc: >

Re: [PATCH V6 4/4] MAINTAINERS: Add Loongson-3 maintainer and reviewer

2020-06-27 Thread Aleksandar Markovic
On Wed, Jun 24, 2020 at 12:46 PM Huacai Chen wrote: > > Add myself as a maintainer of Loongson-3 virtual platform, and also add > Jiaxun Yang as a reviewer. > > Signed-off-by: Huacai Chen > Co-developed-by: Jiaxun Yang > --- Applied to MIPS queue, for now without one of two files mentioned in

Re: [PATCH V6 1/4] hw/mips: Implement the kvm_type() hook in MachineClass

2020-06-27 Thread Aleksandar Markovic
On Wed, Jun 24, 2020 at 12:44 PM Huacai Chen wrote: > > MIPS has two types of KVM: TE & VZ, and TE is the default type. Now we > can't create a VZ guest in QEMU because it lacks the kvm_type() hook in > MachineClass. This patch add the the kvm_type() hook to support both of > the two types. > >

[PATCH v7 17/21] multi-process: Retrieve PCI info from remote process

2020-06-27 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/i386/remote-msg.c | 23 +++

[PATCH v7 14/21] multi-process: PCI BAR read/write handling for proxy & remote endpoints

2020-06-27 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.

[PATCH v7 08/21] multi-process: Initialize communication channel at the remote end

2020-06-27 Thread elena . ufimtseva
From: Elena Ufimtseva Initialize the common QIOChannel at remote the end Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- hw/i386/remote.c | 16 include/hw/i386/remote.h | 2 ++ 2 files changed, 18 insertions(+)

[PATCH v7 09/21] multi-process: Initialize message handler in remote device

2020-06-27 Thread elena . ufimtseva
From: Jagannathan Raman Initializes the message handler function in the remote process. It is called whenever there's an event pending on QIOChannel that registers this function. Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- MAINTAINERS

[PATCH v7 20/21] multi-process: add the concept description to docs/devel/qemu-multiprocess

2020-06-27 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

[PATCH v7 15/21] multi-process: Synchronize remote memory

2020-06-27 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

[PATCH v7 04/21] multi-process: setup a machine object for remote device process

2020-06-27 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 ---

[PATCH v7 21/21] multi-process: add configure and usage information

2020-06-27 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 | 71 scripts/mpqemu-launcher-perf-mode.py | 67

[PATCH v7 05/21] multi-process: add qio channel function to transmit

2020-06-27 Thread elena . ufimtseva
From: Elena Ufimtseva The entire array of the memory regions and file handlers. Will be used in the next patch. Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- include/io/channel.h | 24 +++ io/channel.c | 45

[PATCH v7 02/21] multi-process: Add config option for multi-process QEMU

2020-06-27 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

[PATCH v7 19/21] multi-process: perform device reset in the remote process

2020-06-27 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 ---

[PATCH v7 03/21] multi-process: setup PCI host bridge for remote device

2020-06-27 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 v7 16/21] multi-process: create IOHUB object to handle irq

2020-06-27 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.

[PATCH v7 18/21] multi-process: heartbeat messages to remote

2020-06-27 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. The remote process responds to this heartbeat message to confirm it is alive. Signed-off-by: Jagannathan Raman Signed-off-by:

[PATCH v7 12/21] multi-process: Connect Proxy Object with device in the remote process

2020-06-27 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/i386/remote-msg.c | 39

[PATCH v7 13/21] multi-process: Forward PCI config space acceses to the remote process

2020-06-27 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 TODO: Investigate if the local PCI config writes can be dropped. Without the proxy local PCI config space writes for the device, the driver in the guest

[PATCH v7 11/21] multi-process: introduce proxy object

2020-06-27 Thread elena . ufimtseva
From: Elena Ufimtseva Defines a PCI Device proxy object as a child of TYPE_PCI_DEVICE. Signed-off-by: Elena Ufimtseva Signed-off-by: Jagannathan Raman Signed-off-by: John G Johnson --- MAINTAINERS| 2 ++ hw/pci/Makefile.objs | 1 + hw/pci/proxy.c | 70

[PATCH v7 00/21] Initial support for multi-process qemu

2020-06-27 Thread elena . ufimtseva
From: Elena Ufimtseva Hello This is the v7 of the patchset. Thank you very much for the detailed feedback for v6. We appreciate your time. We have addressed the latest comments and suggestions that were provided on v6 patch series and incorporated to this patchset. This is the list of changes

[PATCH v7 06/21] multi-process: define MPQemuMsg format and transmission functions

2020-06-27 Thread elena . ufimtseva
From: Elena Ufimtseva Defines MPQemuMsg, which is the message that is sent to the remote process. This message is sent over QIOChannel and is used to command the remote process to perform various tasks. Also defined the helper functions to send and receive messages over the QIOChannel

[PATCH v7 01/21] memory: alloc RAM from file at offset

2020-06-27 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

[PATCH v7 07/21] multi-process: add co-routines to communicate with remote

2020-06-27 Thread elena . ufimtseva
From: Elena Ufimtseva process to avoid blocking the main loop during the message exchanges. To be used by proxy device. Signed-off-by: Elena Ufimtseva Signed-off-by: Jagannathan Raman Signed-off-by: John G Johnson --- include/io/mpqemu-link.h | 16 + io/mpqemu-link.c | 78

[PATCH v7 10/21] multi-process: setup memory manager for remote device

2020-06-27 Thread elena . ufimtseva
From: Jagannathan Raman SyncSysMemMsg 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.

Re: Building in Solaris 11.4

2020-06-27 Thread Michele Denber
Well the make ran for a while and then stopped here: root@hemlock:~/qemu-5.0.0# gmake -j16 ... CC util/bitops.o util/qemu-openpty.c:56:12: error: static declaration of \u2018openpty\u2019 follows non-static declaration static int openpty(int *amaster, int *aslave, char *name,

Re: [PATCH v6 1/2] target/arm: kvm: Handle DABT with no valid ISS

2020-06-27 Thread Beata Michalska
Hi Peter, Hi Andrew Thanks for quick review. I have pushed the updated version. BR Beata On Fri, 26 Jun 2020 at 13:59, Peter Maydell wrote: > > On Fri, 26 Jun 2020 at 10:01, Andrew Jones wrote: > > nit: How about using '= {0}' when declaring the variable, rather than this > > memset? > > We

[PATCH v7 2/2] target/arm: kvm: Handle misconfigured dabt injection

2020-06-27 Thread Beata Michalska
Injecting external data abort through KVM might trigger an issue on kernels that do not get updated to include the KVM fix. For those and aarch32 guests, the injected abort gets misconfigured to be an implementation defined exception. This leads to the guest repeatedly re-running the faulting

[PATCH v7 1/2] target/arm: kvm: Handle DABT with no valid ISS

2020-06-27 Thread Beata Michalska
On ARMv7 & ARMv8 some load/store instructions might trigger a data abort exception with no valid ISS info to be decoded. The lack of decode info makes it at least tricky to emulate those instruction which is one of the (many) reasons why KVM will not even try to do so. Add support for handling

[PATCH v7 0/2] target/arm: kvm: Support for KVM DABT with no valid ISS

2020-06-27 Thread Beata Michalska
Some of the ARMv7 & ARMv8 load/store instructions might trigger a data abort exception with no valid ISS info to be decoded. The lack of decode info makes it at least tricky to emulate the instruction which is one of the (many) reasons why KVM will not even try to do so. So far, if a guest made

Re: [PULL 00/84] QOM patches for 2020-06-15

2020-06-27 Thread Peter Maydell
On Sat, 27 Jun 2020 at 12:53, Markus Armbruster wrote: > Peter Maydell writes: > > Hi. I've just noticed that this commit added new global-scope > > functions to header files without documentation comments, eg > > > > bool qdev_realize_and_unref(DeviceState *dev, BusState *bus, Error **errp); >

Re: [RFC v2 1/1] memory: Delete assertion in memory_region_unregister_iommu_notifier

2020-06-27 Thread Peter Xu
On Sat, Jun 27, 2020 at 03:26:45AM -0400, Yan Zhao wrote: > > -assert(entry->iova >= notifier->start && entry_end <= notifier->end); > > +if (notifier->notifier_flags & IOMMU_NOTIFIER_ARBITRARY_MASK) { > > +tmp.iova = MAX(tmp.iova, notifier->start); > > +tmp.addr_mask =

[PATCH] target/xtensa: make opcode properties more dynamic

2020-06-27 Thread Max Filippov
There's XtensaOpcodeOps::test_ill that is used to check whether opcode generates illegal opcode exception or not. The illegal opcode exception is not special and so this callback can be generalized to provide any XTENSA_OP_* flags that are not completely static. Introduce

Re: [PATCH] MAINTAINERS: Add an entry for OpenSBI firmware

2020-06-27 Thread Bin Meng
Hi Philippe, On Fri, Jun 26, 2020 at 10:05 PM Philippe Mathieu-Daudé wrote: > > On 6/26/20 3:13 PM, Bin Meng wrote: > > List me as the maintainer for OpenSBI firmware related files. > > > > Signed-off-by: Bin Meng > > --- > > > > MAINTAINERS | 7 +++ > > 1 file changed, 7 insertions(+) > >

Re: [PATCH v2 00/16] Crazy shit around -global (pardon my french)

2020-06-27 Thread Markus Armbruster
Cc: David for insurance against me spewing nonsense about migration. John Snow writes: > On 6/25/20 12:45 AM, Markus Armbruster wrote: >> John Snow writes: >> >>> On 6/22/20 5:42 AM, Markus Armbruster wrote: There are three ways to configure backends: * -nic, -serial, -drive,

Re: [PATCH 07/46] error: Avoid more error_propagate() when error is not used here

2020-06-27 Thread Markus Armbruster
Vladimir Sementsov-Ogievskiy writes: > 24.06.2020 19:43, Markus Armbruster wrote: >> When all we do with an Error we receive into a local variable is >> propagating to somewhere else, we can just as well receive it there >> right away. The previous commit did that for simple cases with >>

Re: [PATCH 06/46] error: Avoid error_propagate() when error is not used here

2020-06-27 Thread Markus Armbruster
Vladimir Sementsov-Ogievskiy writes: > 24.06.2020 19:43, Markus Armbruster wrote: >> When all we do with an Error we receive into a local variable is >> propagating to somewhere else, we can just as well receive it there >> right away. Coccinelle script: >> >> @@ >> identifier fun,

Re: [PATCH 08/46] error: Avoid unnecessary error_propagate() after error_setg()

2020-06-27 Thread Markus Armbruster
Vladimir Sementsov-Ogievskiy writes: > 24.06.2020 19:43, Markus Armbruster wrote: >> Replace >> >> error_setg(, ...); >> error_propagate(errp, err); >> >> by >> >> error_setg(errp, ...); >> >> Related pattern: >> >> if (...) { >> error_setg(, ...); >> goto

Re: [PULL 00/84] QOM patches for 2020-06-15

2020-06-27 Thread Markus Armbruster
Peter Maydell writes: > On Mon, 15 Jun 2020 at 21:43, Markus Armbruster wrote: >> >> The following changes since commit 7d3660e79830a069f1848bb4fa1cdf8f666424fb: >> >> Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into >> staging (2020-06-12 23:06:22 +0100) >> >> are

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

2020-06-27 Thread BALATON Zoltan
On Sat, 27 Jun 2020, Markus Armbruster wrote: BALATON Zoltan writes: On Wed, 22 Apr 2020, BALATON Zoltan wrote: 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,

[Bug 1885350] Re: RISCV dynamic rounding mode is not behaving correctly

2020-06-27 Thread Mina Magdy
After checking RISCY RTL code, i found the implementation is straight forward as stated in specs as follows: if (FPU == 1) begin if (fp_rnd_mode == 3'b111) apu_flags = frm_i; else apu_flags = fp_rnd_mode;

Re: [PATCH v3 2/3] RISC-V: Copy the fdt in dram instead of ROM

2020-06-27 Thread Bin Meng
On Sat, Jun 27, 2020 at 5:55 PM Bin Meng wrote: > > On Sat, Jun 27, 2020 at 12:37 PM Atish Patra wrote: > > > > On Fri, Jun 26, 2020 at 7:54 PM Bin Meng wrote: > > > > > > Hi Atish, > > > > > > On Sat, Jun 27, 2020 at 12:58 AM Atish Patra > > > wrote: > > > > > > > > On Fri, Jun 26, 2020 at

Re: [PATCH v3 2/3] RISC-V: Copy the fdt in dram instead of ROM

2020-06-27 Thread Bin Meng
On Sat, Jun 27, 2020 at 12:37 PM Atish Patra wrote: > > On Fri, Jun 26, 2020 at 7:54 PM Bin Meng wrote: > > > > Hi Atish, > > > > On Sat, Jun 27, 2020 at 12:58 AM Atish Patra wrote: > > > > > > On Fri, Jun 26, 2020 at 4:50 AM Bin Meng wrote: > > > > > > > > Hi Atish, > > > > > > > > On Fri,

Re: [RFC v2 1/1] memory: Delete assertion in memory_region_unregister_iommu_notifier

2020-06-27 Thread Yan Zhao
On Fri, Jun 26, 2020 at 05:29:17PM -0400, Peter Xu wrote: > Hi, Eugenio, > > (CCing Eric, Yan and Michael too) > On Fri, Jun 26, 2020 at 08:41:22AM +0200, Eugenio Pérez wrote: > > diff --git a/memory.c b/memory.c > > index 2f15a4b250..7f789710d2 100644 > > --- a/memory.c > > +++ b/memory.c > >

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

2020-06-27 Thread Markus Armbruster
BALATON Zoltan writes: > On Wed, 22 Apr 2020, BALATON Zoltan wrote: >> 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, _abort, _fatal, or a > pointer

Re: [PATCH v6 2/5] virtio-iommu: Implement RESV_MEM probe request

2020-06-27 Thread Auger Eric
Hi Markus, On 6/27/20 9:08 AM, Markus Armbruster wrote: > Eric Auger writes: > >> This patch implements the PROBE request. At the moment, >> only THE RESV_MEM property is handled. The first goal is >> to report iommu wide reserved regions such as the MSI regions >> set by the machine code. On

Re: [PATCH v6 4/5] virtio-iommu-pci: Add array of Interval properties

2020-06-27 Thread Auger Eric
Hi Markus, On 6/27/20 9:03 AM, Markus Armbruster wrote: > Eric Auger writes: > >> The machine may need to pass reserved regions to the >> virtio-iommu-pci device (such as the MSI window on x86 >> or the MSI doorbells on ARM). >> >> So let's add an array of Interval properties. >> >> Note: if

Re: [PATCH v6 2/5] virtio-iommu: Implement RESV_MEM probe request

2020-06-27 Thread Markus Armbruster
Eric Auger writes: > This patch implements the PROBE request. At the moment, > only THE RESV_MEM property is handled. The first goal is > to report iommu wide reserved regions such as the MSI regions > set by the machine code. On x86 this will be the IOAPIC MSI > region, [0xFEE0 -

Re: [PATCH v6 4/5] virtio-iommu-pci: Add array of Interval properties

2020-06-27 Thread Markus Armbruster
Eric Auger writes: > The machine may need to pass reserved regions to the > virtio-iommu-pci device (such as the MSI window on x86 > or the MSI doorbells on ARM). > > So let's add an array of Interval properties. > > Note: if some reserved regions are already set by the > machine code - which

Re: [PATCH v4 4/8] hw/misc/pca9552: Add a 'description' property for debugging purpose

2020-06-27 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > On 6/26/20 7:49 AM, Markus Armbruster wrote: >> Philippe Mathieu-Daudé writes: >> >>> On 6/25/20 10:12 AM, Philippe Mathieu-Daudé wrote: On 6/25/20 8:37 AM, Markus Armbruster wrote: > Cédric Le Goater writes: > >> On 6/22/20 10:31 AM, Philippe

Re: [RFC PATCH 0/3] Use object_get_canonical_path_component to get child description

2020-06-27 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > This RFC is simply a proof-of-concept to see if I correctly > understood Markus' suggestion, see the thread around: > https://lists.gnu.org/archive/html/qemu-devel/2020-06/msg08652.html Please show us output of "info qom-tree" before and after. Feel free to cut

Re: [PATCH v2 3/3] usb/hcd-xhci: Split pci wrapper for xhci base model

2020-06-27 Thread Markus Armbruster
Sai Pavan Boddu writes: > HI Markus, > >> -Original Message- >> From: Markus Armbruster >> Sent: Friday, June 26, 2020 11:42 AM >> To: Sai Pavan Boddu >> Cc: Peter Maydell ; Thomas Huth >> ; Eduardo Habkost ; qemu- >> de...@nongnu.org; Alistair Francis ; Gerd >> Hoffmann ; Paolo