Re: [PATCH v14 4/8] [RISCV_PM] Add J extension state description

2021-10-19 Thread Alistair Francis
On Mon, Oct 18, 2021 at 3:36 AM Alexey Baturo wrote: > > Signed-off-by: Alexey Baturo > --- > target/riscv/machine.c | 27 +++ > 1 file changed, 27 insertions(+) > > diff --git a/target/riscv/machine.c b/target/riscv/machine.c > index 16a08302da..4d99880797 100644 > --- a

Re: [PATCH v3 1/2] vhost-user: fix VirtQ notifier cleanup

2021-10-19 Thread Michael S. Tsirkin
On Tue, Oct 19, 2021 at 06:45:19AM +, Xueming(Steven) Li wrote: > On Tue, 2021-10-19 at 02:15 -0400, Michael S. Tsirkin wrote: > > On Fri, Oct 08, 2021 at 03:58:04PM +0800, Xueming Li wrote: > > > When vhost-user device cleanup and unmmap notifier address, VM cpu > > > thread that writing the n

Re: [PATCH v14 4/8] [RISCV_PM] Add J extension state description

2021-10-19 Thread Alexey Baturo
Sure, will fix that. Thanks вт, 19 окт. 2021 г. в 09:53, Alistair Francis : > On Mon, Oct 18, 2021 at 3:36 AM Alexey Baturo > wrote: > > > > Signed-off-by: Alexey Baturo > > --- > > target/riscv/machine.c | 27 +++ > > 1 file changed, 27 insertions(+) > > > > diff --git

Re: [PATCH v3] tests: qtest: Add virtio-iommu test

2021-10-19 Thread Eric Auger
Hi Jean, On 10/14/21 2:11 PM, Jean-Philippe Brucker wrote: > Hi Eric, > > On Thu, Oct 14, 2021 at 04:34:05AM -0400, Eric Auger wrote: >> Add the framework to test the virtio-iommu-pci device >> and tests exercising the attach/detach, map/unmap API. >> >> Signed-off-by: Eric Auger >> Acked-by: Tho

Re: [PATCH 2/6] hw/riscv: opentitan: Use MachineState::ram and MachineClass::default_ram_id

2021-10-19 Thread Igor Mammedov
On Mon, 18 Oct 2021 23:38:25 +0800 Bin Meng wrote: > Using memory_region_init_ram(), which can't possibly handle vhost-user, > and can't work as expected with '-numa node,memdev' options. > > Use MachineState::ram instead of manually initializing RAM memory > region, as well as by providing Mach

Re: [PATCH 3/6] hw/riscv: shakti_c: Use MachineState::ram and MachineClass::default_ram_id

2021-10-19 Thread Igor Mammedov
On Mon, 18 Oct 2021 23:38:26 +0800 Bin Meng wrote: > Using memory_region_init_ram(), which can't possibly handle vhost-user, > and can't work as expected with '-numa node,memdev' options. > > Use MachineState::ram instead of manually initializing RAM memory > region, as well as by providing Mach

[PATCH 1/2] failover: fix a regression introduced by JSON'ification of -device

2021-10-19 Thread Laurent Vivier
The hide_device helper can be called several times for the same devices as it shouldn't change any state and should only return an information. But not to rely anymore on QemuOpts we have introduced a new field to store the parameters of the device and don't allow to update it once it is done. An

Re: [PATCH 4/6] hw/riscv: sifive_e: Use MachineState::ram and MachineClass::default_ram_id

2021-10-19 Thread Igor Mammedov
On Mon, 18 Oct 2021 23:38:27 +0800 Bin Meng wrote: > Using memory_region_init_ram(), which can't possibly handle vhost-user, > and can't work as expected with '-numa node,memdev' options. > > Use MachineState::ram instead of manually initializing RAM memory > region, as well as by providing Mach

Re: [PATCH v3 2/2] vhost-user: remove VirtQ notifier restore

2021-10-19 Thread Xueming(Steven) Li
On Tue, 2021-10-19 at 02:37 -0400, Michael S. Tsirkin wrote: > On Fri, Oct 08, 2021 at 03:58:05PM +0800, Xueming Li wrote: > > When vhost-user vdpa client restart, VQ notifier resources become > > invalid, no need to keep mmap, vdpa client will set VQ notifier after > > reconnect. > > > > Removes

Re: [PATCH 5/6] hw/riscv: sifive_u: Use MachineState::ram and MachineClass::default_ram_id

2021-10-19 Thread Igor Mammedov
On Mon, 18 Oct 2021 23:38:28 +0800 Bin Meng wrote: > Using memory_region_init_ram(), which can't possibly handle vhost-user, > and can't work as expected with '-numa node,memdev' options. > > Use MachineState::ram instead of manually initializing RAM memory > region, as well as by providing Mach

[PATCH 0/2] failover: fix a regression introduced by JSON'ification of -device

2021-10-19 Thread Laurent Vivier
Kevin's series "qdev: Add JSON -device" has introduced a regression in failover by removing the QemuOpts parameter. This series fixes that (see PATCH 1) and also makes some cleanup in the hide_device function caller to remove the failover specific code from qdev_device_add_from_qdict() and clarify

Re: [PATCH V4 00/10] vhost-vDPA multiqueue

2021-10-19 Thread Michael S. Tsirkin
On Mon, Oct 11, 2021 at 12:28:19PM +0800, Jason Wang wrote: > Hi All: > > This patch implements the multiqueue support for vhost-vDPA. The most > important requirement si the control virtqueue support. The virtio-net > and vhost-net core are tweak to support control virtqueue as if what > data que

[PATCH 2/2] qdev/qbus: remove failover specific code

2021-10-19 Thread Laurent Vivier
Commit f3a850565693 ("qdev/qbus: add hidden device support") has introduced a generic way to hide a device but it has modified qdev_device_add() to check a specific option of the failover device, "failover_pair_id", before calling the generic mechanism. It's not needed (and not generic) to do that

Re: [PATCH v3 2/2] vhost-user: remove VirtQ notifier restore

2021-10-19 Thread Michael S. Tsirkin
On Tue, Oct 19, 2021 at 07:21:24AM +, Xueming(Steven) Li wrote: > On Tue, 2021-10-19 at 02:37 -0400, Michael S. Tsirkin wrote: > > On Fri, Oct 08, 2021 at 03:58:05PM +0800, Xueming Li wrote: > > > When vhost-user vdpa client restart, VQ notifier resources become > > > invalid, no need to keep m

Re: [PATCH V4 00/10] vhost-vDPA multiqueue

2021-10-19 Thread Jason Wang
On Tue, Oct 19, 2021 at 3:21 PM Michael S. Tsirkin wrote: > > On Mon, Oct 11, 2021 at 12:28:19PM +0800, Jason Wang wrote: > > Hi All: > > > > This patch implements the multiqueue support for vhost-vDPA. The most > > important requirement si the control virtqueue support. The virtio-net > > and vho

Re: [PATCH 6/6] hw/riscv: spike: Use MachineState::ram and MachineClass::default_ram_id

2021-10-19 Thread Igor Mammedov
On Mon, 18 Oct 2021 23:38:29 +0800 Bin Meng wrote: > Using memory_region_init_ram(), which can't possibly handle vhost-user, > and can't work as expected with '-numa node,memdev' options. > > Use MachineState::ram instead of manually initializing RAM memory > region, as well as by providing Mach

[PATCH 08/31] target/loongarch: Add tlb instruction support

2021-10-19 Thread Xiaojuan Yang
This includes: - TLBSRCH - TLBRD - TLBWR - TLBFILL - TLBCLR - TLBFLUSH - INVTLB Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/cpu.c | 19 + target/loongarch/helper.h| 8 + target/loongarch/insn_trans/trans_core.c | 54 +++ target

[PATCH 00/31] Add Loongarch softmmu support.

2021-10-19 Thread Xiaojuan Yang
This series patch add softmmu support for LoongArch. Base on the linux-user emulation support V7 patch. The latest kernel: * https://github.com/loongson/linux/tree/loongarch-next The manual: * https://github.com/loongson/LoongArch-Documentation/releases/tag/2021.10.11 Patch 1 Add a readme for

[PATCH 02/31] target/loongarch: Add CSR registers definition

2021-10-19 Thread Xiaojuan Yang
This patch define All the CSR registers and its field. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/cpu-csr.h | 493 + 1 file changed, 493 insertions(+) create mode 100644 target/loongarch/cpu-csr.h diff --git a/target/loongarch

[PATCH 20/31] hw/loongarch: Add irq hierarchy for the system

2021-10-19 Thread Xiaojuan Yang
This patch add the irq hierarchy for the virt board. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- hw/loongarch/ls3a5000_virt.c | 49 include/hw/pci-host/ls7a.h | 4 +++ 2 files changed, 53 insertions(+) diff --git a/hw/loongarch/ls3a5000_virt

[PATCH 11/31] target/loongarch: Add stabletimer support

2021-10-19 Thread Xiaojuan Yang
This patch add a stabletimer support. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/cpu.c | 1 + target/loongarch/cpu.h | 10 + target/loongarch/csr_helper.c | 26 + target/loongarch/meson.build | 1 + target/loongarch/stabletimer

[PATCH 15/31] hw/loongarch: Add loongarch cpu interrupt support(CPUINTC)

2021-10-19 Thread Xiaojuan Yang
Loongson-3A5000 support 14 interrupts from 64 - 77(Timer->75 IPI->76) Loongson-3A5000 and ls7a form a legacy model and extended model irq hierarchy.Tcg mode emulate a simplified extended model which has no Legacy I/O Interrupt Controller(LIOINTC) and LPC. e.g: |+-++-+ +---

[PATCH 10/31] target/loongarch: Add loongarch interrupt and exception handle

2021-10-19 Thread Xiaojuan Yang
This patch Add loongarch interrupt and exception handle. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/cpu.c | 293 + target/loongarch/cpu.h | 6 +- 2 files changed, 298 insertions(+), 1 deletion(-) diff --git a/target/loong

[PATCH 04/31] target/loongarch: Add basic vmstate description of CPU.

2021-10-19 Thread Xiaojuan Yang
This patch introduce vmstate_loongarch_cpu Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/cpu.c | 12 +++ target/loongarch/internals.h | 4 + target/loongarch/machine.c | 155 +++ target/loongarch/meson.build | 6 ++ 4 file

[PATCH 17/31] hw/intc: Add loongarch ls7a interrupt controller support(PCH-PIC)

2021-10-19 Thread Xiaojuan Yang
This patch realize the PCH-PIC interrupt controller. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- hw/intc/Kconfig | 4 + hw/intc/loongarch_pch_pic.c | 284 hw/intc/meson.build | 1 + hw/loongarch/Kconfig

[PATCH 09/31] target/loongarch: Add other core instructions support

2021-10-19 Thread Xiaojuan Yang
This includes: -CACOP -LDDIR -LDPTE -ERTN -DBCL -IDLE Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/cpu.c | 1 + target/loongarch/cpu.h | 5 +- target/loongarch/helper.h| 4 ++ target/loongarch/insn_trans/trans_c

[PATCH 05/31] target/loongarch: Implement qmp_query_cpu_definitions()

2021-10-19 Thread Xiaojuan Yang
This patch introduce qmp_query_cpu_definitions interface. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- qapi/machine-target.json | 6 -- target/loongarch/cpu.c | 28 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/qapi/machine-targe

[PATCH 12/31] target/loongarch: Add timer related instructions support.

2021-10-19 Thread Xiaojuan Yang
This includes: -RDTIME{L/H}.W -RDTIME.D Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/helper.h | 2 ++ target/loongarch/insn_trans/trans_core.c | 23 + target/loongarch/insn_trans/trans_extra.c | 2 ++ target/loongarch/op_helper

[PATCH 03/31] target/loongarch: Set default csr values.

2021-10-19 Thread Xiaojuan Yang
This patch set default csr values Mainly used for cpu_initfn and cpu_reset. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/cpu.c | 40 target/loongarch/cpu.h | 6 ++ 2 files changed, 46 insertions(+) diff --git a/target/l

[PATCH 18/31] hw/intc: Add loongarch ls7a msi interrupt controller support(PCH-MSI)

2021-10-19 Thread Xiaojuan Yang
This patch realize PCH-MSI interrupt controller. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- hw/intc/Kconfig | 5 ++ hw/intc/loongarch_pch_msi.c | 74 + hw/intc/meson.build | 1 + hw/loongarch/Kconfig

[PATCH 16/31] hw/loongarch: Add loongarch ipi interrupt support(IPI)

2021-10-19 Thread Xiaojuan Yang
This patch realize the IPI interrupt controller. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- hw/loongarch/ipi.c | 145 +++ hw/loongarch/ls3a5000_virt.c | 2 + hw/loongarch/meson.build | 2 +- include/hw/loongarch/gipi.h

[PATCH 13/31] hw/pci-host: Add ls7a1000 PCIe Host bridge support for Loongson Platform

2021-10-19 Thread Xiaojuan Yang
This is a model of the PCIe Host Bridge found on a Loongson-5000 processor. It includes a interrupt controller, some interface for pci and nonpci devices we only emulate part devices for tcg mode. It support for MSI and MSIX interrupt sources. For more detailed info about ls7a1000 you can see the

[PATCH 19/31] hw/intc: Add loongarch extioi interrupt controller(EIOINTC)

2021-10-19 Thread Xiaojuan Yang
This patch realize the EIOINTC interrupt controller. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- hw/intc/Kconfig| 3 + hw/intc/loongarch_extioi.c | 571 + hw/intc/meson.build| 1 + hw/loongarch/Kconfig

Re: [PATCH] po: update turkish translation

2021-10-19 Thread Laurent Vivier
Le 15/08/2021 à 22:24, Oğuz Ersen a écrit : > Hi, this is a small patch to update Turkish translation, thanks. > > -- > Best Regards > Oğuz Ersen > Applied to my trivial-patches branch. Thanks, Laurent

Re: [PATCH 1/6] hw/riscv: microchip_pfsoc: Use MachineState::ram and MachineClass::default_ram_id

2021-10-19 Thread Igor Mammedov
On Mon, 18 Oct 2021 23:38:24 +0800 Bin Meng wrote: > Using memory_region_init_ram(), which can't possibly handle vhost-user, > and can't work as expected with '-numa node,memdev' options. > > Use MachineState::ram instead of manually initializing RAM memory > region, as well as by providing Mach

[PATCH 14/31] hw/loongarch: Add a virt loongarch 3A5000 board support

2021-10-19 Thread Xiaojuan Yang
LoongArch is a new RISC ISA, support 32bit mode or 64bit mode. Now we only add 64bit support. More detailed info you can see https://github.com/loongson/LoongArch-Documentation Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- .../devices/loongarch64-softmmu/default.mak | 3 + confi

Re: [PATCH] softmmu/physmem.c: Fix typo in comment

2021-10-19 Thread Laurent Vivier
Le 15/10/2021 à 11:29, Greg Kurz a écrit : > Fix the comment to match what the code is doing, as explained in > the changelog of commit 86cf9e154632cb28d749db0ea47946fba8cf3f09 > that introduced the change: > > Commit 9458a9a1df1a4c719e24512394d548c1fc7abd22 added synchronization > of vCPU

Re: [PATCH 0/2] analyze-migration.py: trivial fixes

2021-10-19 Thread Laurent Vivier
Le 15/10/2021 à 15:16, Laurent Vivier a écrit : > This script is not used a lot but it helps to debug migration, > so it's annoying when we need it and it doesn't work... > > The first patch fix an error message that is erroneous and thus > doesn't help at all. > > The second fixes a problem intr

Re: [PATCH V3] net/colo: check vnet_hdr_support flag when using virtio-net

2021-10-19 Thread Jason Wang
在 2021/9/18 上午10:04, Zhang Chen 写道: When COLO use only one vnet_hdr_support parameter between COLO network filter(filter-mirror, filter-redirector or filter-rewriter and colo-compare, packet will not be parsed correctly. Acquire network driver related to COLO, if it is nirtio-net, Typo.

Re: [PATCH] hw/core/machine: Add the missing delimiter in cpu_slot_to_string()

2021-10-19 Thread wangyanan (Y)
Cc'ing qemu-triv...@nongnu.org. What about this simple one ? Before this patch, with "-smp 4, dies=2" for a PC machine, we will generate warn strings like: qemu-system-x86_64: warning: CPU(s) not present in any NUMA nodes: CPU 0 [socket-id: 0die-id: 0, core-id: 0, thread-id: 0] After we will

Re: [PATCH-for-6.2 0/2] disas/nios2: Simplify endianess conversion

2021-10-19 Thread Laurent Vivier
Le 07/08/2021 à 13:09, Philippe Mathieu-Daudé a écrit : > After chatting with Richard Henderson and Paolo Bonzini, we > concluded the load/store API is mature enough to have target > code endianess-agnostic. > Thus we could remove the TARGET_WORDS_BIGENDIAN definition from > target-specific code (r

[PATCH v5 0/2] Improve vhost-user VQ notifier unmap

2021-10-19 Thread Xueming Li
When vDPA applicaiton in client mode shutdown, unmapped VQ notifier might being accessed by vCPU thread under high tx traffic, it will crash VM in rare conditon. This patch try to fix it with better RCU sychronization of new flatview. v2: no RCU draining on vCPU thread v3: minor fix on coding styl

Re: [PATCH] README: Fix some documentation URLs

2021-10-19 Thread Laurent Vivier
Le 18/10/2021 à 15:45, Greg Kurz a écrit : > All of these pages live in the wiki, not in the main web site. > > Signed-off-by: Greg Kurz > --- > README.rst | 14 +++--- > 1 file changed, 7 insertions(+), 7 deletions(-) > > diff --git a/README.rst b/README.rst > index 79b19f1481e1..237

Re: [PATCH 0/3] hw/nvram: Fix Memory Leaks in Xilinx eFUSE

2021-10-19 Thread Laurent Vivier
Le 15/10/2021 à 22:35, Tong Ho a écrit : > This series fixes memory leaks in Xilinx eFUSE devices for > the Versal and ZynqMP product families. > > The leaks result from failing to free memory allocated > by object_get_canonical_path(). > > Tong Ho (3): > hw/nvram: Fix Memory Leak in Xilinx eFu

Re: [PATCH v3 2/2] vhost-user: remove VirtQ notifier restore

2021-10-19 Thread Xueming(Steven) Li
On Tue, 2021-10-19 at 03:24 -0400, Michael S. Tsirkin wrote: > On Tue, Oct 19, 2021 at 07:21:24AM +, Xueming(Steven) Li wrote: > > On Tue, 2021-10-19 at 02:37 -0400, Michael S. Tsirkin wrote: > > > On Fri, Oct 08, 2021 at 03:58:05PM +0800, Xueming Li wrote: > > > > When vhost-user vdpa client r

[PATCH v5 1/3] tests/acpi: Add void table for virt/DBG2 bios-tables-test

2021-10-19 Thread Eric Auger
Add placeholders for DBG2 reference table for virt tests and ignore till reference blob is added. Signed-off-by: Eric Auger Acked-by: Igor Mammedov Acked-by: Michael S. Tsirkin --- tests/data/acpi/virt/DBG2 | 0 tests/qtest/bios-tables-test-allowed-diff.h | 1 + 2 files chang

Re: [PATCH] README: Fix some documentation URLs

2021-10-19 Thread Laurent Vivier
Le 18/10/2021 à 15:45, Greg Kurz a écrit : > All of these pages live in the wiki, not in the main web site. > > Signed-off-by: Greg Kurz > --- > README.rst | 14 +++--- > 1 file changed, 7 insertions(+), 7 deletions(-) > > diff --git a/README.rst b/README.rst > index 79b19f1481e1..237

[PATCH v5 3/3] bios-tables-test: Generate reference table for virt/DBG2

2021-10-19 Thread Eric Auger
Add the DBG2 table generated with tests/data/acpi/rebuild-expected-aml.sh Signed-off-by: Eric Auger Acked-by: Michael S. Tsirkin --- tests/data/acpi/virt/DBG2 | Bin 0 -> 87 bytes tests/qtest/bios-tables-test-allowed-diff.h | 1 - 2 files changed, 1 deletion(-) diff --git a

[PATCH v5 2/2] vhost-user: remove VirtQ notifier restore

2021-10-19 Thread Xueming Li
When vhost-user vdpa client restart, VQ notifier mmap address and MR become invalid, restore MR only is wrong. vdpa client will set VQ notifier after reconnect. This patch removes VQ notifier restore and related flags. Fixes: 44866521bd6e ("vhost-user: support registering external host notifiers"

[PATCH v5 2/3] hw/arm/virt_acpi_build: Generate DBG2 table

2021-10-19 Thread Eric Auger
ARM SBBR specification mandates DBG2 table (Debug Port Table 2) since v1.0 (ARM DEN0044F 8.3.1.7 DBG2). The DBG2 table allows to describe one or more debug ports. Generate an DBG2 table featuring a single debug port, the PL011. The DBG2 specification can be found at "Microsoft Debug Port Table 2

[PATCH v5 1/2] vhost-user: fix VirtQ notifier cleanup

2021-10-19 Thread Xueming Li
When vhost-user device cleanup and unmmap notifier address, VM cpu thread that writing the notifier failed with accessing invalid address. To avoid this concurrent issue, wait memory flatview update by draining rcu callbacks, then unmap notifiers. Fixes: 44866521bd6e ("vhost-user: support registe

[PATCH v5 0/3] hw/arm/virt_acpi_build: Generate DBG2 table

2021-10-19 Thread Eric Auger
This series generates the ACPI DBG2 table along with machvirt. The DBG2 specification can be found at https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/acpi-debug-port-table. DBG2 is mandated by ARM SBBR since its v1.0 release (the rationale behind is Windows requires it on all sy

Re: [PATCH v4 3/3] bios-tables-test: Generate reference table for virt/DBG2

2021-10-19 Thread Eric Auger
Hi Richard, On 10/18/21 11:00 PM, Richard Henderson wrote: > On 10/7/21 12:29 AM, Eric Auger wrote: >> diff --git a/tests/data/acpi/virt/DBG2 b/tests/data/acpi/virt/DBG2 >> index >> e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..86e6314f7b0235ef8ed3e0221e09f996c41f5e98 >> 100644 >> GIT binary patch >>

Re: [PATCH v2 12/15] virtio-net: Store failover primary opts pointer locally

2021-10-19 Thread Laurent Vivier
On 08/10/2021 15:34, Kevin Wolf wrote: Instead of accessing the global QemuOptsList, which really belong to the command line parser and shouldn't be accessed from devices, store a pointer to the QemuOpts in a new VirtIONet field. This is not the final state, but just an intermediate step to get

Re: [PATCH] hw/core/machine: Add the missing delimiter in cpu_slot_to_string()

2021-10-19 Thread Laurent Vivier
Le 08/10/2021 à 09:50, Yanan Wang a écrit : > The expected output string from cpu_slot_to_string() ought to be > like "socket-id: *, die-id: *, core-id: *, thread-id: *", so add > the missing ", " before "die-id". This affects the readability > of the error message. > > Fixes: 176d2cda0d ("i386/cp

Re: [PATCH] multiboot: Use DMA instead port-based transfer

2021-10-19 Thread Stefano Garzarella
CCing Paolo since kvm-unit-tests use multiboot. On Sun, Oct 10, 2021 at 09:10:05PM +0200, Adam Lackorzynski wrote: Use DMA transfers in the multiboot loader to copy data. This significantly lowers QEMU's startup latency by a factor of about 40, for example, going from 30sec to 0.8sec when loadi

Re: [RFC PATCH v4 18/20] vhost: Add VhostIOVATree

2021-10-19 Thread Jason Wang
在 2021/10/1 下午3:06, Eugenio Pérez 写道: This tree is able to look for a translated address from an IOVA address. At first glance is similar to util/iova-tree. However, SVQ working on devices with limited IOVA space need more capabilities, like allocating IOVA chunks or perform reverse translatio

Re: [RFC PATCH v4 11/20] vhost: Route host->guest notification through shadow virtqueue

2021-10-19 Thread Eugenio Perez Martin
On Fri, Oct 15, 2021 at 6:42 AM Jason Wang wrote: > > > 在 2021/10/15 上午12:39, Eugenio Perez Martin 写道: > > On Wed, Oct 13, 2021 at 5:47 AM Jason Wang wrote: > >> > >> 在 2021/10/1 下午3:05, Eugenio Pérez 写道: > >>> This will make qemu aware of the device used buffers, allowing it to > >>> write the g

[PATCH] monitor: Fix find_device_state() for IDs containing slashes

2021-10-19 Thread Markus Armbruster
Recent commit 6952026120 "monitor: Tidy up find_device_state()" assumed the function's argument is "the device's ID or QOM path" (as documented for device_del). It's actually either an absolute QOM path, or a QOM path relative to /machine/peripheral/. Such a relative path is a device ID when it d

Re: [PATCH] monitor: Fix find_device_state() for IDs containing slashes

2021-10-19 Thread Christian Borntraeger
Am 19.10.21 um 10:57 schrieb Markus Armbruster: Recent commit 6952026120 "monitor: Tidy up find_device_state()" assumed the function's argument is "the device's ID or QOM path" (as documented for device_del). It's actually either an absolute QOM path, or a QOM path relative to /machine/periphera

[PATCH v2 0/6] rSTify contribution-related wiki pages

2021-10-19 Thread Kashyap Chamarthy
My main motivation was to convert SubmitAPatch[1] based on a chat with Peter Maydell and Dan Berrangé on #qemu channel (on OFTC). But the page also links to a couple of other contribution-related pages, so I converted them too: - SubmitAPullRequest: https://wiki.qemu.org/Contribute/SubmitAPullR

[PATCH v2 1/6] docs: rSTify the "TrivialPatches" wiki

2021-10-19 Thread Kashyap Chamarthy
The original wiki is here[1]. I converted by copying the wiki source into a .wiki file and convert to rST using `pandoc`: $ pandoc -f Mediawiki -t rst trivial-patches.wiki -o trivial-patches.rst Update the active maintainer names to reflect current reality. [1] https://wiki.qemu.org/Con

[PATCH v2 2/6] docs: rSTify the "SpellCheck" wiki

2021-10-19 Thread Kashyap Chamarthy
The original wiki is here[1]. I converted by copying the wiki source into a .wiki file and convert to rST using `pandoc`: $ pandoc -f Mediawiki -t rst spell-check.wiki -o spell-check.rst As part of this rST converstion, I've removed the dated and `codespell` invocations, and linked to the Gi

[PATCH v2 3/6] docs: rSTify the "KeySigningParty" wiki

2021-10-19 Thread Kashyap Chamarthy
The original wiki is here[1]. I converted by copying the wiki source into a .wiki file and convert to rST using `pandoc`: $ pandoc -f Mediawiki -t rst key-signing-party.wiki -o key-signing-party.rst This is a 1-1 conversion; no content changes. [1] https://wiki.qemu.org/KeySigni

[PATCH v2 4/6] docs: rSTify the "SubmitAPullRequest" wiki

2021-10-19 Thread Kashyap Chamarthy
The original wiki is here[1]. I converted by copying the wiki source into a .wiki file and convert to rST using `pandoc`: $ pandoc -f Mediawiki -t rst submitting-a-pull-request.wiki \ -o submitting-a-pull-request.rst This is a 1-1 conversion; no content changes besides updating the "

Re: [PULL 37/40] monitor: Tidy up find_device_state()

2021-10-19 Thread Markus Armbruster
Markus Armbruster writes: > Christian Borntraeger writes: > >> Am 13.10.21 um 11:07 schrieb Paolo Bonzini: >>> From: Markus Armbruster >>> Commit 6287d827d4 "monitor: allow device_del to accept QOM paths" >>> extended find_device_state() to accept QOM paths in addition to qdev >>> IDs. This ad

[PATCH v2 6/6] docs/devel: Update the rST index file

2021-10-19 Thread Kashyap Chamarthy
Add the entries for contributing-related rSTified wiki docs. Signed-off-by: Kashyap Chamarthy --- docs/devel/index.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/docs/devel/index.rst b/docs/devel/index.rst index f95df10b3e..f7bec644f3 100644 --- a/docs/devel/index.rst +++ b/docs/de

[PATCH v2 5/6] docs: rSTify the "SubmitAPatch" wiki

2021-10-19 Thread Kashyap Chamarthy
- The original wiki is here[1]. I copied the wiki source[2] into a .wiki file, and used `pandoc` to convert it to rST: $> pandoc -f Mediawiki -t rst submitting-a-patch.wiki -o submitting-a-patch.rst - The only minor touch-ups I did was to fix URLs. But 99%, it is a 1-1 conversion.

Re: [PATCH v2 0/6] rSTify contribution-related wiki pages

2021-10-19 Thread Kashyap Chamarthy
On Tue, Oct 19, 2021 at 11:03:38AM +0200, Kashyap Chamarthy wrote: > My main motivation was to convert SubmitAPatch[1] based on a chat with > Peter Maydell and Dan Berrangé on #qemu channel (on OFTC). But the page > also links to a couple of other contribution-related pages, so I > converted them

[PATCH] hw/ppc/ppc4xx_pci: Fix ppc4xx_pci_map_irq() for recent Linux kernels

2021-10-19 Thread Thomas Huth
Recent Linux kernels are accessing the PCI device in slot 0 that represents the PCI host bridge. This causes ppc4xx_pci_map_irq() to return -1 which causes an assert() later: hw/pci/pci.c:262: pci_bus_change_irq_level: Assertion `irq_num >= 0' failed. Thus we should allocate an IRQ line for the

Re: [PATCH v2 1/6] docs: rSTify the "TrivialPatches" wiki

2021-10-19 Thread Laurent Vivier
Le 19/10/2021 à 11:03, Kashyap Chamarthy a écrit : > The original wiki is here[1]. I converted by copying the wiki source > into a .wiki file and convert to rST using `pandoc`: > > $ pandoc -f Mediawiki -t rst trivial-patches.wiki -o > trivial-patches.rst > > Update the active maintaine

Re: [RFC PATCH v4 18/20] vhost: Add VhostIOVATree

2021-10-19 Thread Jason Wang
On Tue, Oct 19, 2021 at 4:32 PM Jason Wang wrote: > > > 在 2021/10/1 下午3:06, Eugenio Pérez 写道: > > This tree is able to look for a translated address from an IOVA address. > > > > At first glance is similar to util/iova-tree. However, SVQ working on > > devices with limited IOVA space need more cap

Re: [RFC PATCH v4 20/20] vdpa: Add custom IOTLB translations to SVQ

2021-10-19 Thread Jason Wang
在 2021/10/1 下午3:06, Eugenio Pérez 写道: Use translations added in VhostIOVATree in SVQ. Now every element needs to store the previous address also, so VirtQueue can consume the elements properly. This adds a little overhead per VQ element, having to allocate more memory to stash them. As a possi

Re: [PATCH] block/file-posix: Fix return value translation for AIO discards.

2021-10-19 Thread Stefan Hajnoczi
On Tue, Oct 19, 2021 at 05:40:13AM +0200, Philippe Mathieu-Daudé wrote: > +Stefan > > On 10/18/21 20:07, Ari Sundholm wrote: > > AIO discards regressed as a result of the following commit: > > 0dfc7af2 block/file-posix: Optimize for macOS > > > > When trying to run blkdiscard within a Linux g

[PATCH v2] chardev: don't exit() straight away on C-a x

2021-10-19 Thread Alex Bennée
While there are a number of uses in the code-base of the exit(0) pattern it gets in the way of clean exit which can do all of it's house-keeping. In particular it was reported that you can crash plugins this way because TCG can still be running on other threads when the atexit callback is called.

[PULL 1/7] multifd: Implement yank for multifd send side

2021-10-19 Thread Juan Quintela
From: Lukas Straub To: qemu-devel Cc: "Dr. David Alan Gilbert" , Juan Quintela , Peter Xu , Leonardo Bras Soares Passos Date: Wed, 1 Sep 2021 17:58:57 +0200 (1 week, 15 hours, 17 minutes ago) [[PGP Signed Part:No public key for 35AB0B289C5DB258 created at 2021-09-01T17:58:57+0200 using RSA]

[PULL 7/7] migration/rdma: advise prefetch write for ODP region

2021-10-19 Thread Juan Quintela
From: Li Zhijian The responder mr registering with ODP will sent RNR NAK back to the requester in the face of the page fault. - ibv_poll_cq wc.status=13 RNR retry counter exceeded! ibv_poll_cq wrid=WRITE RDMA! - ibv_advise_mr(3) helps to make pages present before the actual IO is

[PULL 4/7] migration: allow multifd for socket protocol only

2021-10-19 Thread Juan Quintela
From: Li Zhijian To: , , CC: Li Zhijian Date: Sat, 31 Jul 2021 22:05:51 +0800 (5 weeks, 4 days, 17 hours ago) multifd with unsupported protocol will cause a segment fault. (gdb) bt #0 0x563b4a93faf8 in socket_connect (addr=0x0, errp=0x7f7f02675410) at ../util/qemu-sockets.c:1190 #1 0x0

[PULL 2/7] multifd: Unconditionally unregister yank function

2021-10-19 Thread Juan Quintela
From: Lukas Straub To: qemu-devel Cc: "Dr. David Alan Gilbert" , Juan Quintela , Peter Xu , Leonardo Bras Soares Passos Date: Wed, 4 Aug 2021 21:26:32 +0200 (5 weeks, 11 hours, 52 minutes ago) [[PGP Signed Part:No public key for 35AB0B289C5DB258 created at 2021-08-04T21:26:32+0200 using RSA

[PULL 0/7] Migration.next patches

2021-10-19 Thread Juan Quintela
The following changes since commit 362534a643b4a34bcb223996538ce9de5cdab946: Merge remote-tracking branch 'remotes/bsdimp/tags/pull-bsd-user-20211018-pull-request' into staging (2021-10-18 12:17:24 -0700) are available in the Git repository at: https://github.com/juanquintela/qemu.git tags

[PULL 6/7] migration/rdma: Try to register On-Demand Paging memory region

2021-10-19 Thread Juan Quintela
From: Li Zhijian Previously, for the fsdax mem-backend-file, it will register failed with Operation not supported. In this case, we can try to register it with On-Demand Paging[1] like what rpma_mr_reg() does on rpma[2]. [1]: https://community.mellanox.com/s/article/understanding-on-demand-pagi

[PULL 5/7] migration: allow enabling mutilfd for specific protocol only

2021-10-19 Thread Juan Quintela
From: Li Zhijian To: , , CC: Li Zhijian Date: Sat, 31 Jul 2021 22:05:52 +0800 (5 weeks, 4 days, 17 hours ago) And change the default to true so that in '-incoming defer' case, user is able to change multifd capability. Signed-off-by: Li Zhijian Reviewed-by: Juan Quintela Signed-off-by: Juan

[PULL 3/7] migration/ram: Don't passs RAMState to migration_clear_memory_region_dirty_bitmap_*()

2021-10-19 Thread Juan Quintela
From: David Hildenbrand The parameter is unused, let's drop it. Reviewed-by: Peter Xu Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Juan Quintela Signed-off-by: David Hildenbrand Signed-off-by: Juan Quintela --- migration/ram.c | 13 + 1 file changed, 5 insertions(+), 8 dele

Re: Deprecate the ppc405 boards in QEMU?

2021-10-19 Thread Christophe Leroy
Le 11/10/2021 à 15:24, Thomas Huth a écrit : On 11/10/2021 11.20, David Gibson wrote: On Mon, Oct 11, 2021 at 10:10:36AM +0200, Thomas Huth wrote: On 06/10/2021 09.25, Thomas Huth wrote: On 05/10/2021 23.53, BALATON Zoltan wrote: [...] Maybe these 405 boards in QEMU ran with modified firmw

Re: Deprecate the ppc405 boards in QEMU?

2021-10-19 Thread Thomas Huth
On 19/10/2021 11.31, Christophe Leroy wrote: Le 11/10/2021 à 15:24, Thomas Huth a écrit : On 11/10/2021 11.20, David Gibson wrote: On Mon, Oct 11, 2021 at 10:10:36AM +0200, Thomas Huth wrote: On 06/10/2021 09.25, Thomas Huth wrote: On 05/10/2021 23.53, BALATON Zoltan wrote: [...] Maybe the

Re: Deprecate the ppc405 boards in QEMU?

2021-10-19 Thread Greg Kurz
On Tue, 19 Oct 2021 11:31:03 +0200 Christophe Leroy wrote: > > > Le 11/10/2021 à 15:24, Thomas Huth a écrit : > > On 11/10/2021 11.20, David Gibson wrote: > >> On Mon, Oct 11, 2021 at 10:10:36AM +0200, Thomas Huth wrote: > >>> On 06/10/2021 09.25, Thomas Huth wrote: > On 05/10/2021 23.53,

[PATCH v3 02/21] memory: add a few defines for octo (128-bit) values

2021-10-19 Thread Frédéric Pétrot
Introducing unsigned quad, signed quad, and octo accesses types to handle load and store by 128-bit processors. Signed-off-by: Frédéric Pétrot --- include/exec/memop.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/exec/memop.h b/include/exec/memop.h index c55

[PATCH v3 00/21] Adding partial support for 128-bit riscv target

2021-10-19 Thread Frédéric Pétrot
This series of patches provides partial 128-bit support for the riscv target architecture, namely RVI and RVM, with minimal csr support. This v3 is based on Richard proposal for handling correctly the various register sizes (v4 version of his series). As compared to the v2, it simplifies a bit the

Re: Deprecate the ppc405 boards in QEMU?

2021-10-19 Thread Christophe Leroy
Le 19/10/2021 à 11:39, Thomas Huth a écrit : On 19/10/2021 11.31, Christophe Leroy wrote: Le 11/10/2021 à 15:24, Thomas Huth a écrit : On 11/10/2021 11.20, David Gibson wrote: On Mon, Oct 11, 2021 at 10:10:36AM +0200, Thomas Huth wrote: On 06/10/2021 09.25, Thomas Huth wrote: On 05/10/2

[PATCH v3 04/21] target/riscv: additional macros to check instruction support

2021-10-19 Thread Frédéric Pétrot
Given that the 128-bit version of the riscv spec adds new instructions, and that some instructions that were previously only available in 64-bit mode are now available for both 64-bit and 128-bit, we added new macros to check for the processor mode during translation. Signed-off-by: Frédéric Pétro

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

2021-10-19 Thread Frédéric Pétrot
The upper 64-bit of the 128-bit registers have now a place inside the cpu state structure, and are created as globals for future use. Signed-off-by: Frédéric Pétrot Co-authored-by: Fabien Portas --- target/riscv/cpu.h | 1 + target/riscv/translate.c | 5 - 2 files changed, 5 insertion

[PATCH v3 03/21] Int128.h: addition of a few 128-bit operations

2021-10-19 Thread Frédéric Pétrot
Addition of not, xor, div and rem on 128-bit integers, used in particular within div/rem and csr helpers for computations on 128-bit registers. These will be used by the 128-bit riscv version. Signed-off-by: Frédéric Pétrot Co-authored-by: Fabien Portas --- include/qemu/int128.h | 264 +

Re: [PATCH v2 04/15] tests: acpi: q35: test for x2APIC entries in SRAT

2021-10-19 Thread Igor Mammedov
On Mon, 18 Oct 2021 17:31:33 -0400 "Michael S. Tsirkin" wrote: > On Thu, Sep 02, 2021 at 07:35:40AM -0400, Igor Mammedov wrote: > > Set -smp 1,maxcpus=288 to test for ACPI code that > > deal with CPUs with large APIC ID (>255). > > > > PS: > > Test requires KVM and in-kernel irqchip support, > >

[PATCH v3 07/21] target/riscv: setup everything so that riscv128-softmmu compiles

2021-10-19 Thread Frédéric Pétrot
This patch is kind of a mess because several files have to be slightly modified to allow for a new target. Most of these modifications have to deal with changing what was a binary choice into a ternary one. Although we did our best to avoid testing for TARGET_RISCV128 (which we did), it is implici

[PATCH v3 09/21] target/riscv: moving some insns close to similar insns

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

[PATCH v3 10/21] target/riscv: support for 128-bit loads and store

2021-10-19 Thread Frédéric Pétrot
The 128-bit ISA adds ldu, lq and sq. We provide here support for these instructions. Note that although we compute a 128-bit address, we only use the lower 64-bit to actually address memory, cowardly utilizing the existing address translation mechanism of QEMU. Signed-off-by: Frédéric Pétrot Co-a

[PATCH v3 05/21] target/riscv: separation of bitwise logic and aritmetic helpers

2021-10-19 Thread Frédéric Pétrot
Introduction of a gen_logic function for bitwise logic to implement instructions in which not propagation of information occurs between bits and use of this function on the bitwise instructions. Signed-off-by: Frédéric Pétrot Co-authored-by: Fabien Portas --- target/riscv/translate.c

[PATCH v3 11/21] target/riscv: support for 128-bit bitwise instructions

2021-10-19 Thread Frédéric Pétrot
The 128-bit bitwise instructions do not need any function prototype change as the functions can be applied independently on the lower and upper part of the registers. Signed-off-by: Frédéric Pétrot Co-authored-by: Fabien Portas --- target/riscv/translate.c | 22 ++ 1 file ch

[PATCH v3 13/21] target/riscv: support for 128-bit shift instructions

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

[PATCH v3 01/21] memory: change define name for consistency

2021-10-19 Thread Frédéric Pétrot
Changed MO_Q into MO_UQ so as to avoid confusion, as suggested by Philippe Mathieu-Daudé. Signed-off-by: Frédéric Pétrot --- include/exec/memop.h | 8 target/arm/translate-a32.h | 4 ++-- target/arm/translate-a64.c | 8 t

  1   2   3   4   5   >