[PATCH 034/150] contrib/vhost-user-input: convert to meson

2020-08-14 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile | 11 --- Makefile.objs | 1 - contrib/vhost-user-input/Makefile.objs | 1 - contrib/vhost-user-input/meson.build | 5 +

[PATCH 027/150] meson: add version.o

2020-08-14 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- meson.build | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 6550262b9b..f16add33ca 100644 --- a/meson.build +++ b/meson.build @@ -45,8 +45,14 @@

[PATCH 017/150] configure: generate Meson cross file

2020-08-14 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- configure | 68 +++ 1 file changed, 59 insertions(+), 9 deletions(-) diff --git a/configure b/configure index f99baba99e..c9f36153dd 100755 ---

[PATCH 028/150] contrib/libvhost-user: convert to Meson

2020-08-14 Thread Paolo Bonzini
Since libqemuutil.a has been converted to Meson, the conversion is straightforward. Signed-off-by: Paolo Bonzini --- Makefile| 16 +--- Makefile.objs | 1 - contrib/libvhost-user/Makefile.objs | 1 -

[PATCH 016/150] configure: integrate Meson in the build system

2020-08-14 Thread Paolo Bonzini
The Meson build system is integrated in the existing configure/make steps by invoking Meson from the configure script and converting Meson's build.ninja rules to an included Makefile. build.ninja already provides tags/ctags/cscope rules, so they are removed. Signed-off-by: Paolo Bonzini ---

[PATCH 018/150] build-sys hack: link with whole .fa archives

2020-08-14 Thread Paolo Bonzini
From: Marc-André Lureau In order to link the *-obj-y files into tests, we will make static libraries of them in Meson, and then link them as whole archives into the tests. To separate regular static libraries from link-whole libraries, give them a different file extension. Signed-off-by:

[PATCH 031/150] vhost-user-scsi: add compatibility for libiscsi 1.9.0

2020-08-14 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- contrib/vhost-user-scsi/vhost-user-scsi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/vhost-user-scsi/vhost-user-scsi.c b/contrib/vhost-user-scsi/vhost-user-scsi.c index 7a1db164c8..3c912384e9 100644 ---

[PATCH 024/150] meson: add testsuite Makefile generator

2020-08-14 Thread Paolo Bonzini
Rules to execute tests are generated by a simple Python program that integrates into the existing "make check" mechanism. This provides familiarity for developers, and also allows piecewise conversion of the testsuite Makefiles to meson. The generated rules are based on QEMU's existing test

[PATCH 026/150] meson: add remaining generated tcg trace helpers

2020-08-14 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile | 51 --- trace/meson.build | 14 + 2 files changed, 14 insertions(+), 51 deletions(-) diff --git a/Makefile b/Makefile index

[PATCH 022/150] meson: use coverage option

2020-08-14 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile | 14 -- Makefile.target| 16 configure | 9 ++--- docs/devel/testing.rst | 7 +++ meson.build| 2 +- 5

[PATCH 020/150] meson: move summary to meson.build

2020-08-14 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- configure | 237 -- meson.build | 243 2 files changed, 243 insertions(+), 237 deletions(-) diff --git a/configure b/configure index 213d8d..e8c1ed5aba

[PATCH 005/150] meson: rename included C source files to .c.inc

2020-08-14 Thread Paolo Bonzini
With Makefiles that have automatically generated dependencies, you generated includes are set as dependencies of the Makefile, so that they are built before everything else and they are available when first building the .c files. Alternatively you can use a fine-grained dependency, e.g.

[PATCH 015/150] tests/vm: include setuptools

2020-08-14 Thread Paolo Bonzini
They are a dependency of Meson, so install them. Signed-off-by: Paolo Bonzini --- tests/vm/freebsd | 1 + tests/vm/netbsd | 1 + tests/vm/openbsd | 1 + 3 files changed, 3 insertions(+) diff --git a/tests/vm/freebsd b/tests/vm/freebsd index 29252fa4a6..b34b14fc53 100755 --- a/tests/vm/freebsd

[PATCH 013/150] configure: expand path variables for meson configure

2020-08-14 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- configure | 35 --- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/configure b/configure index 606c327cca..373bb22287 100755 --- a/configure +++

[PATCH 019/150] build-sys: add meson submodule

2020-08-14 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- .gitmodules | 3 ++ configure | 73 ++- meson | 1 + scripts/archive-source.sh | 3 +- 4 files changed, 71

[PATCH 011/150] nsis: use "make DESTDIR=" instead of "make prefix="

2020-08-14 Thread Paolo Bonzini
The next patch will prevent modifying the prefix on "make install". Adjust the creation of the installer. Signed-off-by: Paolo Bonzini --- Makefile | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 5596482dbd..ec12101a84 100644 ---

[PATCH 012/150] configure: do not include $(...) variables in config-host.mak

2020-08-14 Thread Paolo Bonzini
This ensures that Meson will be able to reuse the results of the tests that are performed in the configure script. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- configure | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git

[PATCH 008/150] tests/vm: do not pollute configure with --efi-aarch64

2020-08-14 Thread Paolo Bonzini
Just make EFI_AARCH64 a variable in the makefile that defaults to the efi firmware included with QEMU. It can be redefined on the "make" command line. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- configure | 19 ---

[PATCH 004/150] trace: switch position of headers to what Meson requires

2020-08-14 Thread Paolo Bonzini
Meson doesn't enjoy the same flexibility we have with Make in choosing the include path. In particular the tracing headers are using $(build_root)/$( --- .gitignore | 1 - Makefile | 46 ++-- Makefile.objs

[PATCH 007/150] build-sys hack: ensure target directory is there

2020-08-14 Thread Paolo Bonzini
From: Marc-André Lureau By removing some unnest-vars calls, we miss some directory creation that may be required by some/dir/object.d. This will go away once everything is converted to Meson. Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- rules.mak | 1 + 1 file changed,

[PATCH 014/150] configure: prepare CFLAGS/CXXFLAGS/LDFLAGS for Meson

2020-08-14 Thread Paolo Bonzini
Split between CFLAGS/QEMU_CFLAGS and CXXFLAGS/QEMU_CXXFLAGS so that we will use CFLAGS and CXXFLAGS for flags that we do not want to pass to add_project_arguments. Signed-off-by: Paolo Bonzini --- configure | 78 --- rules.mak | 4

[PATCH v2 000/150] Meson integration for 5.2

2020-08-14 Thread Paolo Bonzini
News since v1: * automatically generate dependencies for sphinx manuals [Peter] * fixes for ARM KVM build [Peter] * work around old libiscsi in vhost-user-scsi.c [Peter] * hack to support default c:/Program Files/QEMU prefix on mingw cross compilation [Peter] * added

[PATCH 009/150] tests/vm: check for Python YAML parser in the Makefile

2020-08-14 Thread Paolo Bonzini
No need to do it in the configure file if it is only used for a help message. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- configure | 9 - tests/vm/Makefile.include | 4 +++- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git

[PATCH 006/150] meson: rename .inc.h files to .h.inc

2020-08-14 Thread Paolo Bonzini
Make it consistent with '.c.inc' and '.rst.inc'. Signed-off-by: Paolo Bonzini --- include/exec/cpu-all.h | 10 +- include/exec/memory.h| 12 ++-- .../exec/{memory_ldst.inc.h => memory_ldst.h.inc}| 0

[PATCH 003/150] pc-bios/s390-ccw: do not use rules.mak

2020-08-14 Thread Paolo Bonzini
From: Thomas Huth Signed-off-by: Paolo Bonzini --- pc-bios/s390-ccw/Makefile | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/pc-bios/s390-ccw/Makefile b/pc-bios/s390-ccw/Makefile index 50bc880272..cc0f77baa6 100644 --- a/pc-bios/s390-ccw/Makefile +++

[PATCH 010/150] tests/docker: add test script for static linux-user builds

2020-08-14 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- tests/docker/test-static | 24 1 file changed, 24 insertions(+) create mode 100755 tests/docker/test-static diff --git a/tests/docker/test-static b/tests/docker/test-static new file mode 100755 index 00..372ef6fac7 --- /dev/null

[PATCH 002/150] optionrom: simplify Makefile

2020-08-14 Thread Paolo Bonzini
From: Marc-André Lureau Make it independent from the rules.mak, and clean up to use pattern rules. Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- pc-bios/optionrom/Makefile | 67 +++--- 1 file changed, 41 insertions(+), 26 deletions(-) diff

[PATCH 001/150] oss-fuzz/build: remove LIB_FUZZING_ENGINE

2020-08-14 Thread Paolo Bonzini
Meson build scripts will only include qemu-fuzz-TARGET rules if configured with --enable-fuzzing, and that takes care of adding -fsanitize=fuzzer. Therefore we can just specify the configure option and stop modifying the CFLAGS and CONFIG_FUZZ options in the "make" invocation. Signed-off-by:

Re: [PATCH v2] block/vhdx: Support vhdx image only with 512 bytes logical sector size

2020-08-14 Thread Swapnil Ingle
Ping On 07.08.20, 12:03, "Swapnil Ingle" wrote: block/vhdx uses qemu block layer where sector size is always 512 bytes. This may have issues with 4K logical sector sized vhdx image. For e.g qemu-img convert on such images fails with following assert: $qemu-img convert -f

Re: [PATCH 2/3] softfloat: add APIs to handle alternative sNaN propagation

2020-08-14 Thread Chih-Min Chao
On Fri, Aug 14, 2020 at 1:21 AM Richard Henderson < richard.hender...@linaro.org> wrote: > On 7/30/20 2:52 AM, Chih-Min Chao wrote: > > For "fmax/fmin ft0, ft1, ft2" and if one of the inputs is sNaN, > > The original logic > > return NaN and set invalid flag if ft1 == sNaN || ft2 == sNan >

Re: QEMU latest release riscv32-softmmu not working

2020-08-14 Thread Chih-Min Chao
On Fri, Aug 14, 2020 at 3:31 PM Philippe Mathieu-Daudé wrote: > Hi Arman, > > On 8/13/20 10:20 PM, arman avetisyan wrote: > > Hi QEMU Team, having issue running riscv32-softmmu > > Cc'ing this to the QEMU RISCV mailing list. > > > > > After running riscv32-softmmu supplying custom linux build it

[PATCH 7/7] hw/scsi/scsi-disk: Replace magic '512' value by BDRV_SECTOR_SIZE

2020-08-14 Thread Philippe Mathieu-Daudé
Use self-explicit definitions instead of magic '512' value. Signed-off-by: Philippe Mathieu-Daudé --- hw/scsi/scsi-disk.c | 44 +++- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c index

[PATCH 6/7] hw/ide/pci: Replace magic '512' value by BDRV_SECTOR_SIZE

2020-08-14 Thread Philippe Mathieu-Daudé
Use self-explicit definitions instead of magic '512' value. Signed-off-by: Philippe Mathieu-Daudé --- hw/ide/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ide/pci.c b/hw/ide/pci.c index 5e85c4ad17..b50091b615 100644 --- a/hw/ide/pci.c +++ b/hw/ide/pci.c @@ -138,7

[PATCH 3/7] hw/ide/core: Replace magic '512' value by BDRV_SECTOR_SIZE

2020-08-14 Thread Philippe Mathieu-Daudé
Use self-explicit definitions instead of magic '512' value. Signed-off-by: Philippe Mathieu-Daudé --- hw/ide/core.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/hw/ide/core.c b/hw/ide/core.c index f76f7e5234..bcb2aa85fc 100644 --- a/hw/ide/core.c

[PATCH 4/7] hw/ide/ahci: Replace magic '512' value by BDRV_SECTOR_SIZE

2020-08-14 Thread Philippe Mathieu-Daudé
Use self-explicit definitions instead of magic '512' value. Signed-off-by: Philippe Mathieu-Daudé --- hw/ide/ahci.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 009120f88b..b696c6291a 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c

[PATCH 5/7] hw/ide/atapi: Replace magic '512' value by BDRV_SECTOR_SIZE

2020-08-14 Thread Philippe Mathieu-Daudé
Use self-explicit definitions instead of magic '512' value. Signed-off-by: Philippe Mathieu-Daudé --- hw/ide/atapi.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c index 17a9d635d8..14a2b0bb2f 100644 --- a/hw/ide/atapi.c +++

[PATCH 2/7] hw/ide/core: Trivial typo fix

2020-08-14 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- hw/ide/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ide/core.c b/hw/ide/core.c index d997a78e47..f76f7e5234 100644 --- a/hw/ide/core.c +++ b/hw/ide/core.c @@ -709,7 +709,7 @@ void ide_cancel_dma_sync(IDEState *s) /*

[PATCH 1/7] block/null: Make more explicit the driver default size is 1GiB

2020-08-14 Thread Philippe Mathieu-Daudé
As it is not obvious the default size for the null block driver is 1 GiB, replace the obfuscated '1 << 30' magic value by a definition using IEC binary prefixes. Signed-off-by: Philippe Mathieu-Daudé --- block/null.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH 0/7] block: Use definitions instead of magic values

2020-08-14 Thread Philippe Mathieu-Daudé
Trivial block patches: - Fix a typo - Replace '1 << 30' by '1 * GiB' in null-co - Replace 512 by BDRV_SECTOR_SIZE when appropriate. Philippe Mathieu-Daudé (7): block/null: Make more explicit the driver default size is 1GiB hw/ide/core: Trivial typo fix hw/ide/core: Replace magic '512' value

Re: [PATCH v5 00/14] QEMU cpus.c refactoring part2

2020-08-14 Thread Philippe Mathieu-Daudé
On 8/13/20 6:06 PM, Claudio Fontana wrote: > Any current infra work that could cause this failure? > > I do not have problems when testing this set of commands locally, > for me it's all green. Marc-André tried to debug this, but is having hard time reproducing. > > Thanks, > > Claudio > >

Re: [PATCH] configure: Require pixman for vhost-user-gpu.

2020-08-14 Thread Philippe Mathieu-Daudé
On 8/3/20 8:09 AM, Thomas Huth wrote: > On 02/08/2020 00.44, Rafael Kitover wrote: >> Use the test from Makefile to check if vhost-user-gpu is being built, >> and if so require pixman. > > Fixes: 9b52b17ba5 ("configure: Allow to build tools without pixman") > > ... sorry, I missed that there is

Re: [PULL 3/3] configure: Allow to build tools without pixman

2020-08-14 Thread Philippe Mathieu-Daudé
On 8/13/20 9:07 PM, Thomas Huth wrote: > On 12/08/2020 18.26, Philippe Mathieu-Daudé wrote: >> Hi, >> >> On 7/24/20 6:42 PM, Gerd Hoffmann wrote: >>> From: Thomas Huth >>> >>> If pixman is not installed, it is currently not possible to run: >>> >>> .../configure --disable-system --enable-tools

Re: QEMU latest release riscv32-softmmu not working

2020-08-14 Thread Philippe Mathieu-Daudé
Hi Arman, On 8/13/20 10:20 PM, arman avetisyan wrote: > Hi QEMU Team, having issue running riscv32-softmmu Cc'ing this to the QEMU RISCV mailing list. > > After running riscv32-softmmu supplying custom linux build it crashes > and complains about rom segments overlaping > > $

[Bug 1840719] Re: win98se floppy fails to boot with isapc machine

2020-08-14 Thread Roman Bolshakov
** Changed in: qemu Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1840719 Title: win98se floppy fails to boot with isapc machine Status in QEMU: Fix

<    1   2   3   4