Re: [Qemu-devel] [PATCH] riscv: sifive_test: Add reset functionality

2019-07-13 Thread Bin Meng
On Tue, Jul 9, 2019 at 5:48 PM Palmer Dabbelt wrote: > > On Fri, 14 Jun 2019 08:15:51 PDT (-0700), bmeng...@gmail.com wrote: > > This adds a reset opcode for sifive_test device to trigger a system > > reset for testing purpose. > > > > Signed-off-by: Bin Meng > > --- > > > > hw/riscv/sifive_test

Re: [Qemu-devel] [Qemu-riscv] [PATCH 2/2] riscv: sifive_u: Update the plic hart config to support multicore

2019-07-13 Thread Bin Meng
Hi Fabien, On Tue, Jul 9, 2019 at 12:31 AM Fabien Chouteau wrote: > > Hi Bin, > > Thanks for this patch. > > I know I am very late to the game but I have a comment here. > > On 17/05/2019 17:51, Bin Meng wrote: > > +/* create PLIC hart topology configuration string */ > > +plic_hart_confi

Re: [Qemu-devel] [PATCH v3 0/6] tests/docker: add podman support

2019-07-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190713143311.17620-1-marcandre.lur...@redhat.com/ Hi, This series failed the asan build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN === #!/bin/

Re: [Qemu-devel] [PATCH 4/8] convert libqemuutil to meson

2019-07-13 Thread Paolo Bonzini
On 13/07/19 16:15, Markus Armbruster wrote: >>In particular the tracing headers are using >> $(build_root)/$(> "trace/trace-audio.h" and have sixty one-line forwarding headers in the >> source tree; for example "audio/trace.h" includes "trace/trace-audio.h". >> I'm not sure if i

Re: [Qemu-devel] [BUG] 216 Alerts reported by LGTM for QEMU (some might be release critical)

2019-07-13 Thread Paolo Bonzini
On 13/07/19 19:46, Stefan Weil wrote: > > LGTM reports 16 errors, 81 warnings and 119 recommendations: > https://lgtm.com/projects/g/qemu/qemu/alerts/?mode=list. > > Some of them are already know (wrong format strings), others look like > real errors: > > - several multiplication results which d

[Qemu-devel] [BUG] 216 Alerts reported by LGTM for QEMU (some might be release critical)

2019-07-13 Thread Stefan Weil
Hi, LGTM reports 16 errors, 81 warnings and 119 recommendations: https://lgtm.com/projects/g/qemu/qemu/alerts/?mode=list. Some of them are already know (wrong format strings), others look like real errors: - several multiplication results which don't work as they should in contrib/vhost-us

[Qemu-devel] [RFC PATCH-for-4.1] Makefile: Fix the NSIS Windows builds

2019-07-13 Thread Philippe Mathieu-Daudé
The qemu-nsis.bmp file was not listed with the other blobs, thus not installed in the ${BINDIR} location. This fixes: $ make installer [...] (cd /tmp/qemu-nsis; \ for i in qemu-system-*.exe; do \ arch=${i%.exe}; \ arch=${arch#qemu-system-}; \

[Qemu-devel] [PATCH 3/3] tests/docker: Set the correct cross-PKG_CONFIG_PATH in the MXE images

2019-07-13 Thread Philippe Mathieu-Daudé
This silents a bunch of warnings while compiling the Slirp objects: $ make [...] CC slirp/src/tftp.o Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gli

[Qemu-devel] [PATCH 0/3] tests/docker: Debian & MXE fixes

2019-07-13 Thread Philippe Mathieu-Daudé
Few more patches to be able to MXE-build the NSIS installers, however it is still failing due to: https://bugs.launchpad.net/bugs/1836453 Based-on: 20190712111849.9006-1-alex.ben...@linaro.org https://lists.gnu.org/archive/html/qemu-devel/2019-07/msg03014.html Philippe Mathieu-Daudé (3): tests/

[Qemu-devel] [PATCH 1/3] tests/docker: Install Sphinx in the Debian images

2019-07-13 Thread Philippe Mathieu-Daudé
Since commit 5f71eac06e the Sphinx tool is required to build the rST documentation. This fixes: $ ./configure --enable-docs ERROR: User requested feature docs configure was not able to find it. Install texinfo, Perl/perl-podlators and python-sphinx Signed-off-by: Philippe Math

[Qemu-devel] [PATCH 2/3] tests/docker: Install the NSIS tools in the MXE images

2019-07-13 Thread Philippe Mathieu-Daudé
This fixes: $ make installer (cd /tmp/qemu-nsis; \ for i in qemu-system-*.exe; do \ arch=${i%.exe}; \ arch=${arch#qemu-system-}; \ echo Section \"$arch\" Section_$arch; \ echo SetOutPath \"\$INSTDIR\"; \ echo File \"\$

[Qemu-devel] [Bug 1836453] [NEW] "qemu-nsis\*.bmp" -> no files found" when building with MXE

2019-07-13 Thread Philippe Mathieu-Daudé
Public bug reported: Already reported for 4.0: https://lists.gnu.org/archive/html/qemu-devel/2019-01/msg07005.html host: Docker qemu:debian-win32-cross $ make installer (cd /tmp/qemu-nsis; \ for i in qemu-system-*.exe; do \ arch=${i%.exe}; \ arch=${arch#qemu-system

[Qemu-devel] [Bug 1836451] [NEW] 'make info' fails due to errors in qemu-tech.texi

2019-07-13 Thread Philippe Mathieu-Daudé
Public bug reported: git tag: v4.1.0-rc0 host: Fedora 29, x86_64 $ make info make[1]: Entering directory 'qemu/slirp' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory 'qemu/slirp' GEN docs/version.texi GEN qemu-options.texi GEN qemu-monitor.texi GEN qemu-i

Re: [Qemu-devel] [PATCH] archive-source: also create a stash for submodules

2019-07-13 Thread Philippe Mathieu-Daudé
On 7/8/19 10:02 PM, Marc-André Lureau wrote: > "git archive" fails when a submodule has a modification, because "git > stash create" doesn't handle submodules. Let's teach our > archive-source.sh to handle modifications in submodules the same way > as qemu tree, by creating a stash. > > Signed-off

Re: [Qemu-devel] [PATCH v1 1/7] tests/docker: add test-misc for building tools & docs

2019-07-13 Thread Philippe Mathieu-Daudé
On 7/12/19 1:18 PM, Alex Bennée wrote: > Add yet another test type so we cna quickly exercise the miscellaneous "cna" -> "can" > build products of the build system under various docer configurations. > > Signed-off-by: Alex Bennée > --- > tests/docker/test-misc | 22 ++ > 1

Re: [Qemu-devel] Building nsis installer - cross compile for Windows

2019-07-13 Thread Philippe Mathieu-Daudé
On Mon, Jan 28, 2019 at 4:18 PM Peter Maydell wrote: > On Mon, 28 Jan 2019 at 15:11, Daniel P. Berrangé wrote: > > > > On Mon, Jan 28, 2019 at 03:03:34PM +, Peter Maydell wrote: > > > Though something > > > doesn't seem quite right here, because the sdl2.c code is > > > looking for icon files

Re: [Qemu-devel] [PATCH v1 7/7] shippable: re-enable the windows cross builds

2019-07-13 Thread Philippe Mathieu-Daudé
On 7/12/19 1:18 PM, Alex Bennée wrote: > The pkg.mxe.cc repo has been restored. > > Signed-off-by: Alex Bennée > --- > .shippable.yml | 9 - > 1 file changed, 4 insertions(+), 5 deletions(-) > > diff --git a/.shippable.yml b/.shippable.yml > index f2ffef21d11..f74a3de3ffd 100644 > --- a

Re: [Qemu-devel] [PATCH v1 6/7] tests/dockerfiles: update the win cross builds to stretch

2019-07-13 Thread Philippe Mathieu-Daudé
On 7/12/19 1:18 PM, Alex Bennée wrote: > While fixing up pkg.mxe.cc they move the URLs around a bit and dropped > Jessie support in favour of Stretch. We also need to update the keys > used to verify the packages. > > Signed-off-by: Alex Bennée > --- > tests/docker/Makefile.include

[Qemu-devel] [PATCH v3 4/6] tests: specify the address family when checking bind

2019-07-13 Thread Marc-André Lureau
getaddrinfo() may succeed with PF_UNSPEC, but fail when more specific. (this allows to skip some tests that would fail under podman) Signed-off-by: Marc-André Lureau --- tests/socket-helpers.c | 17 + tests/socket-helpers.h | 11 --- 2 files changed, 13 insertions(+), 15

[Qemu-devel] [PATCH v3 3/6] tests/docker: add podman support

2019-07-13 Thread Marc-André Lureau
Allow to specify the container engine to run with ENGINE variable. By default, ENGINE=auto and will select either podman or docker. Signed-off-by: Marc-André Lureau --- Makefile | 2 +- tests/docker/Makefile.include | 8 ++-- 2 files changed, 7 insertions(+), 3 deletion

[Qemu-devel] [PATCH v3 6/6] test: skip tests if socket_check_protocol_support() failed

2019-07-13 Thread Marc-André Lureau
Skip the tests if socket_check_protocol_support() failed, but do run g_test_run() to keep TAP harness happy. Signed-off-by: Marc-André Lureau --- tests/test-char.c | 4 +++- tests/test-io-channel-socket.c | 4 +++- tests/test-util-sockets.c | 4 +++- 3 files changed, 9 insertio

[Qemu-devel] [PATCH v3 5/6] test-char: skip tcp tests if ipv4 check failed

2019-07-13 Thread Marc-André Lureau
Signed-off-by: Marc-André Lureau --- tests/Makefile.include | 2 +- tests/test-char.c | 17 + 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/tests/Makefile.include b/tests/Makefile.include index a983dd32da..2bddebaf4b 100644 --- a/tests/Makefile.include +++

[Qemu-devel] [PATCH v3 2/6] docker.py: add podman support

2019-07-13 Thread Marc-André Lureau
Add a --engine option to select either docker, podman or auto. Among other advantages, podman allows to run rootless & daemonless containers, fortunately sharing compatible CLI with docker. With current podman, we have to use a uidmap trick in order to be able to rw-share the ccache directory wit

[Qemu-devel] [PATCH v3 0/6] tests/docker: add podman support

2019-07-13 Thread Marc-André Lureau
Hi, podman allows to run containers in a similar fashion as docker, but without daemon or root privileges. Thank you podman! There is a weird issue with getaddrinfo(), that I reported upstream https://github.com/containers/libpod/issues/3535. For now, it is worked around with extra socket_check_p

[Qemu-devel] [PATCH v3 1/6] docker.py: add --run-as-current-user

2019-07-13 Thread Marc-André Lureau
Podman will need further tweaks. Suggested-by: Paolo Bonzini Signed-off-by: Marc-André Lureau --- tests/docker/Makefile.include | 2 +- tests/docker/docker.py| 5 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.in

Re: [Qemu-devel] [PATCH] target/i386: Introduce Denverton CPU model

2019-07-13 Thread Tao Xu
On 7/10/2019 12:20 AM, Xiaoyao Li wrote: On Tue, 2019-07-09 at 22:27 +0800, Tao Xu wrote: On 7/9/2019 4:39 PM, Xiaoyao Li wrote: On 7/9/2019 12:44 PM, Tao Xu wrote: Denverton-Server is the Atom Processor of Intel Harrisonville platform. For more information: https://ark.intel.com/content/www/

Re: [Qemu-devel] [PATCH 4/8] convert libqemuutil to meson

2019-07-13 Thread Markus Armbruster
Cc: Stefan for the tracing part. Stefan, there are some observations for you buried inline. Search for "I guess the timestamp thing is for avoiding recompilation", "generate trace.* per directory", and "we run $(TRACETOOL) N times on the same input". Paolo Bonzini writes: > This shows how to d

Re: [Qemu-devel] [PATCH] gluster: fix .bdrv_reopen_prepare when backing file is a JSON object

2019-07-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190712104617.94707-1-sgarz...@redhat.com/ Hi, This series failed the asan build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN === #!/bin/bash mak

[Qemu-devel] [RFC] Add virtual SDEI support in qemu

2019-07-13 Thread Guoheyi
Hi folks, Do it make sense to implement virtual SDEI in qemu? So that we can have the standard way for guest to handle NMI watchdog, RAS events and something else which involves SDEI in a physical ARM64 machine. My basic idea is like below: 1. Change a few lines of code in kvm to allow unhan

Re: [Qemu-devel] [BUG] nanoMIPS support problem related to extract2 support for i386 TCG target

2019-07-13 Thread Alex Bennée
Aleksandar Markovic writes: > Hello, Richard, Peter, and others. > > As a part of activities before 4.1 release, I tested nanoMIPS support > in QEMU (which was officially fully integrated in 4.0, is currently > limited to system mode only, and was tested in a similar fashion right > prior to 4.