Re: [PATCH 18/28] target/i386: Remove MMU_MODE{0,1,2}_SUFFIX

2019-12-12 Thread Paolo Bonzini
On 12/12/19 05:00, Richard Henderson wrote: > The functions generated by these macros are unused. > > Cc: Paolo Bonzini > Cc: Eduardo Habkost > Signed-off-by: Richard Henderson > --- > target/i386/cpu.h | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/target/i386/cpu.h b/target/i386

Re: [PATCH] object: Improve documentation of interfaces

2019-12-12 Thread Paolo Bonzini
On 11/12/19 14:32, Greg Kurz wrote: > QOM interfaces allow a limited form of multiple inheritance, at the > condition of being stateless. That is, they cannot be instantiated > and a pointer to an interface shouldn't be dereferenceable in any way. > This is achieved by making the QOM instance type

Re: [PATCH v3 12/20] target/arm: generate xml description of our SVE registers

2019-12-12 Thread Alex Bennée
Richard Henderson writes: > On 12/11/19 9:05 AM, Alex Bennée wrote: >> +static struct TypeSize vec_lanes[] = { > > const. > >> +case 51: >> +return gdb_get_reg64(buf, (cpu->env.vfp.zcr_el[1] & 0xf) + 1); > > You need to use sve_zcr_len_for_el to get the effective vq. > Also, I thoug

[PATCH v3 1/1] display/bochs-display: fix memory leak

2019-12-12 Thread Cameron Esfahani via
Fix memory leak in bochs_display_update(). Leaks 304 bytes per frame. Fixes: 33ebad54056 Signed-off-by: Cameron Esfahani Reviewed-by: Philippe Mathieu-Daudé --- hw/display/bochs-display.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/display/bochs-display.c b/hw/display/bochs-displa

[PATCH v3 0/1] Fix bochs memory leak

2019-12-12 Thread Cameron Esfahani via
Fix a small memory leak in the Bochs display driver. Each frame would leak about 304 bytes. v2: Add missing signed-off-by line. v3: Add reviewed-by and fixes lines. Cameron Esfahani (1): display/bochs-display: fix memory leak hw/display/bochs-display.c | 2 ++ 1 file changed, 2 insertions(+)

Re: [PATCH v3 2/3] spapr: Add NVDIMM device support

2019-12-12 Thread Shivaprasad G Bhat
On 12/11/2019 01:35 PM, Igor Mammedov wrote: On Wed, 11 Dec 2019 09:44:11 +0530 Shivaprasad G Bhat wrote: On 12/06/2019 07:22 AM, David Gibson wrote: On Wed, Nov 27, 2019 at 09:50:54AM +0530, Bharata B Rao wrote: On Fri, Nov 22, 2019 at 10:42 AM David Gibson wrote: Ok. A number of quer

Re: [PATCH 23/28] target/m68k: Use cpu_*_mmuidx_ra instead of MMU_MODE{0,1}_SUFFIX

2019-12-12 Thread Laurent Vivier
Le 12/12/2019 à 05:00, Richard Henderson a écrit : > The generated *_user functions are unused. The *_kernel functions > have a couple of users in op_helper.c; use *_mmuidx_ra instead, > with MMU_KERNEL_IDX. > > Cc: Laurent Vivier > Signed-off-by: Richard Henderson > --- > target/m68k/cpu.h

Re: [PATCH v2 ppc-for-5.0 2/2] ppc/spapr: Support reboot of secure pseries guest

2019-12-12 Thread Bharata B Rao
On Thu, Dec 12, 2019 at 08:34:57AM +0100, Cédric Le Goater wrote: > Hello Bharata, > > > On 12/12/2019 06:50, Bharata B Rao wrote: > > A pseries guest can be run as a secure guest on Ultravisor-enabled > > POWER platforms. When such a secure guest is reset, we need to > > release/reset a few reso

Re: [PATCH v38 11/22] target/avr: Add instruction disassembly function

2019-12-12 Thread Aleksandar Markovic
On Tue, Dec 10, 2019 at 8:18 AM Michael Rolnik wrote: > > You are right. See at the bottom of the file. There is a comment about it > Sorry, what file? I also see that you disassemble instructions regardless of what AVR CPU the current executable is built for, don't you? OK, not a very big deal,

Re: [PATCH 24/28] target/mips: Use cpu_*_mmuidx_ra instead of MMU_MODE*_SUFFIX

2019-12-12 Thread Aleksandar Markovic
On Thu, Dec 12, 2019 at 5:21 AM Richard Henderson wrote: > > The separate suffixed functions were used to construct > some do_##insn function switched on mmu_idx. The interface > is exactly identical to the *_mmuidx_ra functions. Replace > them directly and remove the constructions. > > Cc: Aure

Re: [PATCH 06/28] cputlb: Rename helper_ret_ld*_cmmu to cpu_ld*_code

2019-12-12 Thread Aleksandar Markovic
On Thu, Dec 12, 2019 at 5:07 AM Richard Henderson wrote: > > There are no uses of the *_cmmu names other than the bare wrapping > within the *_code inlines. Therefore rename the functions so we > can drop the inlines. > > Use abi_ptr instead of target_ulong in preparation for user-only; > the two

Re: [PATCH v2 2/2] gdbstub: do not split gdb_monitor_write payload

2019-12-12 Thread Damien Hedde
On 12/11/19 7:58 PM, Philippe Mathieu-Daudé wrote: > On 12/11/19 5:05 PM, Damien Hedde wrote: >> Since we can now send packets of arbitrary length: >> simplify gdb_monitor_write() and send the whole payload >> in one packet. > > While we can send arbitrary length on the wire, we advertise > Pac

Re: [virtio-dev] Re: guest / host buffer sharing ...

2019-12-12 Thread Gerd Hoffmann
Hi, > > First the addressing is non-trivial, especially with the "transport > > specific device address" in the tuple. > > There is complexity here, but I think it would also be present in the > buffer sharing device case. With a buffer sharing device, the same > identifying information would n

Re: [PATCH 23/28] target/m68k: Use cpu_*_mmuidx_ra instead of MMU_MODE{0, 1}_SUFFIX

2019-12-12 Thread Laurent Vivier
Le 12/12/2019 à 05:00, Richard Henderson a écrit : > The generated *_user functions are unused. The *_kernel functions > have a couple of users in op_helper.c; use *_mmuidx_ra instead, > with MMU_KERNEL_IDX. > > Cc: Laurent Vivier > Signed-off-by: Richard Henderson > --- > target/m68k/cpu.h

Re: [PATCH 28/28] cputlb: Expand cpu_ldst_template.h in cputlb.c

2019-12-12 Thread Aleksandar Markovic
On Thu, Dec 12, 2019 at 5:22 AM Richard Henderson wrote: > > Reduce the amount of preprocessor obfuscation by expanding > the text of each of the functions generated. The result is > only slightly smaller than the original. > I am not sure what you meant by "The result is only slightly smaller t

[PATCH] qcow2: Use offset_into_cluster()

2019-12-12 Thread Alberto Garcia
There's a couple of places left in the qcow2 code that still do the calculation manually, so let's replace them. Signed-off-by: Alberto Garcia --- block/qcow2.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 7c18721741..3866b47946

Re: [PATCH v2 2/2] gdbstub: do not split gdb_monitor_write payload

2019-12-12 Thread Damien Hedde
On 12/11/19 7:59 PM, Alex Bennée wrote: > > Damien Hedde writes: > >> Since we can now send packets of arbitrary length: >> simplify gdb_monitor_write() and send the whole payload >> in one packet. > > Do we know gdb won't barf on us. Does the negotiated max packet size > only apply to data

Re: [PATCH 1/2] target/s390x: Split out helper_per_store_real

2019-12-12 Thread David Hildenbrand
On 11.12.19 21:36, Richard Henderson wrote: > Split the PER handling for store-to-real-address into its > own helper function, conditionally called when PER is > enabled, just as we do for per_branch and per_ifetch. > > Signed-off-by: Richard Henderson > --- > target/s390x/helper.h | 1 + >

Re: [PATCH 2/2] target/s390x: Implement LOAD/STORE TO REAL ADDRESS inline

2019-12-12 Thread David Hildenbrand
On 11.12.19 21:36, Richard Henderson wrote: > These are trivially done by performing a memory operation > with the correct mmu_idx. The only tricky part is using > get_address directly in order to get the address wrapped; > we cannot use la2 because of the format. > > Signed-off-by: Richard Hende

Re: [PATCH 09/28] target/s390x: Include tcg.h in mem_helper.c

2019-12-12 Thread David Hildenbrand
On 12.12.19 05:00, Richard Henderson wrote: > Code movement in an upcoming patch will show that this file > was implicitly depending on tcg.h being included indirectly. > > Cc: David Hildenbrand > Signed-off-by: Richard Henderson > --- > target/s390x/mem_helper.c | 1 + > 1 file changed, 1 inse

Re: [PATCH v3 1/7] gpiolib: Add GPIOCHIP_NAME definition

2019-12-12 Thread Linus Walleij
On Wed, Nov 27, 2019 at 9:43 AM Geert Uytterhoeven wrote: > The string literal "gpiochip" is used in several places. > Add a definition for it, and use it everywhere, to make sure everything > stays in sync. > > Signed-off-by: Geert Uytterhoeven > --- > v3: > - New. This is a good patch on it

Re: [PATCH 25/28] target/s390x: Use cpu_*_mmuidx_ra instead of MMU_MODE*_SUFFIX

2019-12-12 Thread David Hildenbrand
On 12.12.19 05:00, Richard Henderson wrote: > The generated functions aside from *_real are unused. > The *_real functions have a couple of users in mem_helper.c; > use *_mmuidx_ra instead, with MMU_REAL_IDX. > > Cc: David Hildenbrand > Signed-off-by: Richard Henderson > --- > target/s390x/cpu.

Re: [PATCH v2 2/2] gdbstub: do not split gdb_monitor_write payload

2019-12-12 Thread Alex Bennée
Damien Hedde writes: > On 12/11/19 7:59 PM, Alex Bennée wrote: >> >> Damien Hedde writes: >> >>> Since we can now send packets of arbitrary length: >>> simplify gdb_monitor_write() and send the whole payload >>> in one packet. >> >> Do we know gdb won't barf on us. Does the negotiated max p

Re: [PACTH v3 3/5] tpm_spapr: Support suspend and resume

2019-12-12 Thread Marc-André Lureau
Hi On Wed, Dec 11, 2019 at 8:27 PM Stefan Berger wrote: > > Extend the tpm_spapr frontend with VM suspend and resume support. > > Signed-off-by: Stefan Berger > --- > hw/tpm/tpm_spapr.c | 42 +- > 1 file changed, 41 insertions(+), 1 deletion(-) > > diff -

Re: [PACTH v3 1/5] tpm_spapr: Support TPM for ppc64 using CRQ based interface

2019-12-12 Thread Marc-André Lureau
Hi On Wed, Dec 11, 2019 at 8:25 PM Stefan Berger wrote: > > Implement support for TPM on ppc64 by implementing the vTPM CRQ interface > as a frontend. It can use the tpm_emulator driver backend with the external > swtpm. > > The Linux vTPM driver for ppc64 works with this emulation. > > This TPM

Re: [Qemu-devel] [PATCH v2] vhost-vsock: report QMP event when setrunning

2019-12-12 Thread Stefan Hajnoczi
On Thu, Nov 28, 2019 at 07:26:47PM +0800, ning@zte.com.cn wrote: > Let me describe the issue with an example via `nc-vsock`: > > Let's assume the Guest cid is 3. > execute 'rmmod vmw_vsock_virtio_transport' in Guest, > then execute 'while true; do nc-vsock 3 1234' in Host. > > Host

Re: [PACTH v3 5/5] docs: tpm: Add example command line for ppc64 and tpm-spapr

2019-12-12 Thread Marc-André Lureau
Hi On Wed, Dec 11, 2019 at 8:25 PM Stefan Berger wrote: > > Add an example to the TPM docs for how to add a TPM SPAPR > device model to a QEMU VM emulating a pSeries machine. > > Signed-off-by: Stefan Berger Reviewed-by: Marc-André Lureau (I'll look at converting it to rst) > --- > docs/spe

Re: [RFC PATCH 00/18] Add qemu-storage-daemon

2019-12-12 Thread Stefan Hajnoczi
On Thu, Nov 21, 2019 at 12:08:16PM +0100, Kevin Wolf wrote: > Am 21.11.2019 um 11:32 hat Stefan Hajnoczi geschrieben: > > On Wed, Nov 06, 2019 at 03:58:00PM +0100, Kevin Wolf wrote: > > > Am 06.11.2019 um 15:37 hat Max Reitz geschrieben: > > > > On 17.10.19 15:01, Kevin Wolf wrote: > > > > The only

Re: [Qemu-devel] [PATCH v2] vhost-vsock: report QMP event when setrunning

2019-12-12 Thread Michael S. Tsirkin
On Thu, Dec 12, 2019 at 11:05:25AM +, Stefan Hajnoczi wrote: > On Thu, Nov 28, 2019 at 07:26:47PM +0800, ning@zte.com.cn wrote: > > Let me describe the issue with an example via `nc-vsock`: > > > > Let's assume the Guest cid is 3. > > execute 'rmmod vmw_vsock_virtio_transport' in Guest, >

Re: [PATCH v6 3/8] docs: start a document to describe D-Bus usage

2019-12-12 Thread Daniel P . Berrangé
On Wed, Dec 11, 2019 at 05:45:01PM +0400, Marc-André Lureau wrote: > Signed-off-by: Marc-André Lureau > --- > MAINTAINERS| 5 +++ > docs/interop/dbus.rst | 99 ++ > docs/interop/index.rst | 1 + > 3 files changed, 105 insertions(+) > create

Re: [PATCH v6 4/8] util: add dbus helper unit

2019-12-12 Thread Daniel P . Berrangé
On Wed, Dec 11, 2019 at 05:45:02PM +0400, Marc-André Lureau wrote: > Signed-off-by: Marc-André Lureau > --- > MAINTAINERS | 2 ++ > include/qemu/dbus.h | 18 +++ > util/Makefile.objs | 3 +++ > util/dbus.c | 55 + > 4 file

[PATCH v2] target/arm: ensure we use current exception state after SCR update

2019-12-12 Thread Alex Bennée
A write to the SCR can change the effective EL by droppping the system from secure to non-secure mode. However if we use a cached current_el from before the change we'll rebuild the flags incorrectly. To fix this we introduce the ARM_CP_NEWEL CP flag to indicate the new EL should be used when recom

Re: [PATCH v6 5/8] Add dbus-vmstate object

2019-12-12 Thread Daniel P . Berrangé
On Wed, Dec 11, 2019 at 05:45:03PM +0400, Marc-André Lureau wrote: > When instantiated, this object will connect to the given D-Bus bus > "addr". During migration, it will take/restore the data from > org.qemu.VMState1 instances. See documentation for details. > > Signed-off-by: Marc-André Lureau

Re: [PATCH v6 6/8] configure: add GDBUS_CODEGEN

2019-12-12 Thread Daniel P . Berrangé
On Wed, Dec 11, 2019 at 05:45:04PM +0400, Marc-André Lureau wrote: > gdbus-codegen generated code requires gio-unix on Unix, so add it to > GIO libs/cflags. What is the situation on Windows, is it still supported ? > Signed-off-by: Marc-André Lureau > --- > configure | 7 +++ > 1 file chang

Re: [PATCH v6 7/8] dockerfiles: add dbus-daemon to some of latest distributions

2019-12-12 Thread Daniel P . Berrangé
On Wed, Dec 11, 2019 at 05:45:05PM +0400, Marc-André Lureau wrote: > To get dbus-vmstate test covered. > > Signed-off-by: Marc-André Lureau > --- > tests/docker/dockerfiles/centos7.docker | 1 + > tests/docker/dockerfiles/debian10.docker | 1 + > tests/docker/dockerfiles/fedora.docker | 1 + >

Re: [PATCH v6 8/8] tests: add dbus-vmstate-test

2019-12-12 Thread Daniel P . Berrangé
On Wed, Dec 11, 2019 at 05:45:06PM +0400, Marc-André Lureau wrote: > Signed-off-by: Marc-André Lureau > --- > MAINTAINERS | 1 + > tests/Makefile.include | 22 +- > tests/dbus-vmstate-daemon.sh | 95 + > tests/dbus-vmstate-test.c| 399 +++

Re: [PATCH for-5.0 v11 12/20] qapi: Introduce DEFINE_PROP_INTERVAL

2019-12-12 Thread Markus Armbruster
Eric Auger writes: > Introduce a new property defining a labelled interval: > ,,label. > > This will be used to encode reserved IOVA regions. The label > is left undefined to ease reuse accross use cases. What does the last sentence mean? > For instance, in virtio-iommu use case, reserved IOVA

Re: [PATCH 2/2] .travis.yml: Add kernel build deps for acceptance tests

2019-12-12 Thread Alex Bennée
Wainer dos Santos Moschetta writes: > The tests/acceptance/pvh.py test builds the Linux kernel > at runtime so it needs dependencies installed in the > container. Current used container image misses only > libelf-dev, which is then added with this change. Hmm I'm not sure about this. Do we rea

Re: [virtio-dev] Re: guest / host buffer sharing ...

2019-12-12 Thread David Stevens
> > > Second I think it is a bad idea > > > from the security point of view. When explicitly exporting buffers it > > > is easy to restrict access to the actual exports. > > > > Restricting access to actual exports could perhaps help catch bugs. > > However, I don't think it provides any security

Re: [PATCH v2 ppc-for-5.0 2/2] ppc/spapr: Support reboot of secure pseries guest

2019-12-12 Thread Greg Kurz
On Thu, 12 Dec 2019 11:20:59 +0530 Bharata B Rao wrote: > A pseries guest can be run as a secure guest on Ultravisor-enabled > POWER platforms. When such a secure guest is reset, we need to > release/reset a few resources both on ultravisor and hypervisor side. > This is achieved by invoking this

Re: [PATCH 11/28] accel/tcg: Include tcg.h in tcg-runtime.c

2019-12-12 Thread Alex Bennée
Richard Henderson writes: > Code movement in an upcoming patch will show that this file > was implicitly depending on tcg.h being included indirectly. > > Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée > --- > accel/tcg/tcg-runtime.c | 1 + > 1 file changed, 1 insertion(+) > > d

Re: [PATCH v2 ppc-for-5.0 2/2] ppc/spapr: Support reboot of secure pseries guest

2019-12-12 Thread Greg Kurz
On Thu, 12 Dec 2019 14:23:43 +0530 Bharata B Rao wrote: > On Thu, Dec 12, 2019 at 08:34:57AM +0100, Cédric Le Goater wrote: > > Hello Bharata, > > > > > > On 12/12/2019 06:50, Bharata B Rao wrote: > > > A pseries guest can be run as a secure guest on Ultravisor-enabled > > > POWER platforms. Wh

[PATCH 0/2] numa: stop abusing numa_mem_supported

2019-12-12 Thread Igor Mammedov
A fix and cleanup for a mistakes that slipped by me in aa57020774 (numa: move numa global variable nb_numa_nodes into MachineState) CC: Eduardo Habkost CC: Marcel Apfelbaum CC: Tao Xu Igor Mammedov (2): numa: remove not needed check numa: properly check if numa is supported hw/arm/sb

[PATCH 1/2] numa: remove not needed check

2019-12-12 Thread Igor Mammedov
Currently parse_numa_node() is always called from already numa enabled context. Drop unnecessary check if numa is supported. Signed-off-by: Igor Mammedov --- hw/core/numa.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/hw/core/numa.c b/hw/core/numa.c index e3332a9..19

[PATCH 2/2] numa: properly check if numa is supported

2019-12-12 Thread Igor Mammedov
Commit aa57020774b, by mistake used MachineClass::numa_mem_supported to check if NUMA is supported by machine and also as unrelated change set it to true for sbsa-ref board. Luckily change didn't break machines that support NUMA, as the field is set to true for them. But the field is not intended

[PATCH 001/132] build-sys hack: ensure target directory is there

2019-12-12 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 --- rules.mak | 1 + 1 file changed, 1 insertion(+) diff --git a/ru

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

2019-12-12 Thread Paolo Bonzini
This ensures that Meson will be able to reuse the results of the tests that are performed in the configure script. Signed-off-by: Paolo Bonzini --- configure | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/configure b/configure index f5031

[PATCH 005/132] configure: generate Meson cross file

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- configure | 41 + 1 file changed, 41 insertions(+) diff --git a/configure b/configure index 3e3eb3d..2f3e231 100755 --- a/configure +++ b/configure @@ -7852,6 +785

[PATCH 012/132] contrib/libvhost-user: convert to Meson

2019-12-12 Thread Paolo Bonzini
Since libqemuutil.a has been converted to Meson, the conversion is straightforward. Signed-off-by: Paolo Bonzini --- Makefile| 14 -- Makefile.objs | 1 - contrib/libvhost-user/Makefile.objs | 1 - contrib/libvhost-user/meson.build

[RFC PATCH v3 000/132] Proof of concept for Meson integration

2019-12-12 Thread Paolo Bonzini
This is the next version of the Meson conversion which, as you can see from the patch count, has seen quite some progress thanks to Marc-André. I'm posting it until the point where Makefile.target and unnest-vars can be removed, and all builds become non-recursive. He also went ahead and reached t

[PATCH 008/132] meson: use coverage option

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau --- Makefile | 14 -- Makefile.target| 16 configure | 10 ++ docs/devel/testing.rst | 7 +++ 4 files changed, 5 insertions(+), 42 deletions(-) diff --git a/Mak

[PATCH 003/132] configure: expand path variables for meson configure

2019-12-12 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 9745b87..a444bc3 100755 --- a/configure +++ b/configure @@ -

[PATCH 013/132] contrib/vhost-user-blk: convert to Meson

2019-12-12 Thread Paolo Bonzini
The GLib pkg-config information is extracted from config-host.mak and used to link vhost-user-blk. Signed-off-by: Paolo Bonzini --- Makefile | 3 --- Makefile.objs | 1 - contrib/vhost-user-blk/meson.build | 3 +++ meson.build

[PATCH 014/132] contrib/vhost-user-scsi: convert to Meson

2019-12-12 Thread Paolo Bonzini
The libiscsi pkg-config information is extracted from config-host.mak and used to link vhost-user-blk. Signed-off-by: Paolo Bonzini --- Makefile | 3 --- Makefile.objs | 3 --- contrib/vhost-user-scsi/Makefile.objs | 1 - contrib/vhost-user-sc

[PATCH 006/132] build-sys: add meson submodule

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau --- .gitmodules | 3 +++ configure | 45 + meson | 1 + scripts/archive-source.sh | 3 ++- 4 files changed, 47 insertions(+), 5 deletions(-)

[PATCH 010/132] meson: add remaining generated tcg trace helpers

2019-12-12 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 inde

[PATCH 018/132] contrib/ivshmem: convert to meson

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile | 9 - Makefile.objs| 2 -- configure| 3 --- contrib/ivshmem-client/Makefile.objs | 1 - contrib/ivshmem-c

[PATCH 007/132] meson: enable pie

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 0eb3d70..80055f1 100755 --- a/configure +++ b/configure @@ -2075,7 +2075,6 @@ int main(void) { return tls_var; } EOF if comp

[PATCH 020/132] meson: convert qemu-ga

2019-12-12 Thread Paolo Bonzini
Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile | 44 ++-- Makefile.objs | 1 - configure | 9 - meson.build | 8 qga/Makefile.objs | 8 -

[PATCH 011/132] meson: add version.o

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- meson.build | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 18b8710..ba4d891 100644 --- a/meson.build +++ b/meson.build @@ -23,8 +23,14 @@ confi

[PATCH 009/132] libqemuutil: convert to meson

2019-12-12 Thread Paolo Bonzini
This shows how to do some "computations" in meson.build using its array and dictionary data structures, and also a basic usage of the sourceset module for conditional compilation. Overall the look of the meson.build code is quite good, however Meson doesn't enjoy the same flexibility we have with

[PATCH 004/132] configure: integrate Meson in the build system

2019-12-12 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. Signed-off-by: Paolo Bonzini --- Makefile |9 + configure| 30 ++ meson.build

[PATCH 029/132] meson: generate shader headers

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile | 18 -- meson.build | 1 + ui/meson.build| 2 ++ ui/shader/meson.build | 15 +++ 4 files changed, 18 insertions(+), 18 deletions(-)

[PATCH 016/132] contrib/vhost-user-input: convert to meson

2019-12-12 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 | 3 +++ meso

[PATCH 027/132] meson: keymap-gen

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile | 38 -- meson.build| 1 + ui/meson.build | 34 ++ 3 files changed, 35 insertions(+), 38 deletions(-) create mode 1

[PATCH 017/132] contrib/vhost-user-gpu: convert to meson

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile | 5 - Makefile.objs| 1 - contrib/vhost-user-gpu/Makefile.objs | 10 -- contrib/vhost-user-gpu/meson.build | 5 + meson.b

[PATCH 015/132] contrib/rdmacm-mux: convert to Meson

2019-12-12 Thread Paolo Bonzini
We can use config-host.mak to decide whether the tool has to be built, apart from that the conversion is straightforward. Signed-off-by: Paolo Bonzini --- Makefile | 5 - Makefile.objs| 1 - contrib/rdmacm-mux/Makefile.objs | 3 --- contrib/rdmacm-

[PATCH 031/132] meson: configure 50-qemu-gpu.json

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile | 7 +-- contrib/vhost-user-gpu/meson.build | 5 + rules.mak | 7 --- 3 files changed, 6 insertions(+), 13 deletions(-) diff --git

[PATCH 030/132] meson: generate hxtool files

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile| 19 +-- Makefile.target | 6 -- meson.build | 35 +++ scripts/hxtool | 2 +- 4 files changed, 37 insertions(+), 25 deletions(-)

[PATCH 019/132] contrib/elf2dmp: convert to meson

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile | 4 Makefile.objs | 6 -- configure | 3 --- contrib/elf2dmp/Makefile.objs | 4 contrib/elf2dmp/meson.build | 4 mes

[PATCH 021/132] meson: convert vss-win32

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile| 1 - Makefile.objs | 8 meson.build | 4 +++- qga/Makefile.objs | 1 - qga/meson.build | 6 ++ qga/vss-w

[PATCH 036/132] meson: convert crypto directory to Meson

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile | 1 - Makefile.objs| 7 ++- Makefile.target | 2 +- crypto/Makefile.objs | 34 -- crypto/meson.build | 49 ++

[PATCH 033/132] build-sys hack: link with whole .fa archives

2019-12-12 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: Marc-A

[PATCH 023/132] meson: add qemu-bridge-helper

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile| 4 configure | 1 + meson.build | 12 +++- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 328b3c3..d153186 100644 --- a/Makefile +

[PATCH 024/132] meson: add qemu-keymap

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile| 5 - configure | 24 meson.build | 6 ++ 3 files changed, 6 insertions(+), 29 deletions(-) diff --git a/Makefile b/Makefile index d153186..fe4df0d 10064

[PATCH 047/132] meson: convert audio directory to Meson

2019-12-12 Thread Paolo Bonzini
Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile.objs | 8 ++-- Makefile.target | 6 -- audio/Makefile.objs | 31 --- audio/meson.build | 30 ++ configure | 12 meson.bu

[PATCH 034/132] meson: convert qom directory to Meson

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile | 2 +- Makefile.objs | 4 ++-- Makefile.target| 3 ++- meson.build| 1 + qom/Makefile.objs | 3 --- qom/meson.build| 15 +

[PATCH 022/132] meson: add msi generation

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile | 18 -- qga/meson.build | 25 + qga/vss-win32/meson.build | 2 +- 3 files changed, 26 insertions(+), 19 deletions(-) diff --g

[PATCH 026/132] meson: add virtfs-proxy-helper

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile | 3 --- configure | 6 -- fsdev/meson.build | 4 meson.build | 6 ++ 4 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 fsdev/meson.build

[PATCH 035/132] meson: convert authz directory to Meson

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile| 1 - Makefile.objs | 8 +++- Makefile.target | 2 +- authz/Makefile.objs | 7 --- authz/meson.build | 20 meson.build | 5 +

[PATCH 048/132] meson: convert ui directory to Meson

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile | 4 +-- Makefile.objs| 7 -- Makefile.target | 7 +++--- configure| 6 + meson.build | 50 + ui/Makefile.objs | 69 -

[PATCH 028/132] meson: generate qemu-version.h

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile| 27 +-- meson.build | 10 ++ scripts/qemu-version.sh | 25 + 3 files changed, 36 insertions(+), 26 deletions(-

[PATCH 025/132] meson: add qemu-edid

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile| 2 -- configure | 2 +- meson.build | 3 +++ 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index fe4df0d..6a888b0 100644 --- a/Makefile +++ b/Makefile

[PATCH 037/132] meson: convert io directory to Meson

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile | 1 - Makefile.objs| 7 ++- Makefile.target | 2 +- io/Makefile.objs | 12 io/meson.build | 25 + meson.build | 1 + 6 files chan

[PATCH 039/132] meson: add macos dependencies

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau There is no probing in configure, so no need to pass them as variables to meson. Do a regular meson dependency() instead. Signed-off-by: Marc-André Lureau --- meson.build | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/meson.build b/m

[PATCH 054/132] meson: convert monitor directory to Meson

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile.objs | 3 +-- Makefile.target | 1 - meson.build | 2 ++ monitor/Makefile.objs | 3 --- monitor/meson.build | 9 + 5 files changed, 12 insertions(+), 6 deletions

[PATCH 032/132] meson: uncompress edk2 bios

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile| 4 meson.build | 2 ++ pc-bios/meson.build | 21 + 3 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 pc-bios/meson.build diff

[PATCH 040/132] meson: add modules infrastructure

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau --- Makefile| 10 +- Makefile.target | 6 ++ meson.build | 53 + rules.mak | 10 +- scripts/undefsym.sh | 20

[PATCH 057/132] meson: build softmmu-specific migration/ram.c

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau --- Makefile.target | 1 - configure | 2 ++ meson.build | 5 + migration/meson.build | 2 ++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile.target b/Makefile.target index 8628e25..c

[PATCH 038/132] meson: infrastructure for building emulators

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Paolo Bonzini Signed-off-by: Marc-André Lureau --- Makefile | 72 +++- Makefile.target | 19 +++--- configure | 6 -- hw/i386/pc.c | 2 +- hw/i386/pc_piix.c | 2 +- include/qemu/osdep.h

[PATCH 041/132] meson: convert chardev directory to Meson (tools part)

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile | 1 - Makefile.objs | 6 ++ Makefile.target | 2 +- chardev/Makefile.objs | 19 --- chardev/meson.build | 34 +

[PATCH 058/132] meson: convert net directory to Meson

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile.objs | 3 +-- Makefile.target | 1 + meson.build | 10 ++ net/Makefile.objs | 32 net/can/Makefile.objs | 2 -- net/can/mes

[PATCH 043/132] meson: qemu-{img,io,nbd}

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile| 6 -- configure | 6 -- meson.build | 8 +++- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index cdd9d14..764981d 100644 --- a/Makefile +

[PATCH 044/132] meson: qemu-pr-helper

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile| 5 - configure | 1 - meson.build | 10 ++ 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 764981d..0cbdc34 100644 --- a/Makefile ++

[PATCH 045/132] configure, Makefile; remove TOOLS and HELPERS-y variable

2019-12-12 Thread Paolo Bonzini
Everything involving tools is now done by meson. Signed-off-by: Paolo Bonzini --- Makefile | 12 ++-- configure | 2 -- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 0cbdc34..c4cfca9 100644 --- a/Makefile +++ b/Makefile @@ -113,8 +113,6 @@ $(

[PATCH 046/132] meson: convert chardev directory to Meson (emulator part)

2019-12-12 Thread Paolo Bonzini
Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile.objs | 1 - Makefile.target | 2 ++ chardev/Makefile.objs | 6 -- chardev/meson.build | 7 ++- configure | 2 ++ meson.build | 14 ++ 6 files changed, 24 inse

[PATCH 042/132] meson: convert block

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau --- Makefile| 9 Makefile.objs | 30 +--- Makefile.target | 3 +- block.c | 2 +- block/Makefile.objs | 64

[PATCH 059/132] meson: convert backends directory to Meson

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile.objs | 1 - backends/Makefile.objs | 19 --- backends/meson.build | 16 configure | 2 ++ meson.build| 5 + 5 files cha

[PATCH 050/132] meson: convert trace/

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau --- Makefile.objs | 4 trace/Makefile.objs | 8 trace/meson.build | 5 - 3 files changed, 4 insertions(+), 13 deletions(-) delete mode 100644 trace/Makefile.objs diff --git a/Makefile.objs b/Makefile.objs index

[PATCH 051/132] meson: convert qom/

2019-12-12 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau --- Makefile.objs | 1 - qom/Makefile.objs | 1 - qom/meson.build | 5 + 3 files changed, 5 insertions(+), 2 deletions(-) delete mode 100644 qom/Makefile.objs diff --git a/Makefile.objs b/Makefile.objs index e9ae889..0bc9167 1

  1   2   3   4   5   >