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

2022-01-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". Signed-off-by: Paolo Bonzini --- tests/check-block.sh | 6 ++-- tests/qemu-iotests/check | 6 ++-- tests/qemu-iotest

[PATCH 3/4] qemu-iotests: require at least an argument to check-block.sh

2022-01-15 Thread Paolo Bonzini
This is anyway how check-block.sh is used in practice, and by removing the list of formats in the script we avoid duplication between meson.build and check-block.sh. Signed-off-by: Paolo Bonzini --- tests/check-block.sh | 21 + 1 file changed, 9 insertions(+), 12 deletions

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

2022-01-15 Thread Paolo Bonzini
ts a test as skipped. Alternatively, in the future we could make it produce TAP output, which is consistent with all other "make check" tests. Signed-off-by: Paolo Bonzini --- meson.build| 6 +++--- scripts/mtest2make.py | 10 +- tests

[PATCH 1/4] scripts/mtest2make: add support for SPEED=thorough

2022-01-15 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- meson.build | 5 +++-- scripts/mtest2make.py | 10 +++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/meson.build b/meson.build index 762d7cee85..c9004bd25e 100644 --- a/meson.build +++ b/meson.build @@ -3,8 +3,9 @@ project

[PATCH 0/4] make check-block a meson test

2022-01-15 Thread Paolo Bonzini
This series makes "meson test" run the block layer tests, reporting their outcome in the same way as the other TAP tests. Based-on: <20211223183933.1497037-1-vsement...@virtuozzo.com> Paolo Bonzini (4): scripts/mtest2make: add support for SPEED=thorough build: make check-bl

[PATCH 0/4] make check-block a meson test

2022-01-15 Thread Paolo Bonzini
This series makes "meson test" run the block layer tests, reporting their outcome in the same way as the other TAP tests. Based-on: <20211223183933.1497037-1-vsement...@virtuozzo.com> Paolo Bonzini (4): scripts/mtest2make: add support for SPEED=thorough build: make check-bl

Re: [PATCH v2 0/3] Support fd-based KVM stats

2022-01-15 Thread Paolo Bonzini
On 11/19/21 20:51, Mark Kanda wrote: v2: [Paolo] - generalize the interface - add support for querying stat schema and instances - add additional HMP semantic processing for a few exponent/unit combinations (related to seconds and bytes) This patchset adds QEMU support for querying fd-based

Re: [PATCH] build-sys: fix a meson deprecation warning

2022-01-15 Thread Paolo Bonzini
On 1/13/22 17:21, marcandre.lur...@redhat.com wrote: From: Marc-André Lureau WARNING: Deprecated features used: * 0.56.0: {'meson.source_root'} Signed-off-by: Marc-André Lureau Reported-by: Peter Maydell --- tests/qtest/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH 1/2] build-sys: fix undefined ARCH error

2022-01-15 Thread Paolo Bonzini
On 1/14/22 09:43, marcandre.lur...@redhat.com wrote: From: Marc-André Lureau ../qga/meson.build:76:4: ERROR: Key ARCH is not in the dictionary. Fixes commit 823eb013 ("configure, meson: move ARCH to meson.build") Signed-off-by: Marc-André Lureau --- qga/meson.build | 2 +- 1 file

Re: [PATCH 6/6] tests/qtest/libqos: Add pci-arm and add a pci-arm producer in arm-virt machine

2022-01-15 Thread Paolo Bonzini
On 1/10/22 22:19, Eric Auger wrote: Up to now the virt-machine node contains a virtio-mmio node. However no driver produces any PCI interface node. Hence, PCI tests cannot be run with aarch64 binary. Add a GPEX driver node that produces a pci interface node. This latter then can be consumed by

Re: /usr/shared/qemu binaries

2022-01-13 Thread Paolo Bonzini
On 1/12/22 14:56, Peter Maydell wrote: Those are UEFI firmware images which are suitable for using with the arm/aarch64 "virt" board. They're only used if the user specifically asks to use them on the command line (eg with "-drive if=pflash,format=raw,file=pc-bios/edk2-aarch64-code.fd" or

[PULL v5 00/18] Build system and KVM changes for 2021-12-23

2022-01-12 Thread Paolo Bonzini
v4->v5: remove --enable/disable-xfsctl Maxim Levitsky (1): KVM: use KVM_{GET|SET}_SREGS2 when supported. Paolo Bonzini (14): meson: reuse common_user_inc when building files specific to user-mode emulators user: move common-user includes to a subdirect

[PULL v5 04/18] block/file-posix: Simplify the XFS_IOC_DIOINFO handling

2022-01-12 Thread Paolo Bonzini
e running configure. Thus let's simplify this by providing the ioctl definition on our own, so we can completely get rid of the header dependency and thus the related code in the configure script. Suggested-by: Paolo Bonzini Signed-off-by: Thomas Huth Message-Id: <20211215125824.250091-1-th.

[PULL 15/18] tests/tcg: Fix target-specific Makefile variables path for user-mode

2022-01-10 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Commit 812b31d3f91 refactor missed to update this path. Fixes: 812b31d3f91 ("configs: rename default-configs to configs and reorganise") Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20211226001541.3807919-1-f4...@amsat.org> Signed-off-b

[PULL 14/18] KVM: x86: ignore interrupt_bitmap field of KVM_GET/SET_SREGS

2022-01-10 Thread Paolo Bonzini
This is unnecessary, because the interrupt would be retrieved and queued anyway by KVM_GET_VCPU_EVENTS and KVM_SET_VCPU_EVENTS respectively, and it makes the flow more similar to the one for KVM_GET/SET_SREGS2. Signed-off-by: Paolo Bonzini --- target/i386/kvm/kvm.c | 24

[PULL 13/18] KVM: use KVM_{GET|SET}_SREGS2 when supported.

2022-01-10 Thread Paolo Bonzini
From: Maxim Levitsky This allows to make PDPTRs part of the migration stream and thus not reload them after migration which is against X86 spec. Signed-off-by: Maxim Levitsky Message-Id: <20211101132300.192584-2-mlevi...@redhat.com> Signed-off-by: Paolo Bonzini --- target/i386

[PULL 18/18] meson: reenable filemonitor-inotify compilation

2022-01-10 Thread Paolo Bonzini
test-util-filemonitor. Fixes: a620fbe9ac ("configure: convert compiler tests to meson, part 5") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/800 Signed-off-by: Volker Rümelin Message-Id: <20220107133514.7785-1-vr_q...@t-online.de> Signed-off-by: Paolo Bonzini --- tests/uni

[PULL 12/18] meson: add comments in the target-specific flags section

2022-01-10 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- meson.build | 5 + 1 file changed, 5 insertions(+) diff --git a/meson.build b/meson.build index 36fc720ba3..6489ff8425 100644 --- a/meson.build +++ b/meson.build @@ -238,6 +238,7 @@ endif # Target-specific checks and dependencies

[PULL 11/18] configure, meson: move config-poison.h to meson

2022-01-10 Thread Paolo Bonzini
This ensures that the file is regenerated properly whenever config-target.h or config-devices.h files change. Signed-off-by: Paolo Bonzini --- Makefile | 2 +- configure | 11 --- meson.build | 12 scripts/make

[PULL 08/18] configure: parse --enable/--disable-strip automatically, flip default

2022-01-10 Thread Paolo Bonzini
other package that has a configure script. Signed-off-by: Paolo Bonzini --- configure | 10 +- pc-bios/s390-ccw/Makefile | 2 -- scripts/meson-buildoptions.py | 21 ++--- scripts/meson-buildoptions.sh | 3 +++ 4 files changed, 18 insertions(+), 18

[PULL 09/18] configure: move non-command-line variables away from command-line parsing section

2022-01-10 Thread Paolo Bonzini
This makes it easier to identify candidates for moving to Meson. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- configure | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/configure b/configure index be05bcf856..56c113bd83 100755

[PULL 04/18] block/file-posix: Simplify the XFS_IOC_DIOINFO handling

2022-01-10 Thread Paolo Bonzini
e running configure. Thus let's simplify this by providing the ioctl definition on our own, so we can completely get rid of the header dependency and thus the related code in the configure script. Suggested-by: Paolo Bonzini Signed-off-by: Thomas Huth Message-Id: <20211215125824.250091-1-th.

[PULL 03/18] meson: cleanup common-user/ build

2022-01-10 Thread Paolo Bonzini
/ is available when building user mode emulators. Tested-by: Richard Henderson Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- common-user/meson.build | 2 +- meson.build | 13 + 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/common-user/meson.build

[PULL 02/18] user: move common-user includes to a subdirectory of {bsd, linux}-user/

2022-01-10 Thread Paolo Bonzini
Avoid polluting the compilation of common-user/ with local include files; making an include file available to common-user/ should be a deliberate decision in order to keep a clear interface that can be used by both bsd-user/ and linux-user/. Reviewed-by: Richard Henderson Signed-off-by: Paolo

[PULL v4 00/18] Build system and KVM changes for 2021-12-23

2022-01-10 Thread Paolo Bonzini
Maxim Levitsky (1): KVM: use KVM_{GET|SET}_SREGS2 when supported. Paolo Bonzini (14): meson: reuse common_user_inc when building files specific to user-mode emulators user: move common-user includes to a subdirectory of {bsd,linux

[PULL 01/18] meson: reuse common_user_inc when building files specific to user-mode emulators

2022-01-10 Thread Paolo Bonzini
Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 53065e96ec..de111d6fa1 100644 --- a/meson.build +++ b/meson.build @@ -2919,6 +2919,7 @@ foreach target : target_dirs

[PULL 17/18] meson: build all modules by default

2022-01-10 Thread Paolo Bonzini
tests. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/801 Tested-by: Li Zhang Signed-off-by: Paolo Bonzini --- meson.build | 4 +++- tests/qtest/meson.build | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 6489ff8425

[PULL 07/18] configure, makefile: remove traces of really old files

2022-01-10 Thread Paolo Bonzini
These files have been removed for more than year in the best case, or for more than ten years for some really old TCG files. Remove any traces of it. Acked-by: Richard Henderson Signed-off-by: Paolo Bonzini --- Makefile | 11 --- configure | 9 - 2 files changed, 4 insertions

[PULL 16/18] configure: do not create roms/seabios/config.mak if SeaBIOS not present

2022-01-10 Thread Paolo Bonzini
ot be used. Signed-off-by: Paolo Bonzini --- configure | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 0026388343..e1a31fb332 100755 --- a/configure +++ b/configure @@ -3704,7 +3704,8 @@ export target_list source_path use_containers cpu $source_

[PULL 06/18] configure: do not set bsd_user/linux_user early

2022-01-10 Thread Paolo Bonzini
architectures. This probably will change once safe signals are brought over from linux-user. Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- configure | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/configure b/configure index

[PULL 10/18] meson: build contrib/ executables after generated headers

2022-01-10 Thread Paolo Bonzini
This will be needed as soon as config-poison.h moves from configure to a meson custom_target (which is built at "ninja" time). Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- contrib/elf2dmp/meson.build| 2 +- contrib/ivshmem-client/meson.build | 2 +

[PULL 05/18] configure: simplify creation of plugin symbol list

2022-01-10 Thread Paolo Bonzini
: for Darwin, move the the creation of the Darwin-formatted symbols to meson; for ELF, use the file in the source path directly and switch from -Wl, to -Xlinker to not break weird paths that include a comma. Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- configure | 81

Re: [PATCH] meson: reenable filemonitor-inotify compilation

2022-01-07 Thread Paolo Bonzini
On 1/7/22 14:35, Volker Rümelin wrote: Reenable util/filemonitor-inotify compilation. Compilation was disabled when commit a620fbe9ac ("configure: convert compiler tests to meson, part 5") moved CONFIG_INOTIFY1 from config-host.mak to config-host.h. This fixes the usb-mtp device and reenables

Re: test_isa_retry_flush() in ide-test.c

2022-01-07 Thread Paolo Bonzini
On 1/7/22 17:01, Thomas Huth wrote:  Hi John! I just notice that test_isa_retry_flush() is not doing anything useful anymore: It likely was supposed to run the test_retry_flush() function with the "isapc" machine type, but actually test_retry_flush() ignores the machine option parameter

Re: [PATCH] configure: Silence warnings about missing roms/seabios directory

2022-01-07 Thread Paolo Bonzini
On 1/7/22 13:15, Thomas Huth wrote: The configure script tries to always create a config.mak file in the roms/seabios/ subdirectory. However, since commit 5dce7b8d8ce6 ("configure: remove DIRS"), this subdirectory is not created anymore if the git submodule hasn't been checked out. Thus let's

Re: [PATCH] hw/i386: Add the possibility to disable the 'isapc' machine

2022-01-07 Thread Paolo Bonzini
;& qtest_has_machine("isapc")) { qtest_add_data_func("cdrom/boot/isapc", "-M isapc " "-drive if=ide,media=cdrom,file=", test_cdboot); } Acked-by: Paolo Bonzini

[PATCH] meson: build all modules by default

2022-01-07 Thread Paolo Bonzini
tests. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/801 Signed-off-by: Paolo Bonzini --- meson.build | 4 +++- tests/qtest/meson.build | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 6489ff8425..703eefea13 100644

[PATCH] configure: do not create roms/seabios/config.mak if SeaBIOS not present

2022-01-07 Thread Paolo Bonzini
ot be used. Signed-off-by: Paolo Bonzini --- configure | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 0026388343..e1a31fb332 100755 --- a/configure +++ b/configure @@ -3704,7 +3704,8 @@ export target_list source_path use_containers cpu $source_

[PULL 14/15] KVM: x86: ignore interrupt_bitmap field of KVM_GET/SET_SREGS

2022-01-04 Thread Paolo Bonzini
This is unnecessary, because the interrupt would be retrieved and queued anyway by KVM_GET_VCPU_EVENTS and KVM_SET_VCPU_EVENTS respectively, and it makes the flow more similar to the one for KVM_GET/SET_SREGS2. Signed-off-by: Paolo Bonzini --- target/i386/kvm/kvm.c | 24

[PULL 12/15] meson: add comments in the target-specific flags section

2022-01-04 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- meson.build | 5 + 1 file changed, 5 insertions(+) diff --git a/meson.build b/meson.build index 36fc720ba3..6489ff8425 100644 --- a/meson.build +++ b/meson.build @@ -238,6 +238,7 @@ endif # Target-specific checks and dependencies

[PULL 10/15] meson: build contrib/ executables after generated headers

2022-01-04 Thread Paolo Bonzini
This will be needed as soon as config-poison.h moves from configure to a meson custom_target (which is built at "ninja" time). Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- contrib/elf2dmp/meson.build| 2 +- contrib/ivshmem-client/meson.build | 2 +

[PULL 15/15] tests/tcg: Fix target-specific Makefile variables path for user-mode

2022-01-04 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Commit 812b31d3f91 refactor missed to update this path. Fixes: 812b31d3f91 ("configs: rename default-configs to configs and reorganise") Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20211226001541.3807919-1-f4...@amsat.org> Signed-off-b

[PULL 09/15] configure: move non-command-line variables away from command-line parsing section

2022-01-04 Thread Paolo Bonzini
This makes it easier to identify candidates for moving to Meson. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- configure | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/configure b/configure index 9e01b2278e..e3d603d381 100755

[PULL 13/15] KVM: use KVM_{GET|SET}_SREGS2 when supported.

2022-01-04 Thread Paolo Bonzini
From: Maxim Levitsky This allows to make PDPTRs part of the migration stream and thus not reload them after migration which is against X86 spec. Signed-off-by: Maxim Levitsky Message-Id: <20211101132300.192584-2-mlevi...@redhat.com> Signed-off-by: Paolo Bonzini --- target/i386

[PULL 11/15] configure, meson: move config-poison.h to meson

2022-01-04 Thread Paolo Bonzini
This ensures that the file is regenerated properly whenever config-target.h or config-devices.h files change. Signed-off-by: Paolo Bonzini --- Makefile | 2 +- configure | 11 --- meson.build | 12 scripts/make

[PULL 07/15] configure, makefile: remove traces of really old files

2022-01-04 Thread Paolo Bonzini
These files have been removed for more than year in the best case, or for more than ten years for some really old TCG files. Remove any traces of it. Acked-by: Richard Henderson Signed-off-by: Paolo Bonzini --- Makefile | 11 --- configure | 9 - 2 files changed, 4 insertions

[PULL 03/15] meson: cleanup common-user/ build

2022-01-04 Thread Paolo Bonzini
/ is available when building user mode emulators. Tested-by: Richard Henderson Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- common-user/meson.build | 2 +- meson.build | 13 + 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/common-user/meson.build

[PULL 08/15] configure: parse --enable/--disable-strip automatically, flip default

2022-01-04 Thread Paolo Bonzini
other package that has a configure script. Signed-off-by: Paolo Bonzini --- configure | 10 +- pc-bios/s390-ccw/Makefile | 2 -- scripts/meson-buildoptions.py | 21 ++--- scripts/meson-buildoptions.sh | 3 +++ 4 files changed, 18 insertions(+), 18

[PULL 06/15] configure: do not set bsd_user/linux_user early

2022-01-04 Thread Paolo Bonzini
architectures. This probably will change once safe signals are brought over from linux-user. Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- configure | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/configure b/configure index

[PULL 05/15] configure: simplify creation of plugin symbol list

2022-01-04 Thread Paolo Bonzini
: for Darwin, move the the creation of the Darwin-formatted symbols to meson; for ELF, use the file in the source path directly and switch from -Wl, to -Xlinker to not break weird paths that include a comma. Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- configure | 80

[PULL 01/15] meson: reuse common_user_inc when building files specific to user-mode emulators

2022-01-04 Thread Paolo Bonzini
Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 53065e96ec..de111d6fa1 100644 --- a/meson.build +++ b/meson.build @@ -2919,6 +2919,7 @@ foreach target : target_dirs

[PULL v3 00/15] Build system and KVM changes for 2021-12-23

2022-01-04 Thread Paolo Bonzini
I dropped the tricore Dockerfile change because it is still broken occasionally with the patch. Maxim Levitsky (1): KVM: use KVM_{GET|SET}_SREGS2 when supported. Paolo Bonzini (12): meson: reuse common_user_inc when

[PULL 04/15] block/file-posix: Simplify the XFS_IOC_DIOINFO handling

2022-01-04 Thread Paolo Bonzini
e running configure. Thus let's simplify this by providing the ioctl definition on our own, so we can completely get rid of the header dependency and thus the related code in the configure script. Suggested-by: Paolo Bonzini Signed-off-by: Thomas Huth Message-Id: <20211215125824.250091-1-th.

[PULL 02/15] user: move common-user includes to a subdirectory of {bsd, linux}-user/

2022-01-04 Thread Paolo Bonzini
Avoid polluting the compilation of common-user/ with local include files; making an include file available to common-user/ should be a deliberate decision in order to keep a clear interface that can be used by both bsd-user/ and linux-user/. Reviewed-by: Richard Henderson Signed-off-by: Paolo

Re: QEMU CI failure of cross-i386-* targets (meson picks wrong glib for native target)

2021-12-24 Thread Paolo Bonzini
Is the configure script setting $cross_compile to yes? That will decide whether meson getting a --cross-file or a --native-file option, and consequently whether it treats the host and build machines as equal or different. Paolo Il ven 24 dic 2021, 12:09 Alessandro Di Federico ha scritto: > Hi

Re: [PATCH v3 kvm/queue 06/16] KVM: Implement fd-based memory using MEMFD_OPS interfaces

2021-12-23 Thread Paolo Bonzini
On 12/23/21 19:34, Sean Christopherson wrote: select HAVE_KVM_PM_NOTIFIER if PM + select MEMFD_OPS MEMFD_OPS is a weird Kconfig name given that it's not just memfd() that can implement the ops. Or, it's kvm that implements them to talk to memfd? Paolo

[PULL 13/15] meson: add comments in the target-specific flags section

2021-12-23 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- meson.build | 5 + 1 file changed, 5 insertions(+) diff --git a/meson.build b/meson.build index a61eb7cee5..3519ed51e3 100644 --- a/meson.build +++ b/meson.build @@ -233,6 +233,7 @@ endif # Target-specific checks and dependencies

[PULL 12/15] configure, meson: move config-poison.h to meson

2021-12-23 Thread Paolo Bonzini
This ensures that the file is regenerated properly whenever config-target.h or config-devices.h files change. Signed-off-by: Paolo Bonzini --- Makefile | 2 +- configure | 11 --- meson.build | 12 scripts/make

[PULL 11/15] meson: build contrib/ executables after generated headers

2021-12-23 Thread Paolo Bonzini
This will be needed as soon as config-poison.h moves from configure to a meson custom_target (which is built at "ninja" time). Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- contrib/elf2dmp/meson.build| 2 +- contrib/ivshmem-client/meson.build | 2 +

[PULL 09/15] configure: parse --enable/--disable-strip automatically, flip default

2021-12-23 Thread Paolo Bonzini
other package that has a configure script. Signed-off-by: Paolo Bonzini --- configure | 10 +- pc-bios/s390-ccw/Makefile | 2 -- scripts/meson-buildoptions.py | 21 ++--- scripts/meson-buildoptions.sh | 3 +++ 4 files changed, 18 insertions(+), 18

[PULL 10/15] configure: move non-command-line variables away from command-line parsing section

2021-12-23 Thread Paolo Bonzini
This makes it easier to identify candidates for moving to Meson. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- configure | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/configure b/configure index 302d58102b..8eb8e4c2cc 100755

[PULL 06/15] configure: simplify creation of plugin symbol list

2021-12-23 Thread Paolo Bonzini
: for Darwin, move the the creation of the Darwin-formatted symbols to meson; for ELF, use the file in the source path directly and switch from -Wl, to -Xlinker to not break weird paths that include a comma. Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- configure | 80

[PULL 05/15] block/file-posix: Simplify the XFS_IOC_DIOINFO handling

2021-12-23 Thread Paolo Bonzini
e running configure. Thus let's simplify this by providing the ioctl definition on our own, so we can completely get rid of the header dependency and thus the related code in the configure script. Suggested-by: Paolo Bonzini Signed-off-by: Thomas Huth Message-Id: <20211215125824.250091-1-th.

[PULL 08/15] configure, makefile: remove traces of really old files

2021-12-23 Thread Paolo Bonzini
These files have been removed for more than year in the best case, or for more than ten years for some really old TCG files. Remove any traces of it. Acked-by: Richard Henderson Signed-off-by: Paolo Bonzini --- Makefile | 11 --- configure | 9 - 2 files changed, 4 insertions

[PULL 03/15] user: move common-user includes to a subdirectory of {bsd, linux}-user/

2021-12-23 Thread Paolo Bonzini
Avoid polluting the compilation of common-user/ with local include files; making an include file available to common-user/ should be a deliberate decision in order to keep a clear interface that can be used by both bsd-user/ and linux-user/. Reviewed-by: Richard Henderson Signed-off-by: Paolo

[PULL 15/15] KVM: x86: ignore interrupt_bitmap field of KVM_GET/SET_SREGS

2021-12-23 Thread Paolo Bonzini
This is unnecessary, because the interrupt would be retrieved and queued anyway by KVM_GET_VCPU_EVENTS and KVM_SET_VCPU_EVENTS respectively, and it makes the flow more similar to the one for KVM_GET/SET_SREGS2. Signed-off-by: Paolo Bonzini --- target/i386/kvm/kvm.c | 24

[PULL 04/15] meson: cleanup common-user/ build

2021-12-23 Thread Paolo Bonzini
/ is available when building user mode emulators. Tested-by: Richard Henderson Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- common-user/meson.build | 2 +- meson.build | 13 + 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/common-user/meson.build

[PULL 07/15] configure: do not set bsd_user/linux_user early

2021-12-23 Thread Paolo Bonzini
architectures. This probably will change once safe signals are brought over from linux-user. Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- configure | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/configure b/configure index

[PULL 01/15] docker: include bison in debian-tricore-cross

2021-12-23 Thread Paolo Bonzini
uot; after the double dash). Work around by installing it in the container. Cc: Alex Bennée Resolves: https://gitlab.com/qemu-project/qemu/-/issues/596 Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- tests/docker/dockerfiles/debian-tricore-cross.

[PULL 14/15] KVM: use KVM_{GET|SET}_SREGS2 when supported.

2021-12-23 Thread Paolo Bonzini
From: Maxim Levitsky This allows to make PDPTRs part of the migration stream and thus not reload them after migration which is against X86 spec. Signed-off-by: Maxim Levitsky Message-Id: <20211101132300.192584-2-mlevi...@redhat.com> Signed-off-by: Paolo Bonzini --- target/i386

[PULL 00/15] Build system and KVM changes for 2021-12-23

2021-12-23 Thread Paolo Bonzini
occasional container build failures for debian-tricore-cross Maxim Levitsky (1): KVM: use KVM_{GET|SET}_SREGS2 when supported. Paolo Bonzini (13): docker: include bison in debian-tricore-cross meson: reuse

[PULL 02/15] meson: reuse common_user_inc when building files specific to user-mode emulators

2021-12-23 Thread Paolo Bonzini
Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index f45ecf31bd..b0af02b805 100644 --- a/meson.build +++ b/meson.build @@ -2897,6 +2897,7 @@ foreach target : target_dirs

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

2021-12-23 Thread Paolo Bonzini
" suite. The rules for .tap output are replaced by JUnit XML; GitLab is able to parse that output and present it in the CI pipeline report. Signed-off-by: Paolo Bonzini --- Makefile | 3 +- meson.build | 5 +- scripts/mtest2make.py | 112 ++

[PULL 0/1] "make check" switch to meson test harness

2021-12-23 Thread Paolo Bonzini
quot;meson test". -------- Paolo Bonzini (1): build: use "meson test" as the test harness Makefile | 3 +- meson.build | 5 +- scripts/mtest2make.py | 112 ++- scripts/tap-driver.pl | 379 --

Re: [PATCH 3/3] meson: generate trace points for qmp commands

2021-12-22 Thread Paolo Bonzini
Il mar 21 dic 2021, 20:35 Vladimir Sementsov-Ogievskiy < vsement...@virtuozzo.com> ha scritto: --- a/trace/meson.build +++ b/trace/meson.build @@ -2,10 +2,14 @@ specific_ss.add(files('control-target.c')) trace_events_files = [] -foreach dir : [ '.' ] + trace_events_subdirs - trace_events_file

Re: [PATCH 3/3] meson: cleanup common-user/ build

2021-12-22 Thread Paolo Bonzini
Il mar 21 dic 2021, 21:32 Richard Henderson ha scritto: > On 12/21/21 8:33 AM, Paolo Bonzini wrote: > > Do not go through a static_library, which is only necessary in order to > reuse > > some source files between emulators and tests. > > That's not true, is it. Anyway

[PATCH 2/3] user: move common-user includes to a subdirectory of {bsd, linux}-user/

2021-12-21 Thread Paolo Bonzini
Avoid polluting the compilation of common-user/ with local include files; making an include file available to common-user/ should be a deliberate decision in order to keep a clear interface that can be used by both bsd-user/ and linux-user/. Signed-off-by: Paolo Bonzini --- bsd-user

[PATCH 3/3] meson: cleanup common-user/ build

2021-12-21 Thread Paolo Bonzini
is that the include_directories under bsd-user/include/ and linux-user/include/ are now enabled for all targets rather than only user mode emulators. This however is not different from how include/sysemu/ is available when building user mode emulators. Signed-off-by: Paolo Bonzini --- common-user

[PATCH 1/3] meson: reuse common_user_inc when building files specific to user-mode emulators

2021-12-21 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index f45ecf31bd..b0af02b805 100644 --- a/meson.build +++ b/meson.build @@ -2897,6 +2897,7 @@ foreach target : target_dirs else abi = config_target

[PATCH 0/3] build: some cleanups for common-user/ infrastructure

2021-12-21 Thread Paolo Bonzini
A belated review of the patches that introduced common-user/. Limiting the interface that it expects from bsd-user/ and linux-user/ to an include/ subdirectory, and simplifying the mesonry that builds the new directory. Paolo Bonzini (3): meson: reuse common_user_inc when building files

Re: [PATCH] vl: Add -set options to device opts dict when using JSON syntax for -device

2021-12-21 Thread Paolo Bonzini
On 12/21/21 13:58, Markus Armbruster wrote: Is this a regression? I suspect commit 5dacda5167 "vl: Enable JSON syntax for -device" (v6.2.0). Obviously not a regression: everything that used to work still works. FWIW I think -set should be deprecated. I'm not aware of any particularly

[PATCH] docker: include bison in debian-tricore-cross

2021-12-21 Thread Paolo Bonzini
uot; after the double dash). Work around by installing it in the container. Cc: Alex Bennée Signed-off-by: Paolo Bonzini --- tests/docker/dockerfiles/debian-tricore-cross.docker | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/docker/dockerfiles/debian-tricore-cross.docker b/tests/docker/d

[PATCH 8/8] meson: add comments in the target-specific flags section

2021-12-21 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- meson.build | 5 + 1 file changed, 5 insertions(+) diff --git a/meson.build b/meson.build index 09ee427ca4..0a6d57125f 100644 --- a/meson.build +++ b/meson.build @@ -233,6 +233,7 @@ endif # Target-specific checks and dependencies

[PATCH 5/8] configure: move non-command-line variables away from command-line parsing section

2021-12-21 Thread Paolo Bonzini
This makes it easier to identify candidates for moving to Meson. Signed-off-by: Paolo Bonzini --- configure | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/configure b/configure index 40dd6e8d1b..810bc36490 100755 --- a/configure +++ b/configure @@ -308,16

[PATCH 7/8] configure, meson: move config-poison.h to meson

2021-12-21 Thread Paolo Bonzini
This ensures that the file is regenerated properly whenever config-target.h or config-devices.h files change. Signed-off-by: Paolo Bonzini --- Makefile | 2 +- configure | 11 --- meson.build | 12 scripts/make

[PATCH 3/8] configure, makefile: remove traces of really old files

2021-12-21 Thread Paolo Bonzini
These files have been removed for more than year in the best case, or for more than ten years for some really old TCG files. Remove any traces of it. Signed-off-by: Paolo Bonzini --- Makefile | 11 --- configure | 9 - 2 files changed, 4 insertions(+), 16 deletions(-) diff

[PATCH 6/8] meson: build contrib/ executables after generated headers

2021-12-21 Thread Paolo Bonzini
This will be needed as soon as config-poison.h moves from configure to a meson custom_target (which is built at "ninja" time). Signed-off-by: Paolo Bonzini --- contrib/elf2dmp/meson.build| 2 +- contrib/ivshmem-client/meson.build | 2 +- contrib/ivshmem-server/meson

[PATCH 0/8] Next round of configure/meson cleanups

2021-12-21 Thread Paolo Bonzini
Includes v2 of patches from the previous round, and new patches 3-8. Paolo Paolo Bonzini (8): configure: simplify creation of plugin symbol list configure: do not set bsd_user/linux_user early configure, makefile: remove traces of really old files configure: parse --enable/--disable

[PATCH 4/8] configure: parse --enable/--disable-strip automatically, flip default

2021-12-21 Thread Paolo Bonzini
other package that has a configure script. Signed-off-by: Paolo Bonzini --- configure | 10 +- pc-bios/s390-ccw/Makefile | 2 -- scripts/meson-buildoptions.py | 21 ++--- scripts/meson-buildoptions.sh | 3 +++ 4 files changed, 18 insertions(+), 18

[PATCH 2/8] configure: do not set bsd_user/linux_user early

2021-12-21 Thread Paolo Bonzini
architectures. This probably will change once safe signals are brought over from linux-user. Signed-off-by: Paolo Bonzini --- configure | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/configure b/configure index 1bce9635d9..6dafbcd362 100755

[PATCH 1/8] configure: simplify creation of plugin symbol list

2021-12-21 Thread Paolo Bonzini
: for Darwin, move the the creation of the Darwin-formatted symbols to meson; for ELF, use the file in the source path directly and switch from -Wl, to -Xlinker to not break weird paths that include a comma. Signed-off-by: Paolo Bonzini --- configure | 80

[PATCH] KVM: x86: ignore interrupt_bitmap field of KVM_GET/SET_SREGS

2021-12-21 Thread Paolo Bonzini
This is unnecessary, because the interrupt would be retrieved and queued anyway by KVM_GET_VCPU_EVENTS and KVM_SET_VCPU_EVENTS respectively, and it makes the flow more similar to the one for KVM_GET/SET_SREGS2. Signed-off-by: Paolo Bonzini --- target/i386/kvm/kvm.c | 22

[PULL 15/16] tests/qtest/fuzz-megasas-test: Add test for GitLab issue #521

2021-12-19 Thread Paolo Bonzini
/fuzz-megasas-test - too few tests run (expected 2, got 1) Suggested-by: Alexander Bulekov Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Darren Kenny Message-Id: <2029201141.532377-3-phi...@redhat.com> Signed-off-by: Paolo Bonzini --- tests/qtest/fuzz-megasas-test.

[PULL 13/16] hw/scsi: Fix scsi_bus_init_named() docstring

2021-12-19 Thread Paolo Bonzini
...@amsat.org> Reviewed-by: Peter Maydell Signed-off-by: Paolo Bonzini --- include/hw/scsi/scsi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hw/scsi/scsi.h b/include/hw/scsi/scsi.h index a567a5ed86..2ef80af6dc 100644 --- a/include/hw/scsi/scsi.h +++ b/include/hw/scsi/

[PULL 16/16] hw/i386/vmmouse: Require 'i8042' property to be set

2021-12-19 Thread Paolo Bonzini
hieu-Daudé Message-Id: <20211201223253.36080-1-f4...@amsat.org> Signed-off-by: Paolo Bonzini --- hw/i386/vmmouse.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/i386/vmmouse.c b/hw/i386/vmmouse.c index 3d66368286..a56c185f15 100644 --- a/hw/i386/vmmouse.c +++ b/hw/i386/vmmouse.c @

[PULL 10/16] meson: reenable test-fdmon-epoll

2021-12-19 Thread Paolo Bonzini
The test was disabled when CONFIG_EPOLL_CREATE1 was moved out of config-host.mak. Fix the condition. Signed-off-by: Paolo Bonzini --- tests/unit/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/meson.build b/tests/unit/meson.build index acac3622ed

[PULL 09/16] configure: remove DIRS

2021-12-19 Thread Paolo Bonzini
Bennée Tested-by: Alex Bennée Signed-off-by: Paolo Bonzini --- configure | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/configure b/configure index ba85bbb54b..8ccfe51673 100755 --- a/configure +++ b/configure @@ -3762,7 +3762,6 @@ if test "$safe_stack&qu

[PULL 11/16] cpu: remove unnecessary #ifdef CONFIG_TCG

2021-12-19 Thread Paolo Bonzini
"if (tcg_enabled())" allows elision of the code inside it; we only need the prototype to exist, so that the code compile even for the --disable-tcg case. Signed-off-by: Paolo Bonzini --- cpu.c | 5 - include/exec/cpu-all.h | 2 -- 2 files changed, 7 deletions(-)

[PULL 14/16] hw/scsi/megasas: Fails command if SGL buffer overflows

2021-12-19 Thread Paolo Bonzini
-off-by: Philippe Mathieu-Daudé Reviewed-by: Darren Kenny Message-Id: <2029201141.532377-2-phi...@redhat.com> Signed-off-by: Paolo Bonzini --- hw/scsi/megasas.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/scsi/megasas.c b/hw/scsi/megasas.c index 4ff51221d4..8f35784100

[PULL 07/16] configure, meson: move ARCH to meson.build

2021-12-19 Thread Paolo Bonzini
$ARCH and the HOST_* symbols are only used by the QEMU build; configure uses $cpu instead. Remove it from config-host.mak. Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- configure | 21 - meson.build | 26 +- 2 files changed, 21

  1   2   3   4   5   6   7   8   9   10   >