[PULL 075/150] meson: convert dump/

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile.objs | 3 +-- Makefile.target| 1 - configure | 4 dump/Makefile.objs | 3 --- dump/meson.build | 4 meson.build| 9 + 6 files changed, 18 insertions

[PULL 073/150] meson: convert most of softmmu/

2020-08-18 Thread Paolo Bonzini
Leave out main.c, it's special due to fuzzing. Signed-off-by: Paolo Bonzini --- meson.build | 2 ++ softmmu/Makefile.objs | 14 +- softmmu/meson.build | 10 ++ 3 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 softmmu/meson.build diff --git

[PULL 111/150] meson: convert hw/ipack

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/ipack/Makefile.objs | 2 -- hw/ipack/meson.build | 1 + hw/meson.build | 1 + 4 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 hw/ipack/Makef

[PULL 107/150] meson: convert hw/net

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/meson.build | 1 + hw/net/Makefile.objs | 59 --- hw/net/can/Makefile.objs | 4 --- hw/net/can/meson.build | 4 +++ h

[PULL 068/150] meson: convert chardev directory to Meson (emulator part)

2020-08-18 Thread Paolo Bonzini
Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile.objs | 2 -- Makefile.target | 2 ++ chardev/Makefile.objs | 10 -- chardev/meson.build | 13 + configure | 2 ++ meson.build | 14 ++ 6 files chang

[PULL 115/150] meson: convert hw/i2c

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Reviewed-by: Corey Minyard Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/i2c/Makefile.objs | 14 -- hw/i2c/meson.build | 16 hw/meson.build |

[PULL 118/150] meson: convert hw/dma

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/dma/Makefile.objs | 16 hw/dma/meson.build | 15 +++ hw/meson.build | 1 + 4 files changed, 16 insertions(+), 17 deletions(-) delete

[PULL 069/150] meson: convert tests/qtest to meson

2020-08-18 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- meson.build | 3 + tests/Makefile.include| 47 +-- tests/meson.build | 1 + tests/qtest/Makefile.include | 332 -- tests/qtest/ac97-test.c

[PULL 079/150] meson: convert migration directory to Meson

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile.objs | 1 - Makefile.target | 1 - meson.build | 5 + migration/Makefile.objs | 18 -- migration/meson.build | 40 ++

[PULL 081/150] meson: convert backends directory to Meson

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile.objs | 2 -- backends/Makefile.objs | 23 --- backends/meson.build | 19 +++ backends/tpm/Makefile.objs | 4 backends/tpm/meson.b

[PULL 112/150] meson: convert hw/intc

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/intc/Makefile.objs | 54 -- hw/intc/meson.build | 55 +++ hw/meson.build| 1 + 4

[PULL 117/150] meson: convert hw/gpio

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/gpio/Makefile.objs | 12 hw/gpio/meson.build | 12 hw/meson.build| 1 + 4 files changed, 13 insertions(+), 13 deletions(-) delete mod

[PULL 108/150] meson: convert hw/misc

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- hw/Makefile.objs| 1 - hw/meson.build | 1 + hw/misc/Makefile.objs | 95 --- hw/misc/macio/Makefile.objs | 5 -- hw/misc/macio/meson.build

[PULL 080/150] meson: convert net directory to Meson

2020-08-18 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

[PULL 082/150] meson: convert fsdev/

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile.objs | 4 +--- configure | 1 - fsdev/Makefile.objs | 12 fsdev/meson.build | 10 ++ 4 files changed, 11 insertions(+), 16 deletions(-) delete mode 10064

[PULL 126/150] meson: convert hw/9pfs, cleanup

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau hw/Makefile.objs is gone so there is more code that can be removed. Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile | 4 Makefile.objs | 8 Makefile.target | 15 --- hw/9pfs/Kconfig

[PULL 114/150] meson: convert hw/ide

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/ide/Makefile.objs | 14 -- hw/ide/meson.build | 14 ++ hw/meson.build | 1 + 4 files changed, 15 insertions(+), 15 deletions(-) delete mod

[PULL 088/150] meson: convert hw/nubus

2020-08-18 Thread Paolo Bonzini
Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/meson.build | 1 + hw/nubus/Makefile.objs | 4 hw/nubus/meson.build | 7 +++ 4 files changed, 8 insertions(+), 5 deletions(-) delete mode 100644 hw/nubus/Makefile.objs creat

[PULL 087/150] meson: convert hw/semihosting

2020-08-18 Thread Paolo Bonzini
Signed-off-by: Marc-André Lureau Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/meson.build | 1 + hw/semihosting/Makefile.objs | 2 -- hw/semihosting/meson.build | 4 4 files changed, 5 insertions(+), 3 deletions

[PULL 127/150] meson: convert hw/arch*

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Each architecture's sourceset is placed in an hw_arch dictionary, and picked up from there when building the per-emulator static_library. Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile.target | 7 hw/alpha/Makefile.objs

[PULL 086/150] meson: convert hw/core

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/core/Makefile.objs | 34 - hw/core/meson.build| 49 ++ hw/meson.build | 1 + tests/Makef

[PULL 121/150] meson: convert hw/char

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/char/Makefile.objs | 39 --- hw/char/meson.build | 38 ++ hw/meson.build| 1 + 4 files c

[PULL 133/150] meson: plugins

2020-08-18 Thread Paolo Bonzini
For now link arguments end up in Makefile.target, they will move to the right place soon. Signed-off-by: Paolo Bonzini --- Makefile | 8 +--- Makefile.target | 12 ++-- meson.build | 5 + plugins/Makefile.objs | 21 - plugins/mes

[PULL 098/150] meson: convert hw/ssi

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/meson.build | 1 + hw/ssi/Makefile.objs | 10 -- hw/ssi/meson.build | 9 + 4 files changed, 10 insertions(+), 11 deletions(-) delete mode 100644

[PULL 123/150] meson: convert hw/audio

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/audio/Makefile.objs | 18 -- hw/audio/meson.build | 14 ++ hw/meson.build | 1 + 4 files changed, 15 insertions(+), 19 deletions(-)

[PULL 095/150] meson: convert hw/tpm

2020-08-18 Thread Paolo Bonzini
Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/meson.build | 1 + hw/tpm/Makefile.objs | 6 -- hw/tpm/meson.build | 8 4 files changed, 9 insertions(+), 7 deletions(-) delete mode 100644 hw/tpm/Makefile.objs create mode 100

[PULL 119/150] meson: convert hw/display

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile.target | 1 + hw/Makefile.objs | 1 - hw/display/Makefile.objs | 65 --- hw/display/meson.build | 84 hw/

[PULL 105/150] meson: convert hw/nvram

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/meson.build | 1 + hw/nvram/Makefile.objs | 8 hw/nvram/meson.build | 9 + 4 files changed, 10 insertions(+

[PULL 125/150] meson: convert hw/acpi

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/acpi/Makefile.objs | 26 -- hw/acpi/meson.build | 25 + hw/meson.build| 1 + 4 files changed, 26 insertions(+),

[PULL 091/150] meson: convert hw/watchdog

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/meson.build| 1 + hw/watchdog/Makefile.objs | 7 --- hw/watchdog/meson.build | 7 +++ 4 files changed, 8 inse

[PULL 129/150] meson: accel

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile.objs | 2 +- Makefile.target | 1 - accel/Makefile.objs | 6 -- accel/kvm/Makefile.objs | 2 -- accel/kvm/meson.build | 5 + accel/meson.build

[PULL 109/150] meson: convert hw/isa

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/isa/Makefile.objs | 11 --- hw/isa/meson.build | 11 +++ hw/meson.build | 1 + 4 files changed, 12 insertions(

[PULL 136/150] rules.mak: remove version.o

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile | 5 - Makefile.objs | 4 rules.mak | 4 +--- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 8331c0fd39..d91352d8ef 100644 --- a/Makefi

[PULL 096/150] meson: convert hw/timer

2020-08-18 Thread Paolo Bonzini
Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/meson.build | 1 + hw/timer/Makefile.objs | 41 - hw/timer/meson.build | 37 + 4 files changed, 38 insertion

[PULL 137/150] remove Makefile.target

2020-08-18 Thread Paolo Bonzini
Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile| 53 - Makefile.target | 12 --- configure | 17 3 files changed, 4 insertions(+), 78 deletions(-) delete mode 100644 Makefile.targe

[PULL 094/150] meson: convert hw/usb

2020-08-18 Thread Paolo Bonzini
Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile.target | 1 + hw/Makefile.objs | 1 - hw/meson.build | 1 + hw/usb/Makefile.objs | 71 hw/usb/meson.build | 69 ++ m

[PULL 145/150] meson: move SDL and SDL-image detection to meson

2020-08-18 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- chardev/meson.build | 2 +- configure | 142 +++- meson.build | 28 ++--- meson_options.txt | 2 + softmmu/main.c | 1 + ui/meson.build | 4 +- 6 files changed, 33 insertions(+), 14

[PULL 124/150] meson: convert hw/adc

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/adc/Makefile.objs | 1 - hw/adc/meson.build | 1 + hw/meson.build | 1 + 4 files changed, 2 insertions(+), 2 deletions(-) delet

[PULL 070/150] meson: convert audio directory to Meson

2020-08-18 Thread Paolo Bonzini
Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile.objs | 7 +-- Makefile.target | 3 ++- audio/Makefile.objs | 35 --- audio/meson.build | 30 ++ configure | 16 meso

[PULL 146/150] meson: convert VNC and dependent libraries to meson

2020-08-18 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- configure | 122 +- meson.build | 40 +-- meson_options.txt | 4 ++ ui/meson.build| 10 ++-- 4 files changed, 45 insertions(+), 131 deletions(-) diff --git a/configure b/configure index

[PULL 148/150] meson: avoid unstable module warning with Meson 0.56.0 or newer

2020-08-18 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- meson.build | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 57cfa8723d..94bfaa6290 100644 --- a/meson.build +++ b/meson.build @@ -3,7 +3,11 @@ project('qemu', ['c'], meson_version: '>=0.55.0', versi

[PULL 130/150] meson: linux-user

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau The most interesting or most complicated part here is the syscall_nr.h generators. In order to keep the generation logic all in meson.build, I am adding to config_target the name of the .tbl file, and making the generated file syscall_nr.h for input file syscall.tbl. For

[PULL 102/150] meson: convert hw/pci-host

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 2 +- hw/meson.build| 1 + hw/pci-host/Makefile.objs | 24 hw/pci-host/meson.build | 31 +++ 4 files change

[PULL 120/150] meson: convert hw/cpu

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/cpu/Makefile.objs | 5 - hw/cpu/meson.build | 6 ++ hw/meson.build | 1 + 4 files changed, 7 insertions(+), 6 deletions(

[PULL 139/150] docs: automatically track manual dependencies

2020-08-18 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- docs/conf.py | 2 +- docs/meson.build | 21 ++--- docs/sphinx/depfile.py | 51 ++ 3 files changed, 65 insertions(+), 9 deletions(-) create mode 100644 docs/sphinx/depfile.py diff --git a/docs/c

[PULL 103/150] meson: convert hw/pci-bridge

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- hw/Makefile.objs| 1 - hw/meson.build | 1 + hw/pci-bridge/Makefile.objs | 10 -- hw/pci-bridge/meson.build | 14 ++ 4 files changed, 15 insertions(+), 11

[PULL 131/150] meson: bsd-user

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile.target| 3 --- bsd-user/Makefile.objs | 2 -- bsd-user/meson.build | 10 ++ meson.build| 4 4 files changed, 14 insertions(+), 5 deletions(-) delete mode 10

[PULL 138/150] meson: sphinx-build

2020-08-18 Thread Paolo Bonzini
For now, sphinx is run on every invocation of make. The previous mechanism using $(wildcard) is not reproducible in Meson and was also brittle; for example some .rst.inc files were left out. The next patch will introduce a Sphinx extension to emit a depfile. Signed-off-by: Marc-André Lureau Sig

[PULL 140/150] meson: build texi doc

2020-08-18 Thread Paolo Bonzini
Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile | 106 ++--- docs/interop/qemu-ga-ref.texi | 2 +- docs/interop/qemu-qmp-ref.texi | 2 +- meson.build| 85 ++ qga/meson.b

[PULL 135/150] meson: convert systemtap files

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile.target | 85 ++- meson.build | 24 + rules.mak | 3 -- trace/meson.build | 14 4 files changed, 33 insertions(+),

[PULL 101/150] meson: convert hw/pcmcia

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- hw/Makefile.objs| 1 - hw/meson.build | 1 + hw/pcmcia/Makefile.objs | 2 -- hw/pcmcia/meson.build | 2 ++ 4 files changed, 3 insertions(+), 3 delet

[PULL 134/150] meson: link emulators without Makefile.target

2020-08-18 Thread Paolo Bonzini
The binaries move to the root directory, e.g. qemu-system-i386 or qemu-arm. This requires changes to qtests, CI, etc. Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- .gitlab-ci.yml| 6 +- Makefile | 35 + Mak

Re: [PATCH v5 1/5] block/io: fix bdrv_co_block_status_above

2020-08-18 Thread Alberto Garcia
On Wed 10 Jun 2020 02:04:22 PM CEST, Vladimir Sementsov-Ogievskiy wrote: > + * The top layer deferred to this layer, and because this layer > is > + * short, any zeroes that we synthesize beyond EOF behave as if > they > + * were allocated at this layer >

[PULL 083/150] meson: convert disas directory to Meson

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile.objs | 2 -- disas/Makefile.objs | 30 -- disas/libvixl/Makefile.objs | 5 - disas/libvixl/meson.build | 7 +++ disas/meson.build

Re: [PATCH v5 2/5] block/io: bdrv_common_block_status_above: support include_base

2020-08-18 Thread Alberto Garcia
On Wed 10 Jun 2020 02:04:23 PM CEST, Vladimir Sementsov-Ogievskiy wrote: > In order to reuse bdrv_common_block_status_above in > bdrv_is_allocated_above, let's support include_base parameter. > > Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Alberto Garcia Berto

[PULL 110/150] meson: convert hw/ipmi

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Reviewed-by: Corey Minyard Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/ipmi/Makefile.objs | 8 hw/ipmi/meson.build | 11 +++ hw/meson.build| 1 + 4 files changed, 12 insertions(+), 9 de

[PULL 147/150] meson: convert po/

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Meson warns if xgettext is not found. In the future we may want to add a required argument to i18n.gettext(); in the meanwhile, I am adding a --enable-gettext/--disable-gettext option and feature detection in configure. This preserves QEMU's default behavior of detecting

Re: [RFC v3 1/1] memory: Skip bad range assertion if notifier supports arbitrary masks

2020-08-18 Thread Eugenio Perez Martin
On Wed, Aug 12, 2020 at 10:49 AM Eugenio Perez Martin wrote: > > On Wed, Aug 12, 2020 at 4:24 AM Jason Wang wrote: > > > > > > On 2020/8/12 上午1:55, Eugenio Pérez wrote: > > > Signed-off-by: Eugenio Pérez > > > --- > > > hw/virtio/vhost.c | 2 +- > > > include/exec/memory.h | 2 ++ > > >

[PULL 116/150] meson: convert hw/hyperv

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- hw/Makefile.objs| 1 - hw/hyperv/Makefile.objs | 3 --- hw/hyperv/meson.build | 3 +++ hw/meson.build | 1 + 4 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 hw/hype

[PULL 144/150] meson: convert sample plugins

2020-08-18 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- configure| 4 tests/Makefile.include | 9 tests/meson.build| 3 +++ tests/plugin/Makefile| 46 tests/plugin/meson.build | 7 ++ 5 files changed, 10 insertions(+), 59 delet

Re: [RFC PATCH 16/22] block/export: Allocate BlockExport in blk_exp_add()

2020-08-18 Thread Max Reitz
On 13.08.20 18:29, Kevin Wolf wrote: > Instead of letting the driver allocate and return the BlockExport > object, allocate it already in blk_exp_add() and pass it. This allows us > to initialise the generic part before calling into the driver so that > the driver can just use these values instead

Re: [PATCH v5 5/5] iotests: add commit top->base cases to 274

2020-08-18 Thread Alberto Garcia
On Wed 10 Jun 2020 02:04:26 PM CEST, Vladimir Sementsov-Ogievskiy wrote: > These cases are fixed by previous patches around block_status and > is_allocated. Reviewed-by: Alberto Garcia Berto

[PULL 142/150] rules.mak: drop unneeded macros

2020-08-18 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- .gitignore | 1 - Makefile| 7 +- configure | 55 ++--- docs/devel/build-system.txt | 5 +- rules.mak | 231 +--- scripts/create_config | 6

[PULL 113/150] meson: convert hw/input

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/input/Makefile.objs | 18 -- hw/input/meson.build | 18 ++ hw/meson.build | 1 + 4 files changed, 19 insertions(+), 19 deletion

[PATCH v6 6/7] virtio-blk-pci: default num_queues to -smp N

2020-08-18 Thread Stefan Hajnoczi
Automatically size the number of virtio-blk-pci request virtqueues to match the number of vCPUs. Other transports continue to default to 1 request virtqueue. A 1:1 virtqueue:vCPU mapping ensures that completion interrupts are handled on the same vCPU that submitted the request. No IPI is necessa

[PULL 122/150] meson: convert hw/block

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 1 - hw/block/Makefile.objs | 18 -- hw/block/dataplane/Makefile.objs | 2 -- hw/block/dataplane/meson.build | 2 ++ hw/block/meson.build

Re: [PATCH v7 14/47] stream: Deal with filters

2020-08-18 Thread Kevin Wolf
Am 25.06.2020 um 17:21 hat Max Reitz geschrieben: > Because of the (not so recent anymore) changes that make the stream job > independent of the base node and instead track the node above it, we > have to split that "bottom" node into two cases: The bottom COW node, > and the node directly above th

Re: [PATCH 1/3] linux user: make execfd global (like exec path) and keep it open

2020-08-18 Thread Laurent Vivier
Le 18/08/2020 à 01:57, Andrew Aladjev a écrit : > User opens /proc/self/exe symlink, than kernel should create > /proc/self/fd/ symlink. We should be able to detect both exe and > fd/ symlinks to provide common behaviour. The easiest solution is to > make execfd global and keep it open. This sol

Re: [PATCH v5 4/5] block/io: fix bdrv_is_allocated_above

2020-08-18 Thread Alberto Garcia
On Wed 10 Jun 2020 02:04:25 PM CEST, Vladimir Sementsov-Ogievskiy wrote: > bdrv_is_allocated_above wrongly handles short backing files: it reports > after-EOF space as UNALLOCATED which is wrong, as on read the data is > generated on the level of short backing file (if all overlays has > unallocate

Re: [PULL 000/150] Meson-based build system

2020-08-18 Thread Peter Maydell
On Tue, 18 Aug 2020 at 15:14, Paolo Bonzini wrote: > > The following changes since commit d0ed6a69d399ae193959225cdeaa9382746c91cc: > > Update version for v5.1.0 release (2020-08-11 17:07:03 +0100) > > are available in the Git repository at: > > https://gitlab.com/bonzini/qemu.git tags/for-ups

[PULL 141/150] meson: convert check-block

2020-08-18 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- meson.build| 2 ++ tests/Makefile.include | 16 ++-- tests/meson.build | 4 tests/qemu-iotests/meson.build | 10 ++ 4 files changed, 18 insertions(+), 14 deletions(-) create mode 100644 tests/qem

[PULL 143/150] meson: replace create-config with meson configure_file

2020-08-18 Thread Paolo Bonzini
Move the create-config logic to meson.build; create a configuration_data object and let meson handle the quoting and output. Signed-off-by: Paolo Bonzini --- Makefile | 3 +- block.c| 2 + configure | 11 +-- meson.build

[PATCH v6 0/7] virtio-pci: enable blk and scsi multi-queue by default

2020-08-18 Thread Stefan Hajnoczi
v6: * Rebased onto QEMU 5.1 and added the now-necessary machine compat opts. v4: * Sorry for the long delay. I considered replacing this series with a simpler approach. Real hardware ships with a fixed number of queues (e.g. 128). The equivalent can be done in QEMU too. That way we don't n

[PATCH v6 1/7] Open 5.2 development tree

2020-08-18 Thread Stefan Hajnoczi
From: Peter Maydell Signed-off-by: Peter Maydell --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 831446cbd2..7d40cb9d36 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -5.1.0 +5.1.50 -- 2.26.2

[PULL 132/150] meson: cpu-emu

2020-08-18 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile.target | 12 configure | 10 +- meson.build | 37 + scripts/feature_to_c.sh | 24 ---

[PATCH 1/2] hw/core/qdev: Make qdev_pass_gpios() arguments self-describing

2020-08-18 Thread Philippe Mathieu-Daudé
Make the direction qdev_pass_gpios() pass the GPIOs more obvious by renaming its arguments as 'from_dev' and 'to_container'. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/qdev-core.h | 10 +- hw/core/qdev.c | 14 +++--- 2 files changed, 12 insertions(+), 12 deletio

[PATCH v6 4/7] virtio-scsi: introduce a constant for fixed virtqueues

2020-08-18 Thread Stefan Hajnoczi
The event and control virtqueues are always present, regardless of the multi-queue configuration. Define a constant so that virtqueue number calculations are easier to read. Signed-off-by: Stefan Hajnoczi Reviewed-by: Cornelia Huck Reviewed-by: Pankaj Gupta Reviewed-by: Philippe Mathieu-Daudé

[PULL 149/150] meson: update build-system documentation

2020-08-18 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- docs/devel/build-system.txt | 468 ++-- 1 file changed, 240 insertions(+), 228 deletions(-) diff --git a/docs/devel/build-system.txt b/docs/devel/build-system.txt index fea67b207c..2ced8ca474 100644 --- a/docs/devel/build-system.tx

[PULL 150/150] docs: convert build system documentation to rST

2020-08-18 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- .../{build-system.txt => build-system.rst}| 310 -- docs/devel/index.rst | 1 + 2 files changed, 142 insertions(+), 169 deletions(-) rename docs/devel/{build-system.txt => build-system.rst} (62%) diff --git a/docs/d

Re: [PATCH for-5.2 14/19] ftgmac100: Fix integer overflow in ftgmac100_do_tx()

2020-08-18 Thread Cédric Le Goater
On 8/11/20 2:39 PM, Peter Maydell wrote: > On Thu, 6 Aug 2020 at 14:21, Cédric Le Goater wrote: >> >> When inserting the VLAN tag in packets, memmove() can generate an >> integer overflow for packets whose length is less than 12 bytes. >> >> Check length against the size of the ethernet header (14

[PATCH v6 5/7] virtio-scsi-pci: default num_queues to -smp N

2020-08-18 Thread Stefan Hajnoczi
Automatically size the number of virtio-scsi-pci, vhost-scsi-pci, and vhost-user-scsi-pci request virtqueues to match the number of vCPUs. Other transports continue to default to 1 request virtqueue. A 1:1 virtqueue:vCPU mapping ensures that completion interrupts are handled on the same vCPU that

[PULL 128/150] meson: target

2020-08-18 Thread Paolo Bonzini
Similar to hw_arch, each architecture defines two sourceset which are placed in dictionaries target_arch and target_softmmu_arch. These are then picked up from there when building the per-emulator static_library. Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- Makefile.target

[PATCH v6 7/7] vhost-user-blk-pci: default num_queues to -smp N

2020-08-18 Thread Stefan Hajnoczi
Automatically size the number of request virtqueues to match the number of vCPUs. This ensures that completion interrupts are handled on the same vCPU that submitted the request. No IPI is necessary to complete an I/O request and performance is improved. The maximum number of MSI-X vectors and v

Re: [RFC PATCH 17/22] block/export: Add blk_exp_close_all(_type)

2020-08-18 Thread Max Reitz
On 13.08.20 18:29, Kevin Wolf wrote: > This adds a function to shut down all block exports, and another one to > shut down the block exports of a single type. The latter is used for now > when stopping the NBD server. As soon as we implement support for > multiple NBD servers, we'll need a per-serv

[PATCH 0/2] hw/core: Make qdev_pass_gpios/sysbus_pass_irq arguments self-describing

2020-08-18 Thread Philippe Mathieu-Daudé
Simply rename qdev_pass_gpios() and sysbus_pass_irq() arguments using self-describing names, to make the direction the GPIO/IRQ lines are passed obvious. Note, currently each function arguments are inverted :) - qdev_pass_gpios: (from -> to) - sysbus_pass_irq: (to -> from) Philippe Mathieu-Daudé

Re: [PATCH v5 3/5] block/io: bdrv_common_block_status_above: support bs == base

2020-08-18 Thread Alberto Garcia
On Wed 10 Jun 2020 02:04:24 PM CEST, Vladimir Sementsov-Ogievskiy wrote: > We are going to reuse bdrv_common_block_status_above in > bdrv_is_allocated_above. bdrv_is_allocated_above may be called with > include_base == false and still bs == base (for ex. from img_rebase()). > > So, support this cor

Re: [RFC PATCH 18/22] block/export: Add 'id' option to block-export-add

2020-08-18 Thread Max Reitz
On 13.08.20 18:29, Kevin Wolf wrote: > We'll need an id to identify block exports in monitor commands. This > adds one. > > Note that this is different from the 'name' option in the NBD server, > which is the externally visible export name. While block export ids need > to be unique in the whole p

[PULL v2 000/150] Meson-based build system

2020-08-18 Thread Paolo Bonzini
The following changes since commit d0ed6a69d399ae193959225cdeaa9382746c91cc: Update version for v5.1.0 release (2020-08-11 17:07:03 +0100) are available in the Git repository at: https://gitlab.com/bonzini/qemu.git tags/for-upstream for you to fetch changes up to 3117cc0720f52ff62fde8ab36fd

Re: [PULL 000/150] Meson-based build system

2020-08-18 Thread Peter Maydell
On Tue, 18 Aug 2020 at 15:14, Paolo Bonzini wrote: > > The following changes since commit d0ed6a69d399ae193959225cdeaa9382746c91cc: > > Update version for v5.1.0 release (2020-08-11 17:07:03 +0100) > > are available in the Git repository at: > > https://gitlab.com/bonzini/qemu.git tags/for-ups

Re: virtio-vsock requires 'disable-legacy=on' in QEMU 5.1

2020-08-18 Thread Cornelia Huck
On Tue, 18 Aug 2020 16:01:20 +0200 Stefano Garzarella wrote: > On Tue, Aug 18, 2020 at 02:44:50PM +0200, Cornelia Huck wrote: > > It seems to me that the status before this was "works by accident, but > > only if we're not negotiating to legacy, or the guest/host are both > > little endian". IOW

Re: virtio-vsock requires 'disable-legacy=on' in QEMU 5.1

2020-08-18 Thread Stefano Garzarella
On Tue, Aug 18, 2020 at 04:31:01PM +0200, Cornelia Huck wrote: > On Tue, 18 Aug 2020 16:01:20 +0200 > Stefano Garzarella wrote: > > > On Tue, Aug 18, 2020 at 02:44:50PM +0200, Cornelia Huck wrote: > > > > It seems to me that the status before this was "works by accident, but > > > only if we're

Re: [PATCH v6 2/7] hw: add 5.2 machine types and 5.1 compat options

2020-08-18 Thread Cornelia Huck
On Tue, 18 Aug 2020 15:33:43 +0100 Stefan Hajnoczi wrote: > arm, i386, ppc, and s390x have versioned machine types and associated > compatibility options. Introduce new ones now that QEMU 5.1 has been > released. > > Signed-off-by: Stefan Hajnoczi > --- > include/hw/boards.h| 3 +++ >

[PATCH v6 2/7] hw: add 5.2 machine types and 5.1 compat options

2020-08-18 Thread Stefan Hajnoczi
arm, i386, ppc, and s390x have versioned machine types and associated compatibility options. Introduce new ones now that QEMU 5.1 has been released. Signed-off-by: Stefan Hajnoczi --- include/hw/boards.h| 3 +++ include/hw/i386/pc.h | 3 +++ hw/arm/virt.c | 9 ++

Re: [PATCH v9 0/5] vhost-user block device backend implementation

2020-08-18 Thread Stefan Hajnoczi
On Mon, Jun 15, 2020 at 02:39:02AM +0800, Coiby Xu wrote: > v9 > - move logical block size check function to a utility function > - fix issues regarding license, coding style, memory deallocation, etc. Great to see you are back, Coiby! Looking forward to reviewing v10. Stefan signature.asc De

[PATCH v6 3/7] virtio-pci: add virtio_pci_optimal_num_queues() helper

2020-08-18 Thread Stefan Hajnoczi
Multi-queue devices achieve the best performance when each vCPU has a dedicated queue. This ensures that virtqueue used notifications are handled on the same vCPU that submitted virtqueue buffers. When another vCPU handles the the notification an IPI will be necessary to wake the submission vCPU a

Re: [PATCH v6 5/7] virtio-scsi-pci: default num_queues to -smp N

2020-08-18 Thread Cornelia Huck
On Tue, 18 Aug 2020 15:33:46 +0100 Stefan Hajnoczi wrote: > Automatically size the number of virtio-scsi-pci, vhost-scsi-pci, and > vhost-user-scsi-pci request virtqueues to match the number of vCPUs. > Other transports continue to default to 1 request virtqueue. > > A 1:1 virtqueue:vCPU mapping

[PATCH 2/2] hw/core/sysbus: Make sysbus_pass_irq() arguments self-describing

2020-08-18 Thread Philippe Mathieu-Daudé
Make the direction sysbus_pass_irq() pass the GPIOs more obvious by renaming its arguments as 'from_dev' and 'to_dev'. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/sysbus.h | 7 ++- hw/core/sysbus.c| 5 ++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/include/

[RFC PATCH v3 01/34] Hexagon Update MAINTAINERS file

2020-08-18 Thread Taylor Simpson
Add Taylor Simpson as the Hexagon target maintainer Signed-off-by: Taylor Simpson --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0886eb3..d85da55 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -184,6 +184,14 @@ F: include/hw/cris/ F: t

[RFC PATCH v3 10/34] Hexagon (target/hexagon) instruction and packet types

2020-08-18 Thread Taylor Simpson
The insn_t and packet_t are the interface between instruction decoding and TCG code generation Signed-off-by: Taylor Simpson --- target/hexagon/insn.h | 75 +++ 1 file changed, 75 insertions(+) create mode 100644 target/hexagon/insn.h diff --git

[RFC PATCH v3 03/34] Hexagon (include/elf.h) ELF machine definition

2020-08-18 Thread Taylor Simpson
Define EM_HEXAGON 164 Signed-off-by: Taylor Simpson Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- include/elf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/elf.h b/include/elf.h index 5b06b55..447da08 100644 --- a/include/elf.h +++ b/include/elf.h

<    1   2   3   4   5   >