[PATCH v8 75/78] target/riscv: rvv-1.0: add evl parameter to vext_ldst_us()

2021-10-15 Thread frank . chang
From: Frank Chang Add supports of Vector unit-stride mask load/store instructions (vlm.v, vsm.v), which has: evl (effective vector length) = ceil(env->vl / 8). The new instructions operate the same as unmasked byte loads and stores. Add evl parameter to reuse vext_ldst_us(). Signed-off-by:

[PATCH v8 56/78] target/riscv: rvv-1.0: remove widening saturating scaled multiply-add

2021-10-15 Thread frank . chang
From: Frank Chang Signed-off-by: Frank Chang Reviewed-by: Richard Henderson --- target/riscv/helper.h | 22 --- target/riscv/insn32.decode | 7 - target/riscv/insn_trans/trans_rvv.c.inc | 9 -- target/riscv/vector_helper.c| 205 --

[PATCH v8 77/78] target/riscv: rvv-1.0: rename vmandnot.mm and vmornot.mm to vmandn.mm and vmorn.mm

2021-10-15 Thread frank . chang
From: Frank Chang Signed-off-by: Frank Chang --- target/riscv/helper.h | 4 ++-- target/riscv/insn32.decode | 4 ++-- target/riscv/insn_trans/trans_rvv.c.inc | 4 ++-- target/riscv/vector_helper.c| 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(

Re: [PATCH v4 3/3] vdpa: Check for iova range at mappings changes

2021-10-15 Thread Jason Wang
在 2021/10/14 下午10:12, Eugenio Pérez 写道: Check vdpa device range before updating memory regions so we don't add any outside of it, and report the invalid change if any. Signed-off-by: Eugenio Pérez Acked-by: Jason Wang --- include/hw/virtio/vhost-vdpa.h | 2 ++ hw/virtio/vhost-vdpa.

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

2021-10-15 Thread Jason Wang
On Fri, Oct 15, 2021 at 4:21 PM Eugenio Perez Martin wrote: > > On Fri, Oct 15, 2021 at 9:37 AM Jason Wang wrote: > > > > On Fri, Oct 15, 2021 at 3:28 PM Eugenio Perez Martin > > wrote: > > > > > > On Wed, Oct 13, 2021 at 7:34 AM Jason Wang wrote: > > > > > > > > > > > > 在 2021/10/1 下午3:06, Eug

[PATCH v8 66/78] target/riscv: rvv-1.0: implement vstart CSR

2021-10-15 Thread frank . chang
From: Frank Chang * Update and check vstart value for vector instructions. * Add whole register move instruction helper functions as we have to call helper function for case where vstart is not zero. * Remove probe_pages() calls in vector load/store instructions (except fault-only-first loads

Re: [PATCH 0/3] Postcopy migration: Add userfaultfd- user-mode-only capability

2021-10-15 Thread lma
在 2021-10-15 14:12,Peter Xu 写道: On Fri, Oct 15, 2021 at 01:38:06PM +0800, lma wrote: 在 2021-10-15 07:43,Peter Xu 写道: > On Thu, Oct 14, 2021 at 05:15:48PM +0800, Lin Ma wrote: > > Since kernel v5.11, Unprivileged user (without SYS_CAP_PTRACE > > capability) > > must pass UFFD_USER_MODE_ONLY to us

Re: [PATCH v3 1/2] numa: Require distance map when empty node exists

2021-10-15 Thread Gavin Shan
Hi Drew, On 10/15/21 2:36 AM, Andrew Jones wrote: On Thu, Oct 14, 2021 at 05:14:17PM +0200, Igor Mammedov wrote: On Wed, 13 Oct 2021 14:28:40 +0200 Andrew Jones wrote: On Wed, Oct 13, 2021 at 02:11:25PM +0200, Andrew Jones wrote: On Wed, Oct 13, 2021 at 01:53:46PM +0200, Igor Mammedov wrote:

[PATCH v8 68/78] target/riscv: rvv-1.0: set mstatus.SD bit when writing vector CSRs

2021-10-15 Thread frank . chang
From: Frank Chang Signed-off-by: Frank Chang Reviewed-by: Alistair Francis --- target/riscv/csr.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/target/riscv/csr.c b/target/riscv/csr.c index 127393eb956..9f51626a3d8 100644 --- a/target/riscv/csr.c +++ b/target

RE: [PATCH v2] hw/riscv: virt: bugfix the memory-backend-file command is invalid

2021-10-15 Thread limingwang (A)
On Wed, Oct 13, 2021 at 22:41 PM Bin Meng wrote: > > On Tue, Oct 12, 2021 at 9:46 AM MingWang Li wrote: > > > > From: Mingwang Li > > > > When I start the VM with the following command: > > $ ./qemu-system-riscv64 -M virt,accel=kvm -m 4096M -cpu host -nographic \ > > -name guest=riscv-guse

Re: [PATCH 0/3] Postcopy migration: Add userfaultfd- user-mode-only capability

2021-10-15 Thread Peter Xu
On Fri, Oct 15, 2021 at 04:16:15PM +0800, lma wrote: > 在 2021-10-15 14:12,Peter Xu 写道: > > On Fri, Oct 15, 2021 at 01:38:06PM +0800, lma wrote: > > > 在 2021-10-15 07:43,Peter Xu 写道: > > > > On Thu, Oct 14, 2021 at 05:15:48PM +0800, Lin Ma wrote: > > > > > Since kernel v5.11, Unprivileged user (with

Re: [PATCH v3 1/2] numa: Require distance map when empty node exists

2021-10-15 Thread Andrew Jones
On Fri, Oct 15, 2021 at 07:22:05PM +1100, Gavin Shan wrote: > It's possible that the empty NUMA nodes aren't referred by any CPUs, > as the following command line indicate. In this case, the empty NUMA > node IDs aren't existing in device-tree CPU nodes. So we still need > the distance-map. Ah, in

[PATCH v8 71/78] target/riscv: rvv-1.0: floating-point reciprocal estimate instruction

2021-10-15 Thread frank . chang
From: Frank Chang Implement the floating-point reciprocal estimate to 7 bits instruction. Signed-off-by: Frank Chang --- target/riscv/helper.h | 4 + target/riscv/insn32.decode | 1 + target/riscv/insn_trans/trans_rvv.c.inc | 1 + target/riscv/vector_helper

Re: [PATCH v2 0/2] Makefile: A few fixes to tag generation

2021-10-15 Thread Paolo Bonzini
On 04/08/21 15:23, Peter Xu wrote: I didn't squash patch 1 because they fix different things at different places (patch 1 removes the "meson" dir warning on master branch already for gtags). Patch 2 is the same as posted previous on the list. Please have a look, thanks. Peter Xu (2): Makefil

[PATCH v8 74/78] target/riscv: rvv-1.0: add vsetivli instruction

2021-10-15 Thread frank . chang
From: Frank Chang Signed-off-by: Frank Chang --- target/riscv/insn32.decode | 2 ++ target/riscv/insn_trans/trans_rvv.c.inc | 27 + 2 files changed, 29 insertions(+) diff --git a/target/riscv/insn32.decode b/target/riscv/insn32.decode index d7c6bc9af26..3b

Re: [PATCH v3 0/3] hw/mips/boston: ELF kernel support

2021-10-15 Thread Philippe Mathieu-Daudé
On 10/11/21 15:58, Jiaxun Yang wrote: > ping? > > 在 2021/10/2 19:45, Jiaxun Yang 写道: >> Jiaxun Yang (3): >>    hw/mips/boston: Massage memory map information >>    hw/mips/boston: Allow loading elf kernel and dtb >>    hw/mips/boston: Add FDT generator Next time please run checkpatch.pl before su

Re: [PATCH 8/8] q800: add NMI handler

2021-10-15 Thread Laurent Vivier
Le 13/10/2021 à 23:21, Mark Cave-Ayland a écrit : > This allows the programmer's switch to be triggered via the monitor for > debugging > purposes. Since the CPU level 7 interrupt is level-triggered, use a timer to > hold > the NMI active for 100ms before releasing it again. > I'm wondering if

[PATCH v8 76/78] target/riscv: rvv-1.0: add vector unit-stride mask load/store insns

2021-10-15 Thread frank . chang
From: Frank Chang Signed-off-by: Frank Chang --- target/riscv/helper.h | 2 ++ target/riscv/insn32.decode | 4 +++ target/riscv/insn_trans/trans_rvv.c.inc | 40 + target/riscv/vector_helper.c| 21 + 4 files changed

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

2021-10-15 Thread Eugenio Perez Martin
On Fri, Oct 15, 2021 at 5:46 AM Jason Wang wrote: > > > 在 2021/10/14 下午8:00, Eugenio Perez Martin 写道: > > On Wed, Oct 13, 2021 at 5:27 AM Jason Wang wrote: > >> > >> 在 2021/10/1 下午3:05, Eugenio Pérez 写道: > >>> Shadow virtqueue notifications forwarding is disabled when vhost_dev > >>> stops, so co

Re: [PATCH] tests/acceptance: Add a test for the bamboo ppc board

2021-10-15 Thread Philippe Mathieu-Daudé
On 10/15/21 11:00, Thomas Huth wrote: > The kernel and initrd from the "Aboriginal Linux" project can be > used to run some tests on the bamboo ppc machine. > > Signed-off-by: Thomas Huth > --- > MAINTAINERS| 1 + > tests/acceptance/ppc_bamboo.py | 39 +++

Re: [PATCH 3/8] q800: use GLUE IRQ numbers instead of IRQ level for GLUE IRQs

2021-10-15 Thread BALATON Zoltan
On Fri, 15 Oct 2021, Laurent Vivier wrote: Le 13/10/2021 à 23:21, Mark Cave-Ayland a écrit : In order to allow dynamic routing of IRQs to different IRQ levels on the CPU depending upon port B bit 6, use GLUE IRQ numbers and map them to the the corresponding CPU IRQ level accordingly. Signed-off

[PULL 4/6] s390x/kvm: step down as maintainer

2021-10-15 Thread Thomas Huth
From: Cornelia Huck I'm no longer involved with KVM/s390 on the kernel side, and I don't have enough resources to work on the s390 KVM cpus support, so I'll step down. Signed-off-by: Cornelia Huck Acked-by: Halil Pasic Message-Id: <20211012144040.360887-3-coh...@redhat.com> Signed-off-by: Thom

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

2021-10-15 Thread Eugenio Perez Martin
On Fri, Oct 15, 2021 at 9:37 AM Jason Wang wrote: > > On Fri, Oct 15, 2021 at 3:28 PM Eugenio Perez Martin > wrote: > > > > On Wed, Oct 13, 2021 at 7:34 AM Jason Wang wrote: > > > > > > > > > 在 2021/10/1 下午3:06, Eugenio Pérez 写道: > > > > Use translations added in VhostIOVATree in SVQ. > > > > >

[PULL 6/6] dtc: Update to version 1.6.1

2021-10-15 Thread Thomas Huth
The dtc submodule is currently pointing to non-release commit. It's nicer if submodules point to release versions instead and since dtc 1.6.1 is available now, let's update to that version. Message-Id: <20210827120901.150276-4-th...@redhat.com> Acked-by: Greg Kurz Acked-by: David Gibson Signed-o

[PULL 0/6] s390x patches and dtc update

2021-10-15 Thread Thomas Huth
Hi! The following changes since commit bfd9a76f9c143d450ab5545dedfa74364b39fc56: Merge remote-tracking branch 'remotes/stsquad/tags/pull-for-6.2-121021-2' into staging (2021-10-12 06:16:25 -0700) are available in the Git repository at: https://gitlab.com/thuth/qemu.git tags/pull-request-2

[PATCH] tests/acceptance: Add a test for the bamboo ppc board

2021-10-15 Thread Thomas Huth
The kernel and initrd from the "Aboriginal Linux" project can be used to run some tests on the bamboo ppc machine. Signed-off-by: Thomas Huth --- MAINTAINERS| 1 + tests/acceptance/ppc_bamboo.py | 39 ++ 2 files changed, 40 insertions(+) crea

Re: [PATCH] hw/misc: Add a virtual pci device to dynamically attach memory to QEMU

2021-10-15 Thread david.dai
On Wed, Oct 13, 2021 at 10:33:39AM +0200, David Hildenbrand (da...@redhat.com) wrote: > > CAUTION: This email originated from outside of the organization. Do not > click links or open attachments unless you recognize the sender and know the > content is safe. > > > On 13.10.21 10:13, david.dai

[PULL 1/6] s390x/ipl: check kernel command line size

2021-10-15 Thread Thomas Huth
From: Marc Hartmayer Check if the provided kernel command line exceeds the maximum size of the s390x Linux kernel command line size, which is 896 bytes. Reported-by: Sven Schnelle Signed-off-by: Marc Hartmayer Message-Id: <20211006092631.20732-1-mhart...@linux.ibm.com> Reviewed-by: Christian B

Re: [PATCH v8 00/78] support vector extension v1.0

2021-10-15 Thread Frank Chang
於 2021年10月15日 週五 下午3:48寫道: > From: Frank Chang > > This patchset implements the vector extension v1.0 for RISC-V on QEMU. > > RVV v1.0 spec is now fronzen for public review: > https://github.com/riscv/riscv-v-spec/releases/tag/v1.0 > > The port is available here: > https://github.com/sifive/qemu

[PATCH] via-ide: Set user_creatable to false

2021-10-15 Thread BALATON Zoltan
This model only works as a function of the via superio chip not as a standalone PCI device. Signed-off-by: BALATON Zoltan --- This should be before the last patch changing via-ide or squshed into it. And similar to usb part but there I need to add it to the info struct. I can resend with these if

[PULL 2/6] s390x: sigp: Force Set Architecture to return Invalid Parameter

2021-10-15 Thread Thomas Huth
From: Eric Farman According to the Principles of Operation, the SIGP Set Architecture order will return Incorrect State if some CPUs are not stopped, but only if the CZAM facility is not present. If it is, the order will return Invalid Parameter because the architecture mode cannot be changed. S

[PULL 3/6] vfio-ccw: step down as maintainer

2021-10-15 Thread Thomas Huth
From: Cornelia Huck I currently don't have time to act as vfio-ccw maintainer anymore, so remove myself there. Signed-off-by: Cornelia Huck Message-Id: <20211012144040.360887-2-coh...@redhat.com> Acked-by: Matthew Rosato Acked-by: Eric Farman Signed-off-by: Thomas Huth --- MAINTAINERS | 2 -

Re: [PATCH 0/6] Misc pegasos2 patches

2021-10-15 Thread BALATON Zoltan
On Fri, 15 Oct 2021, David Gibson wrote: On Thu, Oct 14, 2021 at 09:50:19PM +0200, BALATON Zoltan wrote: Some small clean ups and improvements for the pegasos2 machine. BALATON Zoltan (6): ppc/pegasos2: Restrict memory to 2 gigabytes ppc/pegasos2: Warn when using VOF but no kernel is specif

Re: [PATCH v2] hw/riscv: virt: bugfix the memory-backend-file command is invalid

2021-10-15 Thread Bin Meng
On Fri, Oct 15, 2021 at 4:52 PM limingwang (A) wrote: > > > On Wed, Oct 13, 2021 at 22:41 PM Bin Meng wrote: > > > > On Tue, Oct 12, 2021 at 9:46 AM MingWang Li wrote: > > > > > > From: Mingwang Li > > > > > > When I start the VM with the following command: > > > $ ./qemu-system-riscv64 -M virt

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

2021-10-15 Thread Eugenio Perez Martin
On Fri, Oct 15, 2021 at 10:20 AM Eugenio Perez Martin wrote: > > On Fri, Oct 15, 2021 at 9:37 AM Jason Wang wrote: > > > > On Fri, Oct 15, 2021 at 3:28 PM Eugenio Perez Martin > > wrote: > > > > > > On Wed, Oct 13, 2021 at 7:34 AM Jason Wang wrote: > > > > > > > > > > > > 在 2021/10/1 下午3:06, Eu

[PULL 5/6] s390x virtio-ccw machine: step down as maintainer

2021-10-15 Thread Thomas Huth
From: Cornelia Huck I currently don't have time to work on the s390x virtio-ccw machine anymore, so let's step down. (I will, however, continue as a maintainer for the virtio-ccw *transport*.) Signed-off-by: Cornelia Huck Acked-by: Halil Pasic Message-Id: <20211012144040.360887-4-coh...@redhat

Re: [PATCH 3/6] ppc/pegasos2: Implement get-time-of-day RTAS function with VOF

2021-10-15 Thread BALATON Zoltan
On Fri, 15 Oct 2021, David Gibson wrote: On Thu, Oct 14, 2021 at 09:50:19PM +0200, BALATON Zoltan wrote: This is needed for Linux to access RTC time. Signed-off-by: BALATON Zoltan --- hw/ppc/pegasos2.c | 25 + 1 file changed, 25 insertions(+) diff --git a/hw/ppc/pegas

Re: [PATCH] tests/acceptance: Add a test for the bamboo ppc board

2021-10-15 Thread David Gibson
On Fri, Oct 15, 2021 at 11:00:08AM +0200, Thomas Huth wrote: > The kernel and initrd from the "Aboriginal Linux" project can be > used to run some tests on the bamboo ppc machine. > > Signed-off-by: Thomas Huth Applied to ppc-for-6.2, thanks. > --- > MAINTAINERS| 1 + > te

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

2021-10-15 Thread David Hildenbrand
On 15.10.21 11:29, Greg Kurz wrote: > 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 and mi

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

2021-10-15 Thread Greg Kurz
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 and migration operations through calling run_on_cpu op

Re: [PATCH 0/3] Postcopy migration: Add userfaultfd- user-mode-only capability

2021-10-15 Thread lma
在 2021-10-15 16:28,Peter Xu 写道: On Fri, Oct 15, 2021 at 04:16:15PM +0800, lma wrote: 在 2021-10-15 14:12,Peter Xu 写道: > On Fri, Oct 15, 2021 at 01:38:06PM +0800, lma wrote: > > 在 2021-10-15 07:43,Peter Xu 写道: > > > On Thu, Oct 14, 2021 at 05:15:48PM +0800, Lin Ma wrote: > > > > Since kernel v5.11

Re: [PATCH] hw/misc: Add a virtual pci device to dynamically attach memory to QEMU

2021-10-15 Thread David Hildenbrand
On 15.10.21 11:10, david.dai wrote: > On Wed, Oct 13, 2021 at 10:33:39AM +0200, David Hildenbrand > (da...@redhat.com) wrote: >> >> CAUTION: This email originated from outside of the organization. Do not >> click links or open attachments unless you recognize the sender and know the >> content is

Re: [RFC PATCH v4 15/20] vhost: Shadow virtqueue buffers forwarding

2021-10-15 Thread Eugenio Perez Martin
On Fri, Oct 15, 2021 at 6:23 AM Jason Wang wrote: > > > 在 2021/10/15 上午1:56, Eugenio Perez Martin 写道: > > On Wed, Oct 13, 2021 at 6:31 AM Jason Wang wrote: > >> > >> 在 2021/10/1 下午3:05, Eugenio Pérez 写道: > >>> Initial version of shadow virtqueue that actually forward buffers. There > >>> are no i

[PATCH v2 0/2] plugins: add a drcov plugin

2021-10-15 Thread NDNF
These patches adds the ability to generate files in drcov format. Primary goal this scripts is to have coverage logfiles thatwork in Lighthouse. Changelog: v2: * Added path to executable binary file. * base, end, entry have correct values now. * Added option: "filename" for output file. *

[PATCH v2 2/2] contrib/plugins: add a drcov plugin

2021-10-15 Thread NDNF
This patch adds the ability to generate files in drcov format. Primary goal this script is to have coverage logfiles thatwork in Lighthouse. Signed-off-by: Ivanov Arkady --- contrib/plugins/Makefile |1 contrib/plugins/drcov.c | 148 ++ 2 files

[PATCH v2 1/2] src/plugins: add helper functions for drcov

2021-10-15 Thread NDNF
This patch adds helper functions to the drcov plugin. Which provide information about: - start_code. - end_code. - entry. - path to the executable binary. Signed-off-by: Ivanov Arkady --- include/qemu/qemu-plugin.h |5 + plugins/api.c| 27 +++

Re: [PATCH] hw/misc: Add a virtual pci device to dynamically attach memory to QEMU

2021-10-15 Thread david.dai
On Fri, Oct 15, 2021 at 11:27:02AM +0200, David Hildenbrand (da...@redhat.com) wrote: > > > On 15.10.21 11:10, david.dai wrote: > > On Wed, Oct 13, 2021 at 10:33:39AM +0200, David Hildenbrand > > (da...@redhat.com) wrote: > >> > >> CAUTION: This email originated from outside of the organization

Re: [PATCH v3 02/25] include/block/block: split header into I/O and global state API

2021-10-15 Thread Emanuele Giuseppe Esposito
diff --git a/include/block/block-common.h b/include/block/block-common.h new file mode 100644 index 00..4f1fd8de21 --- /dev/null +++ b/include/block/block-common.h @@ -0,0 +1,389 @@ +#ifndef BLOCK_COMMON_H +#define BLOCK_COMMON_H As a new file, it probably deserves a copyright/license bl

[RFC PATCH 0/4] Replace custom test harness with "meson test"

2021-10-15 Thread Paolo Bonzini
Hi all, Starting with Meson 0.57, "meson test" has all features of QEMU's makefile-based harness and more. In particular, some features that were added to reach feature parity are: * print reproducer command line for each failed test right below the test * keep the output of multiple (non-TAP)

[PATCH 2/4] build: make check-block a meson test

2021-10-15 Thread Paolo Bonzini
"meson test" supports can be asked to run tests verbosely. This makes it usable also for qemu-iotests's own harness. This lets "make check-block" reuse mtest2make.py's infrastructure to find and build test dependencies. In the future, it will also enable producing TAP output, for consistency wit

[PATCH 1/4] build: use "meson test" as the test harness

2021-10-15 Thread Paolo Bonzini
"meson test" starting with version 0.57 is just as capable and easy to use as QEMU's own TAP driver. All existing options for "make check" work. The only required code change involves how to mark "slow" tests. scripts/mtest2make.py is changed to invoke "meson test" using a trick similar to how t

[PATCH 3/4] check-block: replace -makecheck with TAP output

2021-10-15 Thread Paolo Bonzini
Let "meson test" take care of showing the results of the individual tests, consistently with other output from "make check V=1". Use TAP comments so that the environment is included in the logs. Signed-off-by: Paolo Bonzini --- tests/check-block.sh | 6 ++-- tests/qemu-iotests/chec

[PATCH 4/4] configure: remove dead EXESUF variable

2021-10-15 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- .gitlab-ci.d/crossbuild-template.yml | 2 +- configure| 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.gitlab-ci.d/crossbuild-template.yml b/.gitlab-ci.d/crossbuild-template.yml index 10d22dcf6c..87cb8b7518 10064

Re: [PATCH v2] Partially revert "build: -no-pie is no functional linker flag"

2021-10-15 Thread Paolo Bonzini
On 05/08/21 21:25, Jessica Clarke wrote: This partially reverts commit bbd2d5a8120771ec59b86a80a1f51884e0a26e53. This commit was misguided and broke using --disable-pie on any distro that enables PIE by default in their compiler driver, including Debian and its derivatives. Whilst -no-pie is not

Re: [PATCH] contrib/plugins: add a drcov plugin

2021-10-15 Thread arkadiy . ivanov
Alex Bennée писал 2021-10-12 13:36: Arkadiy writes: From: NDNF This patch adds the ability to generate files in drcov format. Primary goal this script is to have coverage logfiles thatwork in Lighthouse. Problems: - The path to the executable file is not specified. I don't see a proble

Re: [PATCH] configure/optionrom: Fix MSYS2 multiboot.bin issue

2021-10-15 Thread Paolo Bonzini
On 15/09/21 12:56, Helge Konetzka wrote: This patch enables native builds on MSYS2 with symlinks disabled. Signed-off-by: Helge Konetzka --- Without this patch these builds fail with: make[1]: *** No rule to make target 'multiboot.bin', needed by 'all'. Stop. make: *** [Makefile:189: pc-bios

Re: [PATCH v2 1/1] util: Make some iova_tree parameters const

2021-10-15 Thread Paolo Bonzini
On 13/10/21 20:27, Eugenio Pérez wrote: As qemu guidelines: Unless a pointer is used to modify the pointed-to storage, give it the "const" attribute. In the particular case of iova_tree_find it allows to enforce what is requested by its comment, since the compiler would shout in case of modifyin

Re: [PATCH] MAINTAINERS: update location of microvm docs

2021-10-15 Thread Paolo Bonzini
On 12/10/21 17:14, Alex Bennée wrote: Fixes: e8eee8d3d9 ("docs: Move microvm.rst into the system manual") Signed-off-by: Alex Bennée --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 50435b8d2f..aa8188f87a 100644 --- a/MAINTAI

[PATCH v4] hw/arm/virt: Don't create device-tree node for empty NUMA node

2021-10-15 Thread Gavin Shan
The empty NUMA node, where no memory resides, are allowed. For example, the following command line specifies two empty NUMA nodes. With this, QEMU fails to boot because of the conflicting device-tree node names, as the following error message indicates. /home/gavin/sandbox/qemu.main/build/qemu-s

Re: [PATCH v3 1/2] numa: Require distance map when empty node exists

2021-10-15 Thread Gavin Shan
Hi Drew, On 10/15/21 7:33 PM, Andrew Jones wrote: On Fri, Oct 15, 2021 at 07:22:05PM +1100, Gavin Shan wrote: It's possible that the empty NUMA nodes aren't referred by any CPUs, as the following command line indicate. In this case, the empty NUMA node IDs aren't existing in device-tree CPU nod

On versioned CPU models, aliases, and machine types

2021-10-15 Thread Kashyap Chamarthy
Hi With the versioned CPU models, I see that the plain, non-versioned named model now says: "alias configured by machine type". For example: $> qemu-system-x86_64 -cpu help | grep Broadwell x86 Broadwell (alias configured by machine type) x86 Broa

[PATCH v2 0/8] Some Sphinx improvements

2021-10-15 Thread marcandre . lureau
From: Marc-André Lureau Hi, I have collected a few Sphinx-related improvements to improve depfile generation and add some keyboard navigation. Hope you'll like it. v2: - fix test 'output:' regression - fix javascript indentation (Paolo) - split "meson: remove explicit extensions dependency f

[PATCH v2 1/8] docs/sphinx: add loaded modules to generated depfile

2021-10-15 Thread marcandre . lureau
From: Marc-André Lureau Signed-off-by: Marc-André Lureau --- docs/sphinx/depfile.py | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/sphinx/depfile.py b/docs/sphinx/depfile.py index 277fdf0f56..b6fb926df1 100644 --- a/docs/sphinx/depfile.py +++ b/docs/sph

[PATCH v2 4/8] tests/qapi-schema/meson: add depfile to sphinx doc

2021-10-15 Thread marcandre . lureau
From: Marc-André Lureau Signed-off-by: Marc-André Lureau --- tests/qapi-schema/meson.build | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/qapi-schema/meson.build b/tests/qapi-schema/meson.build index df5acfd08b..3676729fbb 100644 --- a/tests/qapi-schema/meson.buil

[PATCH v2 3/8] docs/sphinx: add templates files to generated depfile

2021-10-15 Thread marcandre . lureau
From: Marc-André Lureau Signed-off-by: Marc-André Lureau --- docs/conf.py | 2 +- docs/sphinx/depfile.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index ff6e92c6e2..edc2bf8fcb 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -74,

[PATCH v2 2/8] docs/sphinx: add static files to generated depfile

2021-10-15 Thread marcandre . lureau
From: Marc-André Lureau Signed-off-by: Marc-André Lureau --- docs/sphinx/depfile.py | 5 + 1 file changed, 5 insertions(+) diff --git a/docs/sphinx/depfile.py b/docs/sphinx/depfile.py index b6fb926df1..99539adb48 100644 --- a/docs/sphinx/depfile.py +++ b/docs/sphinx/depfile.py @@ -13,6 +13

[PATCH v2 6/8] meson: drop sphinx_template_files

2021-10-15 Thread marcandre . lureau
From: Marc-André Lureau Static files dependencies is now handled by depfile.py. Signed-off-by: Marc-André Lureau --- docs/meson.build | 3 --- 1 file changed, 3 deletions(-) diff --git a/docs/meson.build b/docs/meson.build index 34fda6853d..27c6e156ff 100644 --- a/docs/meson.build +++ b/docs/

[PATCH v2 5/8] meson: drop sphinx_extn_depends

2021-10-15 Thread marcandre . lureau
From: Marc-André Lureau Module dependencies is now handled by depfile.py. Signed-off-by: Marc-André Lureau --- docs/meson.build | 9 + tests/qapi-schema/meson.build | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/docs/meson.build b/docs/meson.build ind

RE: [RFC v9 16/29] vfio: Pass stage 1 MSI bindings to the host

2021-10-15 Thread Shameerali Kolothum Thodi
Hi Eric, > -Original Message- > From: Eric Auger [mailto:eric.au...@redhat.com] > Sent: 11 April 2021 13:09 > To: eric.auger@gmail.com; eric.au...@redhat.com; > qemu-devel@nongnu.org; qemu-...@nongnu.org; > alex.william...@redhat.com > Cc: peter.mayd...@linaro.org; jean-phili...@linaro

[PATCH v2 8/8] docs/sphinx: add 's' keyboard binding to focus search

2021-10-15 Thread marcandre . lureau
From: Marc-André Lureau This is pretty ubiquitous. ('/' is already taken by some browsers for quick search) Signed-off-by: Marc-André Lureau --- docs/conf.py | 4 docs/sphinx-static/custom.js | 9 + 2 files changed, 13 insertions(+) create mode 100644 docs/sphinx-

[PATCH v2 7/8] docs/sphinx: set navigation_with_keys=True

2021-10-15 Thread marcandre . lureau
From: Marc-André Lureau Allow navigating to the previous/next page using the keyboard's left and right arrows. I wish this would be the default, and that the themes would provide more key navigation, but that doesn't seem on the roadmap. Signed-off-by: Marc-André Lureau --- docs/conf.py | 1 +

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

2021-10-15 Thread Christian Borntraeger
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 added a checked conversion to TYPE_DEVICE at the end, which duplicates the chec

Re: [PATCH v2 0/8] Some Sphinx improvements

2021-10-15 Thread Paolo Bonzini
On 15/10/21 12:53, marcandre.lur...@redhat.com wrote: From: Marc-André Lureau Hi, I have collected a few Sphinx-related improvements to improve depfile generation and add some keyboard navigation. Hope you'll like it. v2: - fix test 'output:' regression - fix javascript indentation (Paolo

Re: Storage controller access to data

2021-10-15 Thread Kevin Wolf
Am 12.10.2021 um 19:52 hat Nada Lachtar geschrieben: > I’m working on a project that requires me to read the data being sent > to storage and it to a file for analysis. To be more specific, I’m > trying to analyze the data in the phase of being written to the > storage disk, thus, I’m trying to rea

RE: [PATCH v3 00/22] target/ppc: DFP instructions using decodetree

2021-10-15 Thread Luis Fernando Fujita Pires
Sorry, that was in the e-mail I replied to. I'm asking for reviews on patches 5, 6, 7, 8, 12, 15 and 18: 5: host-utils: move checks out of divu128/divs128 6: host-utils: move udiv_qrnnd() to host-utils 7: host-utils: add 128-bit quotient support to divu128/divs128 8: host-utils: add unit test

Re: [PATCH 11/11] 9p: darwin: meson: Allow VirtFS on Darwin

2021-10-15 Thread Paolo Bonzini
On 14/10/21 01:04, Will Cohen wrote: From: Keno Fischer Signed-off-by: Keno Fischer Signed-off-by: Michael Roitzsch --- fsdev/meson.build | 1 + meson.build | 17 ++--- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/fsdev/meson.build b/fsdev/meson.build

Re: [PATCH v4] hw/arm/virt: Don't create device-tree node for empty NUMA node

2021-10-15 Thread Andrew Jones
On Fri, Oct 15, 2021 at 06:49:09PM +0800, Gavin Shan wrote: > The empty NUMA node, where no memory resides, are allowed. For > example, the following command line specifies two empty NUMA nodes. > With this, QEMU fails to boot because of the conflicting device-tree > node names, as the following er

Re: [PATCH v8 07/10] hw/arm/sbsa-ref: add ITS support in SBSA GIC

2021-10-15 Thread Leif Lindholm
Hi Peter, (Apologies for delay. Alex also tells me you are currently away, but there is no strong urgency here.) On Thu, Sep 23, 2021 at 17:00:35 +0100, Peter Maydell wrote: > > If we assume that we don't want to further complicate this set by > > adding the additional logic *now*, I see three op

Re: [PATCH v2 05/13] target/riscv: Add MXL/SXL/UXL to TB_FLAGS

2021-10-15 Thread Alistair Francis
On Thu, Oct 14, 2021 at 6:56 AM Richard Henderson wrote: > > Begin adding support for switching XLEN at runtime. Extract the > effective XLEN from MISA and MSTATUS and store for use during translation. > > Signed-off-by: Richard Henderson Reviewed-by: Alistair Francis Alistair > --- > v2: Fo

Re: [PATCH 4/4] configure: remove dead EXESUF variable

2021-10-15 Thread Philippe Mathieu-Daudé
On 10/15/21 12:07, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- > .gitlab-ci.d/crossbuild-template.yml | 2 +- > configure| 3 --- > 2 files changed, 1 insertion(+), 4 deletions(-) Maybe squash in patch #2 or place as #3 mentioning "the previous commit"?

[PATCH] target/s390x/cpu.h: Remove unused SIGP_MODE defines

2021-10-15 Thread Thomas Huth
These are unused since commit 075e52b816648f21 ("s390x/cpumodel: we are always in zarchitecture mode") and it's unlikely that we will ever need them again. So let's simply remove them now. Signed-off-by: Thomas Huth --- target/s390x/cpu.h | 5 - 1 file changed, 5 deletions(-) diff --git a/t

[PATCH v5] hw/arm/virt: Don't create device-tree node for empty NUMA node

2021-10-15 Thread Gavin Shan
The empty NUMA node, where no memory resides, are allowed. For example, the following command line specifies two empty NUMA nodes. With this, QEMU fails to boot because of the conflicting device-tree node names, as the following error message indicates. /home/gavin/sandbox/qemu.main/build/qemu-s

Re: [PATCH v4] hw/arm/virt: Don't create device-tree node for empty NUMA node

2021-10-15 Thread Gavin Shan
On 10/15/21 11:22 PM, Andrew Jones wrote: On Fri, Oct 15, 2021 at 06:49:09PM +0800, Gavin Shan wrote: The empty NUMA node, where no memory resides, are allowed. For example, the following command line specifies two empty NUMA nodes. With this, QEMU fails to boot because of the conflicting device

Re: [PATCH] target/s390x/cpu.h: Remove unused SIGP_MODE defines

2021-10-15 Thread David Hildenbrand
On 15.10.21 14:42, Thomas Huth wrote: > These are unused since commit 075e52b816648f21 ("s390x/cpumodel: > we are always in zarchitecture mode") and it's unlikely that we > will ever need them again. So let's simply remove them now. > > Signed-off-by: Thomas Huth > --- > target/s390x/cpu.h | 5 -

Re: [PATCH v2] hw/riscv: virt: bugfix the memory-backend-file command is invalid

2021-10-15 Thread Igor Mammedov
On Fri, 15 Oct 2021 17:25:01 +0800 Bin Meng wrote: > On Fri, Oct 15, 2021 at 4:52 PM limingwang (A) wrote: > > > > > > On Wed, Oct 13, 2021 at 22:41 PM Bin Meng wrote: > > > > > > On Tue, Oct 12, 2021 at 9:46 AM MingWang Li > > > wrote: > > > > > > > > From: Mingwang Li > > > > > > > > W

Re: [PATCH v5] hw/arm/virt: Don't create device-tree node for empty NUMA node

2021-10-15 Thread Andrew Jones
On Fri, Oct 15, 2021 at 08:42:46PM +0800, Gavin Shan wrote: > The empty NUMA node, where no memory resides, are allowed. For > example, the following command line specifies two empty NUMA nodes. > With this, QEMU fails to boot because of the conflicting device-tree > node names, as the following er

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

2021-10-15 Thread Laurent Vivier
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 introduced by python3 and preventing to run the extract mode. Lau

[PATCH 1/2] analyze-migration.py: fix a long standing typo

2021-10-15 Thread Laurent Vivier
The parameters of '-d' can be either 'state' or 'desc', not 'dump' as it is reported in the error message. Fixes: b17425701d66 ("Add migration stream analyzation script") Signed-off-by: Laurent Vivier --- scripts/analyze-migration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH 2/2] analyze-migration.py: fix extract contents ('-x') errors

2021-10-15 Thread Laurent Vivier
When we try to use 'analyze-migration.py -x' with python3, we have the following errors: Traceback (most recent call last): File "scripts/analyze-migration.py", line 593, in f.write(jsonenc.encode(dump.vmsd_desc)) TypeError: a bytes-like object is required, not 'str' Traceback (m

Re: [PATCH 1/2] analyze-migration.py: fix a long standing typo

2021-10-15 Thread Philippe Mathieu-Daudé
On 10/15/21 15:16, Laurent Vivier wrote: > The parameters of '-d' can be either 'state' or 'desc', not 'dump' > as it is reported in the error message. > > Fixes: b17425701d66 ("Add migration stream analyzation script") > Signed-off-by: Laurent Vivier > --- > scripts/analyze-migration.py | 2 +-

Re: [PATCH v2 00/15] qdev: Add JSON -device

2021-10-15 Thread Peter Krempa
On Fri, Oct 08, 2021 at 15:34:27 +0200, Kevin Wolf wrote: > It's still a long way until we'll have QAPIfied devices, but there are > some improvements that we can already make now to make the future switch > easier. > > One important part of this is having code paths without QemuOpts, which > we w

Re: [PATCH 1/9] tests/docker: Add debian-nios2-cross image

2021-10-15 Thread Alex Bennée
Richard Henderson writes: > On 10/12/21 10:03 AM, Alex Bennée wrote: >> We need^H^H^H^H (might need, see bellow) a separate patch with: >> docker-image-debian10: NOUSER=1 >> to ensure the images we base our "handbuilt" compilers on don't >> include >> a potentially clashing uid (which should on

Re: [PATCH] contrib/plugins: add a drcov plugin

2021-10-15 Thread Alex Bennée
arkadiy.iva...@ispras.ru writes: > Alex Bennée писал 2021-10-12 13:36: >> Arkadiy writes: >> >>> From: NDNF >>> This patch adds the ability to generate files in drcov format. >>> Primary goal this script is to have coverage >>> logfiles thatwork in Lighthouse. >>> Problems: >>> - The path

Re: [PATCH 4/4] configure: remove dead EXESUF variable

2021-10-15 Thread Paolo Bonzini
On 15/10/21 14:38, Philippe Mathieu-Daudé wrote: On 10/15/21 12:07, Paolo Bonzini wrote: Signed-off-by: Paolo Bonzini --- .gitlab-ci.d/crossbuild-template.yml | 2 +- configure| 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) Maybe squash in patch #2 or

Re: [PATCH 2/2] analyze-migration.py: fix extract contents ('-x') errors

2021-10-15 Thread Philippe Mathieu-Daudé
On 10/15/21 15:16, Laurent Vivier wrote: > When we try to use 'analyze-migration.py -x' with python3, > we have the following errors: > > Traceback (most recent call last): > File "scripts/analyze-migration.py", line 593, in > f.write(jsonenc.encode(dump.vmsd_desc)) > TypeError: a b

Re: [PATCH] target/s390x/cpu.h: Remove unused SIGP_MODE defines

2021-10-15 Thread Philippe Mathieu-Daudé
On 10/15/21 14:42, Thomas Huth wrote: > These are unused since commit 075e52b816648f21 ("s390x/cpumodel: > we are always in zarchitecture mode") and it's unlikely that we > will ever need them again. So let's simply remove them now. > > Signed-off-by: Thomas Huth > --- > target/s390x/cpu.h | 5 -

Re: [PATCH 4/4] configure: remove dead EXESUF variable

2021-10-15 Thread Philippe Mathieu-Daudé
On 10/15/21 15:36, Paolo Bonzini wrote: > On 15/10/21 14:38, Philippe Mathieu-Daudé wrote: >> On 10/15/21 12:07, Paolo Bonzini wrote: >>> Signed-off-by: Paolo Bonzini >>> --- >>>   .gitlab-ci.d/crossbuild-template.yml | 2 +- >>>   configure    | 3 --- >>>   2 files changed,

Re: [PATCH v2 00/15] qdev: Add JSON -device

2021-10-15 Thread Kevin Wolf
Am 08.10.2021 um 15:34 hat Kevin Wolf geschrieben: > It's still a long way until we'll have QAPIfied devices, but there are > some improvements that we can already make now to make the future switch > easier. > > One important part of this is having code paths without QemuOpts, which > we want to

[PULL 01/15] net: Introduce NetClientInfo.check_peer_type()

2021-10-15 Thread Kevin Wolf
Some network backends (vhost-user and vhost-vdpa) work only with specific devices. At startup, they second guess what the command line option handling will do and error out if they think a non-virtio device will attach to them. This second guessing is not only ugly, it can lead to wrong error mess

[PULL 00/15] qdev: Add JSON -device

2021-10-15 Thread Kevin Wolf
The following changes since commit 4d1a525dfafe995a98bb486e702da09e31b68b9c: Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2021-10-14 10:49:38 -0700) are available in the Git repository at: git://repo.or.cz/qemu/kevin.git tags/for-upstream for you to fetch

<    1   2   3   4   >