Re: [PATCH v3 00/14] macOS PV Graphics and new vmapple machine type

2024-10-03 Thread Alex Bennée
ing of the extra instructions that Apple added (although in theory that should only be run in Apples own ML libraries). -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v3 10/22] hw/sdhci: fix -Werror=maybe-uninitialized false-positive

2024-09-30 Thread Alex Bennée
length : 64 * KiB; means we always have something. Although get_adma_description() is deserving of a g_assert_not_reached() lest we end up re-using a previous descr. I guess wider re-factoring is out of scope for this series though: Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v3] virtio: Implement Virtio Backend for SD/MMC in QEMU

2024-07-03 Thread Alex Bennée
VirtIO specification? -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH 4/4] python: enable testing for 3.13

2024-07-03 Thread Alex Bennée
lowed to > fail.) > > Signed-off-by: John Snow Reviewed-by: Alex Bennée Tested-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH 2/4] python: Do not use pylint 3.2.4 with python 3.8

2024-07-03 Thread Alex Bennée
John Snow writes: > There is a bug in this version, > see: https://github.com/pylint-dev/pylint/issues/9751 > > Signed-off-by: John Snow Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH 1/4] python: linter changes for pylint 3.x

2024-07-03 Thread Alex Bennée
/machine/machine.py:345:52: E0606: Possibly using variable 'sock' before > assignment (possibly-used-before-assignment) > qemu/utils/qemu_ga_client.py:168:4: R1711: Useless return at end of function > or method (useless-return) > > Signed-off-by: John Snow Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PULL 10/38] tests/qtest/migration: Add a test for the analyze-migration script

2024-05-22 Thread Alex Bennée
Fabiano Rosas writes: > Alex Bennée writes: > >> Juan Quintela writes: >> >>> From: Fabiano Rosas >>> >>> Add a smoke test that migrates to a file and gives it to the >>> script. It should catch the most annoying errors such as changes in

Re: [PULL 10/38] tests/qtest/migration: Add a test for the analyze-migration script

2024-05-21 Thread Alex Bennée
addest); > +#ifndef _WIN32 > +qtest_add_func("/migration/analyze-script", test_analyze_script); > +#endif > qtest_add_func("/migration/precopy/unix/plain", test_precopy_unix_plain); > qtest_add_func("/migration/precopy/unix/xbzrle", > test_precopy_unix_xbzrle); > /* > diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build > index 66795cfcd2..d6022ebd64 100644 > --- a/tests/qtest/meson.build > +++ b/tests/qtest/meson.build > @@ -357,6 +357,8 @@ foreach dir : target_dirs > test_deps += [qsd] >endif > > + qtest_env.set('PYTHON', python.full_path()) > + >foreach test : target_qtests > # Executables are shared across targets, declare them only the first > time we > # encounter them -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v3 6/6] hw/xen: convert stderr prints to error/warn reports

2024-01-30 Thread Alex Bennée
nitor or stderr), and in >> a uniform format. >> Use error_printf() & friends to print additional information. > > This commit changes fprintfs that report warnings and errors to the > appropriate report functions. > > Reviewed-by: Philippe Mathieu-Daudé > Sig

Re: [PATCH v3 5/6] hw/xen/xen-hvm-common.c: convert DPRINTF to tracepoints

2024-01-30 Thread Alex Bennée
le that are used for tracing > into tracepoints. > > Signed-off-by: Manos Pitsidianakis Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v3 4/6] hw/xen/xen-mapcache.c: convert DPRINTF to tracepoints

2024-01-30 Thread Alex Bennée
le that are used for tracing > into tracepoints. > > Signed-off-by: Manos Pitsidianakis Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v3 3/6] hw/arm/xen_arm.c: convert DPRINTF to trace events and error/warn reports

2024-01-30 Thread Alex Bennée
s file that are used for tracing > into trace events. Errors or warnings are converted to error_report and > warn_report calls. > > Signed-off-by: Manos Pitsidianakis Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v3 2/6] hw/arm/z2: convert DPRINTF to trace events and guest errors

2024-01-30 Thread Alex Bennée
s file that are used for tracing > into trace events. DPRINTFs that report guest errors are logged with > LOG_GUEST_ERROR. > > Signed-off-by: Manos Pitsidianakis Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v3 1/6] hw/arm/strongarm.c: convert DPRINTF to trace events and guest errors

2024-01-29 Thread Alex Bennée
s file that are used for tracing > into trace events. DPRINTFs that report guest errors are logged with > LOG_GUEST_ERROR.# > > Signed-off-by: Manos Pitsidianakis Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PULL 33/36] hw/elf_ops: Ignore loadable segments with zero size

2024-01-24 Thread Alex Bennée
} > -/* > - * We need to zero'ify the space that is not copied > - * from file > - */ > -if (file_size < mem_size) { > - res = address_space_set(as ? as : > &address_space_memory, > -addr + file_size, 0, > -mem_size - file_size, > -MEMTXATTRS_UNSPECIFIED); > -if (res != MEMTX_OK) { > -goto fail; > -} > -} > } > } -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v9 00/11] virtio: cleanup vhost-user-generic and reduce c&p + vhost-user-input

2024-01-10 Thread Alex Bennée
Alex Bennée writes: > A lot of our vhost-user stubs are large chunks of boilerplate that do > (mostly) the same thing. This series continues the cleanups by > splitting the vhost-user-base and vhost-user-generic implementations. > After adding a new vq_size property the rng, gpio a

Re: [PATCH v9 01/11] virtio: split into vhost-user-base and vhost-user-device

2024-01-05 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > On 4/1/24 22:09, Alex Bennée wrote: >> Lets keep a cleaner split between the base class and the derived >> vhost-user-device which we can use for generic vhost-user stubs. This >> includes an update to introduce the vq_size property so the nu

[PATCH v9 01/11] virtio: split into vhost-user-base and vhost-user-device

2024-01-04 Thread Alex Bennée
Lets keep a cleaner split between the base class and the derived vhost-user-device which we can use for generic vhost-user stubs. This includes an update to introduce the vq_size property so the number of entries in a virtq can be defined. Signed-off-by: Alex Bennée --- v5 - s/parent

[PATCH v9 11/11] hw/virtio: derive vhost-user-input from vhost-user-base

2024-01-04 Thread Alex Bennée
esolve the error, remove the duplicate property from vhost-user-input-pci. Signed-off-by: Leo Yan Reviewed-by: Manos Pitsidianakis Message-Id: <20231120043721.50555-5-leo@linaro.org> Signed-off-by: Alex Bennée --- include/hw/virtio/virtio-input.h | 6 +- hw/virtio/vhost-user-input-p

[PATCH v9 08/11] hw/virtio: Support set_config() callback in vhost-user-base

2024-01-04 Thread Alex Bennée
Message-Id: <20231120043721.50555-2-leo@linaro.org> Signed-off-by: Alex Bennée --- hw/virtio/vhost-user-base.c | 17 + 1 file changed, 17 insertions(+) diff --git a/hw/virtio/vhost-user-base.c b/hw/virtio/vhost-user-base.c index 78cfa9a5bbc..a83167191ee 100644 --- a/hw/virtio

[PATCH v9 03/11] hw/virtio: derive vhost-user-rng from vhost-user-base

2024-01-04 Thread Alex Bennée
Now we can take advantage of our new base class and make vhost-user-rng a much simpler boilerplate wrapper. Also as this doesn't require any target specific hacks we only need to build the stubs once. Acked-by: Mark Cave-Ayland Signed-off-by: Alex Bennée --- v5 - don't remove the i

[PATCH v9 04/11] hw/virtio: derive vhost-user-gpio from vhost-user-base

2024-01-04 Thread Alex Bennée
Now the new base class supports config handling we can take advantage and make vhost-user-gpio a much simpler boilerplate wrapper. Also as this doesn't require any target specific hacks we only need to build the stubs once. Acked-by: Mark Cave-Ayland Acked-by: Viresh Kumar Signed-off-by:

[PATCH v9 00/11] virtio: cleanup vhost-user-generic and reduce c&p + vhost-user-input

2024-01-04 Thread Alex Bennée
v4 - dropped the F_TRANSPORT work for another series - added vhost-user-sound Alex Bennée (6): virtio: split into vhost-user-base and vhost-user-device hw/virtio: convert vhost-user-base to async shutdown hw/virtio: derive vhost-user-rng from vhost-user-base hw/virtio: derive vhost-user-

[PATCH v9 05/11] hw/virtio: derive vhost-user-i2c from vhost-user-base

2024-01-04 Thread Alex Bennée
Now we can take advantage of the new base class and make vhost-user-i2c a much simpler boilerplate wrapper. Also as this doesn't require any target specific hacks we only need to build the stubs once. Acked-by: Mark Cave-Ayland Acked-by: Viresh Kumar Signed-off-by: Alex Bennée --- v7

[PATCH v9 07/11] docs/system: add a basic enumeration of vhost-user devices

2024-01-04 Thread Alex Bennée
Make it clear the vhost-user-device is intended for expert use only. Signed-off-by: Alex Bennée --- v5 - split vhost-user-device out of the table - sort the table alphabetically - add sound and scmi devices v6 - add note re vhost-user-device v7 - fix patching description --- docs

[PATCH v9 09/11] docs/system: Add vhost-user-input documentation

2024-01-04 Thread Alex Bennée
From: Leo Yan This adds basic documentation for vhost-user-input. Signed-off-by: Leo Yan Message-Id: <20231120043721.50555-3-leo@linaro.org> Signed-off-by: Alex Bennée --- MAINTAINERS | 1 + docs/system/device-emulation.rst | 1 + docs/

[PATCH v9 06/11] hw/virtio: add vhost-user-snd and virtio-snd-pci devices

2024-01-04 Thread Alex Bennée
-pci,chardev=vsnd,id=snd \ /path/to/disk [AJB: imported from https://github.com/epilys/qemu-virtio-snd/commit/54ae1cdd15fef2d88e9e387a175f099a38c636f4.patch] Signed-off-by: Alex Bennée Signed-off-by: Manos Pitsidianakis --- v7 - s/parent/parent_obj/ - add MAINTAINERS - add

[PATCH v9 10/11] hw/virtio: Move vhost-user-input into virtio folder

2024-01-04 Thread Alex Bennée
y: Leo Yan Reviewed-by: Manos Pitsidianakis Message-Id: <20231120043721.50555-4-leo@linaro.org> Signed-off-by: Alex Bennée --- MAINTAINERS | 2 +- hw/{input => virtio}/vhost-user-input.c | 0 hw/input/meson.build| 1 - hw

[PATCH v9 02/11] hw/virtio: convert vhost-user-base to async shutdown

2024-01-04 Thread Alex Bennée
We are about to convert at least one stubs which was using the async teardown so lets use it for all the cases. Signed-off-by: Alex Bennée --- hw/virtio/vhost-user-base.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/hw/virtio/vhost-user-base.c b/hw

qemu-block@nongnu.org

2023-11-07 Thread Alex Bennée
"Michael S. Tsirkin" writes: > On Tue, Nov 07, 2023 at 06:07:45PM +, Alex Bennée wrote: >> A lot of our vhost-user stubs are large chunks of boilerplate that do >> (mostly) the same thing. This series continues the cleanups by >> splitting the vhost-u

qemu-block@nongnu.org

2023-11-07 Thread Alex Bennée
"Michael S. Tsirkin" writes: > On Mon, Nov 06, 2023 at 07:15:09PM +, Alex Bennée wrote: >> A lot of our vhost-user stubs are large chunks of boilerplate that do >> (mostly) the same thing. This series continues the cleanups by >> splitting the vhost-u

[PATCH v8 7/7] docs/system: add a basic enumeration of vhost-user devices

2023-11-07 Thread Alex Bennée
Make it clear the vhost-user-device is intended for expert use only. Signed-off-by: Alex Bennée --- v5 - split vhost-user-device out of the table - sort the table alphabetically - add sound and scmi devices v6 - add note re vhost-user-device v7 - fix patching description --- docs

[PATCH v8 1/7] virtio: split into vhost-user-base and vhost-user-device

2023-11-07 Thread Alex Bennée
Lets keep a cleaner split between the base class and the derived vhost-user-device which we can use for generic vhost-user stubs. This includes an update to introduce the vq_size property so the number of entries in a virtq can be defined. Signed-off-by: Alex Bennée --- v5 - s/parent

[PATCH v8 5/7] hw/virtio: derive vhost-user-i2c from vhost-user-base

2023-11-07 Thread Alex Bennée
Now we can take advantage of the new base class and make vhost-user-i2c a much simpler boilerplate wrapper. Also as this doesn't require any target specific hacks we only need to build the stubs once. Acked-by: Mark Cave-Ayland Acked-by: Viresh Kumar Signed-off-by: Alex Bennée --- v7

[PATCH v8 4/7] hw/virtio: derive vhost-user-gpio from vhost-user-base

2023-11-07 Thread Alex Bennée
Now the new base class supports config handling we can take advantage and make vhost-user-gpio a much simpler boilerplate wrapper. Also as this doesn't require any target specific hacks we only need to build the stubs once. Acked-by: Mark Cave-Ayland Acked-by: Viresh Kumar Signed-off-by:

[PATCH v8 3/7] hw/virtio: derive vhost-user-rng from vhost-user-base

2023-11-07 Thread Alex Bennée
Now we can take advantage of our new base class and make vhost-user-rng a much simpler boilerplate wrapper. Also as this doesn't require any target specific hacks we only need to build the stubs once. Acked-by: Mark Cave-Ayland Signed-off-by: Alex Bennée --- v5 - don't remove the i

[PATCH v8 6/7] hw/virtio: add vhost-user-snd and virtio-snd-pci devices

2023-11-07 Thread Alex Bennée
-pci,chardev=vsnd,id=snd \ /path/to/disk [AJB: imported from https://github.com/epilys/qemu-virtio-snd/commit/54ae1cdd15fef2d88e9e387a175f099a38c636f4.patch] Signed-off-by: Alex Bennée Signed-off-by: Manos Pitsidianakis --- v7 - s/parent/parent_obj/ - add MAINTAINERS - add

[PATCH v8 2/7] hw/virtio: convert vhost-user-base to async shutdown

2023-11-07 Thread Alex Bennée
We are about to convert at least one stubs which was using the async teardown so lets use it for all the cases. Signed-off-by: Alex Bennée --- hw/virtio/vhost-user-base.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/hw/virtio/vhost-user-base.c b/hw

qemu-block@nongnu.org

2023-11-07 Thread Alex Bennée
ilure) v6 - re-base to current master - make vhost-user-device abstract - mention abstractness in docs v5 - addressing comments and tags - improved the docs v4 - dropped the F_TRANSPORT work for another series - added vhost-user-sound Alex Bennée (6): virtio: split into vhost-use

qemu-block@nongnu.org

2023-11-07 Thread Alex Bennée
r - make vhost-user-device abstract - mention abstractness in docs v5 - addressing comments and tags - improved the docs v4 - dropped the F_TRANSPORT work for another series - added vhost-user-sound Alex Bennée (6): virtio: split into vhost-user-base and vhost-user-device hw/virti

[PATCH v7 6/7] hw/virtio: add vhost-user-snd and virtio-snd-pci devices

2023-11-07 Thread Alex Bennée
-pci,chardev=vsnd,id=snd \ /path/to/disk [AJB: imported from https://github.com/epilys/qemu-virtio-snd/commit/54ae1cdd15fef2d88e9e387a175f099a38c636f4.patch] Signed-off-by: Alex Bennée Signed-off-by: Manos Pitsidianakis --- v7 - s/parent/parent_obj/ - add MAINTAINERS - add

[PATCH v7 5/7] hw/virtio: derive vhost-user-i2c from vhost-user-base

2023-11-07 Thread Alex Bennée
Now we can take advantage of the new base class and make vhost-user-i2c a much simpler boilerplate wrapper. Also as this doesn't require any target specific hacks we only need to build the stubs once. Acked-by: Mark Cave-Ayland Acked-by: Viresh Kumar Signed-off-by: Alex Bennée --- v7

[PATCH v7 2/7] hw/virtio: convert vhost-user-base to async shutdown

2023-11-07 Thread Alex Bennée
We are about to convert at least one stubs which was using the async teardown so lets use it for all the cases. Signed-off-by: Alex Bennée --- hw/virtio/vhost-user-base.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/hw/virtio/vhost-user-base.c b/hw

[PATCH v7 4/7] hw/virtio: derive vhost-user-gpio from vhost-user-base

2023-11-07 Thread Alex Bennée
Now the new base class supports config handling we can take advantage and make vhost-user-gpio a much simpler boilerplate wrapper. Also as this doesn't require any target specific hacks we only need to build the stubs once. Acked-by: Mark Cave-Ayland Acked-by: Viresh Kumar Signed-off-by:

[PATCH v7 7/7] docs/system: add a basic enumeration of vhost-user devices

2023-11-07 Thread Alex Bennée
Make it clear the vhost-user-device is intended for expert use only. Signed-off-by: Alex Bennée Message-Id: <20231009095937.195728-7-alex.ben...@linaro.org> --- v5 - split vhost-user-device out of the table - sort the table alphabetically - add sound and scmi devices v6 - add n

[PATCH v7 3/7] hw/virtio: derive vhost-user-rng from vhost-user-base

2023-11-07 Thread Alex Bennée
Now we can take advantage of our new base class and make vhost-user-rng a much simpler boilerplate wrapper. Also as this doesn't require any target specific hacks we only need to build the stubs once. Acked-by: Mark Cave-Ayland Signed-off-by: Alex Bennée --- v5 - don't remove the i

[PATCH v7 1/7] virtio: split into vhost-user-base and vhost-user-device

2023-11-07 Thread Alex Bennée
Lets keep a cleaner split between the base class and the derived vhost-user-device which we can use for generic vhost-user stubs. This includes an update to introduce the vq_size property so the number of entries in a virtq can be defined. Signed-off-by: Alex Bennée --- v5 - s/parent

Re: [PATCH v6 1/6] virtio: split into vhost-user-base and vhost-user-device

2023-11-07 Thread Alex Bennée
"Michael S. Tsirkin" writes: > On Mon, Nov 06, 2023 at 07:15:10PM +, Alex Bennée wrote: >> Lets keep a cleaner split between the base class and the derived >> vhost-user-device which we can use for generic vhost-user stubs. This >> includes an update to introd

Re: [PATCH v6 1/6] virtio: split into vhost-user-base and vhost-user-device

2023-11-07 Thread Alex Bennée
"Michael S. Tsirkin" writes: > On Mon, Nov 06, 2023 at 07:15:10PM +, Alex Bennée wrote: >> Lets keep a cleaner split between the base class and the derived >> vhost-user-device which we can use for generic vhost-user stubs. This >> includes an update to introd

Re: [PATCH v5 3/6] hw/virtio: derive vhost-user-gpio from vhost-user-base

2023-11-06 Thread Alex Bennée
"Michael S. Tsirkin" writes: > On Mon, Nov 06, 2023 at 05:30:39PM +, Alex Bennée wrote: >> "Michael S. Tsirkin" writes: >> >> > On Thu, Oct 19, 2023 at 10:56:07AM +0100, Alex Bennée wrote: >> >> Now the new base class supports config

[PATCH v6 1/6] virtio: split into vhost-user-base and vhost-user-device

2023-11-06 Thread Alex Bennée
Lets keep a cleaner split between the base class and the derived vhost-user-device which we can use for generic vhost-user stubs. This includes an update to introduce the vq_size property so the number of entries in a virtq can be defined. Signed-off-by: Alex Bennée Message-Id

qemu-block@nongnu.org

2023-11-06 Thread Alex Bennée
addressing comments and tags - improved the docs v4 - dropped the F_TRANSPORT work for another series - added vhost-user-sound Alex Bennée (5): virtio: split into vhost-user-base and vhost-user-device hw/virtio: derive vhost-user-rng from vhost-user-base hw/virtio: derive vhost-user

[PATCH v6 4/6] hw/virtio: derive vhost-user-i2c from vhost-user-base

2023-11-06 Thread Alex Bennée
land Acked-by: Viresh Kumar Signed-off-by: Alex Bennée Message-Id: <20231009095937.195728-5-alex.ben...@linaro.org> --- include/hw/virtio/vhost-user-i2c.h | 14 +- hw/virtio/vhost-user-i2c.c | 272 ++--- hw/virtio/meson.build | 5 +- 3

[PATCH v6 2/6] hw/virtio: derive vhost-user-rng from vhost-user-base

2023-11-06 Thread Alex Bennée
Now we can take advantage of our new base class and make vhost-user-rng a much simpler boilerplate wrapper. Also as this doesn't require any target specific hacks we only need to build the stubs once. Acked-by: Mark Cave-Ayland Signed-off-by: Alex Bennée Message-Id: <20231009095937.

[PATCH v6 3/6] hw/virtio: derive vhost-user-gpio from vhost-user-base

2023-11-06 Thread Alex Bennée
t; Acked-by: Mark Cave-Ayland Acked-by: Viresh Kumar Signed-off-by: Alex Bennée Message-Id: <20231009095937.195728-4-alex.ben...@linaro.org> --- include/hw/virtio/vhost-user-gpio.h | 23 +- hw/virtio/vhost-user-gpio.c | 406 ++-- hw/virtio/meson.build

[PATCH v6 6/6] docs/system: add a basic enumeration of vhost-user devices

2023-11-06 Thread Alex Bennée
Make it clear the vhost-user-device is intended for expert use only. Signed-off-by: Alex Bennée Message-Id: <20231009095937.195728-7-alex.ben...@linaro.org> --- v5 - split vhost-user-device out of the table - sort the table alphabetically - add sound and scmi devices v6 - add n

[PATCH v6 5/6] hw/virtio: add vhost-user-snd and virtio-snd-pci devices

2023-11-06 Thread Alex Bennée
-pci,chardev=vsnd,id=snd \ /path/to/disk [AJB: imported from https://github.com/epilys/qemu-virtio-snd/commit/54ae1cdd15fef2d88e9e387a175f099a38c636f4.patch] Signed-off-by: Alex Bennée Message-Id: <20231009095937.195728-6-alex.ben...@linaro.org> --- include/hw/virtio/vhost-user

Re: [PATCH v5 1/6] virtio: split into vhost-user-base and vhost-user-device

2023-11-06 Thread Alex Bennée
"Michael S. Tsirkin" writes: > On Thu, Oct 19, 2023 at 10:56:05AM +0100, Alex Bennée wrote: >> Lets keep a cleaner split between the base class and the derived >> vhost-user-device which we can use for generic vhost-user stubs. This >> includes an update to introd

Re: [PATCH v5 3/6] hw/virtio: derive vhost-user-gpio from vhost-user-base

2023-11-06 Thread Alex Bennée
"Michael S. Tsirkin" writes: > On Thu, Oct 19, 2023 at 10:56:07AM +0100, Alex Bennée wrote: >> Now the new base class supports config handling we can take advantage >> and make vhost-user-gpio a much simpler boilerplate wrapper. Also as >> this doesn't requi

qemu-block@nongnu.org

2023-10-24 Thread Alex Bennée
Alex Bennée writes: > A lot of our vhost-user stubs are large chunks of boilerplate that do > (mostly) the same thing. This series continues the cleanups by > splitting the vhost-user-base and vhost-user-generic implementations. > After adding a new vq_size property the rng, gpio a

Re: [PATCH 0/12] Get Xen PV shim running in qemu

2023-10-24 Thread Alex Bennée
sort of overview document in our manual for how Xen guests are supported under KVM? >-append "loglvl=all -- console=hvc0 root=/dev/xvda1" > -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v5 5/6] hw/virtio: add vhost-user-snd and virtio-snd-pci devices

2023-10-20 Thread Alex Bennée
Viresh Kumar writes: > On 19-10-23, 10:56, Alex Bennée wrote: >> From: Manos Pitsidianakis >> >> Tested with rust-vmm vhost-user-sound daemon: >> >> RUST_LOG=trace cargo run --bin vhost-user-sound -- --socket >> /tmp/snd.sock --backend null &g

[PATCH v5 3/6] hw/virtio: derive vhost-user-gpio from vhost-user-base

2023-10-19 Thread Alex Bennée
t; Acked-by: Mark Cave-Ayland Acked-by: Viresh Kumar Signed-off-by: Alex Bennée Message-Id: <20231009095937.195728-4-alex.ben...@linaro.org> --- include/hw/virtio/vhost-user-gpio.h | 23 +- hw/virtio/vhost-user-gpio.c | 407 ++-- hw/virtio/meson.build

[PATCH v5 4/6] hw/virtio: derive vhost-user-i2c from vhost-user-base

2023-10-19 Thread Alex Bennée
land Acked-by: Viresh Kumar Signed-off-by: Alex Bennée Message-Id: <20231009095937.195728-5-alex.ben...@linaro.org> --- include/hw/virtio/vhost-user-i2c.h | 14 +- hw/virtio/vhost-user-i2c.c | 272 ++--- hw/virtio/meson.build | 5 +- 3

[PATCH v5 1/6] virtio: split into vhost-user-base and vhost-user-device

2023-10-19 Thread Alex Bennée
Lets keep a cleaner split between the base class and the derived vhost-user-device which we can use for generic vhost-user stubs. This includes an update to introduce the vq_size property so the number of entries in a virtq can be defined. Signed-off-by: Alex Bennée Message-Id

[PATCH v5 5/6] hw/virtio: add vhost-user-snd and virtio-snd-pci devices

2023-10-19 Thread Alex Bennée
-pci,chardev=vsnd,id=snd \ /path/to/disk [AJB: imported from https://github.com/epilys/qemu-virtio-snd/commit/54ae1cdd15fef2d88e9e387a175f099a38c636f4.patch] Signed-off-by: Alex Bennée Message-Id: <20231009095937.195728-6-alex.ben...@linaro.org> --- include/hw/virtio/vhost-user

[PATCH v5 2/6] hw/virtio: derive vhost-user-rng from vhost-user-base

2023-10-19 Thread Alex Bennée
Now we can take advantage of our new base class and make vhost-user-rng a much simpler boilerplate wrapper. Also as this doesn't require any target specific hacks we only need to build the stubs once. Acked-by: Mark Cave-Ayland Signed-off-by: Alex Bennée Message-Id: <20231009095937.

qemu-block@nongnu.org

2023-10-19 Thread Alex Bennée
her series - added vhost-user-sound Alex Bennée (5): virtio: split into vhost-user-base and vhost-user-device hw/virtio: derive vhost-user-rng from vhost-user-base hw/virtio: derive vhost-user-gpio from vhost-user-base hw/virtio: derive vhost-user-i2c from vhost-user-base docs/system: a

[PATCH v5 6/6] docs/system: add a basic enumeration of vhost-user devices

2023-10-19 Thread Alex Bennée
Make it clear the vhost-user-device is intended for expert use only. Signed-off-by: Alex Bennée Message-Id: <20231009095937.195728-7-alex.ben...@linaro.org> --- v5 - split vhost-user-device out of the table - sort the table alphabetically - add sound and scmi devices --- docs/

Re: [PATCH v4 2/6] hw/virtio: derive vhost-user-rng from vhost-user-base

2023-10-09 Thread Alex Bennée
Manos Pitsidianakis writes: > On Mon, 09 Oct 2023 12:59, Alex Bennée wrote: >>diff --git a/hw/virtio/meson.build b/hw/virtio/meson.build >>index 51c3f97c2d..d0b963199c 100644 >>--- a/hw/virtio/meson.build >>+++ b/hw/virtio/meson.build >>@@ -18,8 +18,15 @@ if

[PATCH v4 3/6] hw/virtio: derive vhost-user-gpio from vhost-user-base

2023-10-09 Thread Alex Bennée
Signed-off-by: Alex Bennée Acked-by: Mark Cave-Ayland --- v2 - use new vhost-user-base - move build to common code v3 - fix inadvertent double link v4 - merge conflict - update includes --- include/hw/virtio/vhost-user-gpio.h | 23 +- hw/virtio/vhost-user-gpio.c

[PATCH v4 2/6] hw/virtio: derive vhost-user-rng from vhost-user-base

2023-10-09 Thread Alex Bennée
and Signed-off-by: Alex Bennée --- v2 - new derivation layout - move directly to softmmu_virtio_ss v3 - use vqsize --- include/hw/virtio/vhost-user-rng.h | 11 +- hw/virtio/vhost-user-rng.c | 278 +++-- hw/virtio/meson.build | 11 +- 3 files

[PATCH v4 5/6] hw/virtio: add vhost-user-snd and virtio-snd-pci devices

2023-10-09 Thread Alex Bennée
-pci,chardev=vsnd,id=snd \ /path/to/disk [AJB: imported from https://github.com/epilys/qemu-virtio-snd/commit/54ae1cdd15fef2d88e9e387a175f099a38c636f4.patch] Signed-off-by: Alex Bennée --- v1 - import and test --- include/hw/virtio/vhost-user-snd.h | 26 +++ hw/virtio/vhost

[PATCH v4 4/6] hw/virtio: derive vhost-user-i2c from vhost-user-base

2023-10-09 Thread Alex Bennée
and Signed-off-by: Alex Bennée --- v2 - update to new inheritance scheme - move build to common code v3 - fix merge conflict in meson - style updates, remove duplicate includes v4 - use vqsize --- include/hw/virtio/vhost-user-i2c.h | 14 +- hw/virtio/vhost-user-i2c.c

[PATCH v4 1/6] virtio: split into vhost-user-base and vhost-user-device

2023-10-09 Thread Alex Bennée
Lets keep a cleaner split between the base class and the derived vhost-user-device which we can use for generic vhost-user stubs. This includes an update to introduce the vq_size property so the number of entries in a virtq can be defined. Signed-off-by: Alex Bennée --- v1 - merge and re-base

[PATCH v4 6/6] docs/system: add a basic enumeration of vhost-user devices

2023-10-09 Thread Alex Bennée
Make it clear the vhost-user-device is intended for expert use only. Signed-off-by: Alex Bennée --- v2 - make clear vhost-user-device for expert use --- docs/system/devices/vhost-user-rng.rst | 2 ++ docs/system/devices/vhost-user.rst | 41 ++ 2 files changed, 43

qemu-block@nongnu.org

2023-10-09 Thread Alex Bennée
for F_TRANSPORT are a bit more invasive and still need a bit of debugging but I wanted to get this stuff merged now. Alex Bennée (5): virtio: split into vhost-user-base and vhost-user-device hw/virtio: derive vhost-user-rng from vhost-user-base hw/virtio: derive vhost-user-gpio from vhost-user-b

Re: [PATCH v3 05/16] plugins/loader: Clean up global variable shadowing

2023-10-04 Thread Alex Bennée
^ > > /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/getopt.h:77:14: > note: previous declaration is here > extern char *optarg;/* getopt(3) external > variables */ My same raised eyebrows are how exactly getopt.h is getting included b

Re: [PATCH v3 13/16] semihosting/arm-compat: Clean up local variable shadowing

2023-10-04 Thread Alex Bennée
> > case TARGET_SYS_EXIT: > case TARGET_SYS_EXIT_EXTENDED: > +{ > +uint32_t ret; > + I suspect this could just as well be an int with an explicit cast for ret = arg1 because the consumers are all expecting int anyway. Otherwise: Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v3 09/16] semihosting: Clean up global variable shadowing

2023-10-04 Thread Alex Bennée
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/getopt.h:77:14: > note: previous declaration is here > extern char *optarg;/* getopt(3) external > variables */ I'm going to assume the getopt.h is somehow swept up by osdep.h? Anyway: A

Re: [PATCH v3 07/20] virtio: add vhost-user-base and a generic vhost-user-device

2023-09-05 Thread Alex Bennée
Matias Ezequiel Vara Larsen writes: > On Mon, Jul 10, 2023 at 04:35:09PM +0100, Alex Bennée wrote: >> In theory we shouldn't need to repeat so much boilerplate to support >> vhost-user backends. This provides a generic vhost-user-base QOM >> object and a derived vhost

Re: [PATCH v3 10/20] hw/virtio: add config support to vhost-user-device

2023-08-31 Thread Alex Bennée
Albert Esteve writes: > Sorry to bring up this post, it's been a while since you posted. > But I have been testing the patch the last couple of days. > > On Mon, Jul 10, 2023 at 9:58 PM Michael S. Tsirkin wrote: > > On Mon, Jul 10, 2023 at 04:35:12PM +0100, Alex Bennée

Re: [PATCH] qemu-options.hx: Rephrase the descriptions of the -hd* and -cdrom options

2023-08-29 Thread Alex Bennée
se file as CD-ROM image on the default bus of the emulated machine > +(which is IDE1 master on x86, so you cannot use ``-hdc`` and ``-cdrom`` > +at the same time there). On systems that support it, you can use the > +host CD-ROM by using ``/dev/cdrom`` as filename. > ERST > > DEF("blockdev", HAS_ARG, QEMU_OPTION_blockdev, Otherwise: Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

[RFC PATCH v3 13/20] docs/system: add a basic enumeration of vhost-user devices

2023-07-10 Thread Alex Bennée
Make it clear the vhost-user-device is intended for expert use only. Signed-off-by: Alex Bennée --- v2 - make clear vhost-user-device for expert use --- docs/system/devices/vhost-user-rng.rst | 2 ++ docs/system/devices/vhost-user.rst | 41 ++ 2 files changed, 43

[PATCH v3 12/20] hw/virtio: derive vhost-user-i2c from vhost-user-base

2023-07-10 Thread Alex Bennée
Now we can take advantage of the new base class and make vhost-user-i2c a much simpler boilerplate wrapper. Also as this doesn't require any target specific hacks we only need to build the stubs once. Signed-off-by: Alex Bennée --- v2 - update to new inheritance scheme - move bui

[RFC PATCH v3 16/20] hw/virtio: move virtq initialisation into internal helper

2023-07-10 Thread Alex Bennée
This will be useful if we end up having to consider initialising the virtqs at a seperate time. Signed-off-by: Alex Bennée --- hw/virtio/vhost.c | 60 --- 1 file changed, 41 insertions(+), 19 deletions(-) diff --git a/hw/virtio/vhost.c b/hw/virtio

[RFC PATCH v3 20/20] hw/virtio: allow vhost-user-device to be driven by backend

2023-07-10 Thread Alex Bennée
Instead of requiring all the information up front allow the vhost_dev_init to complete and then see what information we have from the backend. This does change the order around somewhat. Signed-off-by: Alex Bennée --- hw/virtio/vhost-user-device.c | 45 +-- 1

[RFC PATCH v3 14/20] docs/interop: define STANDALONE protocol feature for vhost-user

2023-07-10 Thread Alex Bennée
) which the back-end can advertise which allows a probe message to be sent to get all the details QEMU needs to know in one message. Signed-off-by: Alex Bennée --- Initial RFC for discussion. I intend to prototype this work with QEMU and one of the rust-vmm vhost-user daemons. --- docs/interop/vhost

[PATCH v3 01/20] include: attempt to document device_class_set_props

2023-07-10 Thread Alex Bennée
id, VIRTIO_ID_RNG), DEFINE_PROP_UINT32("num_vqs", VHostUserDevice, num_vqs, 1), DEFINE_PROP_END_OF_LIST(), }; And so far the API for doing that isn't super clear. Signed-off-by: Alex Bennée --- include/hw/qdev-core.h | 9 + 1 file changed, 9 insertions(+) diff -

[PATCH v3 09/20] hw/virtio: derive vhost-user-rng from vhost-user-device

2023-07-10 Thread Alex Bennée
Now we can take advantage of our new base class and make vhost-user-rng a much simpler boilerplate wrapper. Also as this doesn't require any target specific hacks we only need to build the stubs once. Signed-off-by: Alex Bennée --- v2 - new derivation layout - move direct

[RFC PATCH v3 15/20] hw/virtio: move vhost_user_init earlier

2023-07-10 Thread Alex Bennée
In preparation for getting the details of the VirtIO device directly from the vhost-user daemon we should connect once we have validated the chardev. We will actually move the connection in the next patch to keep the changes small and bisectable. Signed-off-by: Alex Bennée --- hw/virtio/vhost

[PATCH v3 10/20] hw/virtio: add config support to vhost-user-device

2023-07-10 Thread Alex Bennée
to: -device vhost-user-gpio-pci Signed-off-by: Alex Bennée --- include/hw/virtio/vhost-user-device.h | 1 + hw/virtio/vhost-user-device.c | 58 ++- 2 files changed, 58 insertions(+), 1 deletion(-) diff --git a/include/hw/virtio/vhost-user-device.h b/include

[RFC PATCH v3 17/20] hw/virtio: push down allocation responsibility for vhost_dev->vqs

2023-07-10 Thread Alex Bennée
objects. Signed-off-by: Alex Bennée --- include/hw/virtio/vhost-user-blk.h | 1 - include/hw/virtio/vhost.h | 9 + backends/vhost-user.c | 1 - hw/block/vhost-user-blk.c | 7 +-- hw/scsi/vhost-scsi.c | 2 -- hw/scsi/vhost-user-scsi.c

[PATCH v3 02/20] include/hw: document the device_class_set_parent_* fns

2023-07-10 Thread Alex Bennée
These are useful functions for when you want proper inheritance of functionality across realize/unrealize calls. Signed-off-by: Alex Bennée --- include/hw/qdev-core.h | 27 +++ 1 file changed, 27 insertions(+) diff --git a/include/hw/qdev-core.h b/include/hw/qdev-core.h

[PATCH v3 03/20] hw/virtio: fix typo in VIRTIO_CONFIG_IRQ_IDX comments

2023-07-10 Thread Alex Bennée
Fixes: 544f0278af (virtio: introduce macro VIRTIO_CONFIG_IRQ_IDX) Signed-off-by: Alex Bennée --- hw/display/vhost-user-gpu.c| 4 ++-- hw/net/virtio-net.c| 4 ++-- hw/virtio/vhost-user-fs.c | 4 ++-- hw/virtio/vhost-user-gpio.c| 2 +- hw/virtio/vhost-vsock-common.c | 4

[PATCH v3 04/20] include/hw/virtio: document virtio_notify_config

2023-07-10 Thread Alex Bennée
Signed-off-by: Alex Bennée --- include/hw/virtio/virtio.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h index 0492d26900..0671989383 100644 --- a/include/hw/virtio/virtio.h +++ b/include/hw/virtio/virtio.h @@ -276,6 +276,13

[PATCH v3 05/20] include/hw/virtio: add kerneldoc for virtio_init

2023-07-10 Thread Alex Bennée
Signed-off-by: Alex Bennée --- include/hw/virtio/virtio.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h index 0671989383..631490bda4 100644 --- a/include/hw/virtio/virtio.h +++ b/include/hw/virtio/virtio.h @@ -219,6 +219,12

[PATCH v3 11/20] hw/virtio: derive vhost-user-gpio from vhost-user-device

2023-07-10 Thread Alex Bennée
Now the new base class supports config handling we can take advantage and make vhost-user-gpio a much simpler boilerplate wrapper. Also as this doesn't require any target specific hacks we only need to build the stubs once. Signed-off-by: Alex Bennée --- v2 - use new vhost-user-base -

[PATCH v3 06/20] include/hw/virtio: document some more usage of notifiers

2023-07-10 Thread Alex Bennée
Lets document some more of the core VirtIODevice structure. Signed-off-by: Alex Bennée --- include/hw/virtio/virtio.h | 8 1 file changed, 8 insertions(+) diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h index 631490bda4..c8f72850bc 100644 --- a/include/hw/virtio

[RFC PATCH v3 19/20] hw/virtio: probe backend for specs if it supports it

2023-07-10 Thread Alex Bennée
Now we have detected and validated the protocol support lets do the probe. The empty state indicates no probe took place. Signed-off-by: Alex Bennée --- include/hw/virtio/vhost.h | 12 +++ hw/virtio/vhost-user.c| 73 +++ hw/virtio/vhost.c | 2

  1   2   3   4   5   6   >