Re: [PATCH v1] scripts/checkpatch.pl: check for placeholders in cover letter patches

2024-01-30 Thread Manos Pitsidianakis
On Tue, 30 Jan 2024 at 10:12, Daniel P. Berrangé wrote: > > On Tue, Jan 30, 2024 at 09:56:15AM +0200, Manos Pitsidianakis wrote: > > Check if a file argument is a cover letter patch produced by > > git-format-patch --cover-letter; It is initialized with subject suffix &quo

[PATCH v1] scripts/checkpatch.pl: check for placeholders in cover letter patches

2024-01-29 Thread Manos Pitsidianakis
Check if a file argument is a cover letter patch produced by git-format-patch --cover-letter; It is initialized with subject suffix " *** SUBJECT HERE ***" and body prefix " *** BLURB HERE ***". If they exist, warn the user. Signed-off-by: Manos Pitsidianakis --- script

[PATCH v3 2/2] hw/block/block.c: improve confusing blk_check_size_and_read_all() error

2024-01-29 Thread Manos Pitsidianakis
ppropriate. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Manos Pitsidianakis --- include/hw/block/block.h | 4 ++-- hw/block/block.c | 25 +++-- hw/block/m25p80.c| 3 ++- hw/block/pflash_cfi01.c | 4 ++-- hw/block/pflash_cfi02.c | 2 +- 5 files c

[PATCH v3 1/2] hw/core/qdev.c: add qdev_get_human_name()

2024-01-29 Thread Manos Pitsidianakis
Add a simple method to return some kind of human readable identifier for use in error messages. Reviewed-by: Stefan Hajnoczi Signed-off-by: Manos Pitsidianakis --- include/hw/qdev-core.h | 14 ++ hw/core/qdev.c | 8 2 files changed, 22 insertions(+) diff --git

[PATCH v3 0/2] hw/block/block.c: improve confusing error

2024-01-29 Thread Manos Pitsidianakis
et_human_name (thanks Phil Mathieu-Daudé ) Manos Pitsidianakis (2): hw/core/qdev.c: add qdev_get_human_name() hw/block/block.c: improve confusing blk_check_size_and_read_all() error include/hw/block/block.h | 4 ++-- include/hw/qdev-core.h | 14 ++

Re: [PATCH v2 3/3] virtio-gpu-rutabaga.c: override resource_destroy method

2024-01-29 Thread Manos Pitsidianakis
On Tue, 30 Jan 2024 03:26, Gurchetan Singh wrote: On Mon, Jan 29, 2024 at 7:46 AM Manos Pitsidianakis < manos.pitsidiana...@linaro.org> wrote: When the Rutabaga GPU device frees resources, it calls rutabaga_resource_unref for that resource_id. However, when the generic VirtIOGPU fun

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

2024-01-29 Thread Manos Pitsidianakis
-by: Manos Pitsidianakis --- hw/xen/trace-events | 11 + hw/xen/xen-mapcache.c | 54 +++ 2 files changed, 35 insertions(+), 30 deletions(-) diff --git a/hw/xen/trace-events b/hw/xen/trace-events index 67a6c41926..a65dc0e55f 100644 --- a/hw/xen

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

2024-01-29 Thread Manos Pitsidianakis
ormat. > 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é Signed-off-by: Manos Pitsidianakis --- hw/xen/xen-hvm-common.c | 12 ++-- hw/xen/xe

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

2024-01-29 Thread Manos Pitsidianakis
that report guest errors are logged with LOG_GUEST_ERROR. Signed-off-by: Manos Pitsidianakis --- hw/arm/trace-events | 7 +++ hw/arm/z2.c | 27 --- 2 files changed, 15 insertions(+), 19 deletions(-) diff --git a/hw/arm/trace-events b/hw/arm/trace-events index

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

2024-01-29 Thread Manos Pitsidianakis
that report guest errors are logged with LOG_GUEST_ERROR.# Signed-off-by: Manos Pitsidianakis --- hw/arm/strongarm.c | 82 - hw/arm/trace-events | 3 ++ 2 files changed, 55 insertions(+), 30 deletions(-) diff --git a/hw/arm/strongarm.c b/hw/arm

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

2024-01-29 Thread Manos Pitsidianakis
-by: Manos Pitsidianakis --- hw/xen/trace-events | 10 +- hw/xen/xen-hvm-common.c | 35 ++- 2 files changed, 27 insertions(+), 18 deletions(-) diff --git a/hw/xen/trace-events b/hw/xen/trace-events index a65dc0e55f..d1b27f6c11 100644 --- a/hw/xen/trace

[PATCH v3 0/6] hw/{arm,xen} convert printfs to trace/reports

2024-01-29 Thread Manos Pitsidianakis
This series changes some printfs to use the trace event framework. Additionally, it converts some error/warning reporting fprintfs to error_report/warn_report. v2 -> v3 : - addressed Peter Maydells's review v1 -> v2 : - addressed Alex's review Manos Pitsidianakis (6):

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

2024-01-29 Thread Manos Pitsidianakis
or warnings are converted to error_report and warn_report calls. Signed-off-by: Manos Pitsidianakis --- hw/arm/trace-events | 5 + hw/arm/xen_arm.c| 23 +++ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/hw/arm/trace-events b/hw/arm/trace-events index

[PATCH v2 3/3] virtio-gpu-rutabaga.c: override resource_destroy method

2024-01-29 Thread Manos Pitsidianakis
ted with that resource_id is then leaked. This commit overrides the resource_destroy class method introduced in the previous commit to fix this. Signed-off-by: Manos Pitsidianakis --- hw/display/virtio-gpu-rutabaga.c | 51 1 file changed, 39 insertions(+), 12 deleti

[PATCH v2 1/3] hw/display/virtio-gpu.c: use reset_bh class method

2024-01-29 Thread Manos Pitsidianakis
for implementations in the future. Reviewed-by: Marc-André Lureau Signed-off-by: Manos Pitsidianakis --- hw/display/virtio-gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c index f8a675eb30..2b73ae585b 100644 --- a/hw

[PATCH v2 2/3] virtio-gpu.c: add resource_destroy class method

2024-01-29 Thread Manos Pitsidianakis
-by: Manos Pitsidianakis --- include/hw/virtio/virtio-gpu.h | 3 +++ hw/display/virtio-gpu.c| 25 ++--- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/include/hw/virtio/virtio-gpu.h b/include/hw/virtio/virtio-gpu.h index 584ba2ed73..b28e7ef0d2 100644

[PATCH v2 0/3] Fix resource freeing bugs in virtio-gpu-rutabaga

2024-01-29 Thread Manos Pitsidianakis
to be destroyed as well. This series adds a resource_destroy class method that the Rutabaga device can override and do its own bookkeeping. v1 -> v2 differences: - addressed review comments re: using the Error API for the resource_destroy method. Manos Pitsidianakis (3): hw/display/vir

Re: [PATCH v1 2/3] virtio-gpu.c: add resource_destroy class method

2024-01-26 Thread Manos Pitsidianakis
On Fri, 26 Jan 2024 at 17:22, Philippe Mathieu-Daudé wrote: > > Hi Manos, > > On 26/1/24 15:41, Manos Pitsidianakis wrote: > > When destroying/unrefing resources, devices such as virtio-gpu-rutabaga > > need to do their own bookkeeping (free rutabaga resources

Re: [PATCH v1 2/3] virtio-gpu.c: add resource_destroy class method

2024-01-26 Thread Manos Pitsidianakis
On Fri, 26 Jan 2024 at 20:09, Alex Bennée wrote: > > Manos Pitsidianakis writes: > > > When destroying/unrefing resources, devices such as virtio-gpu-rutabaga > > need to do their own bookkeeping (free rutabaga resources that are > > associated with the

[PATCH v1 3/3] virtio-gpu-rutabaga.c: override resource_destroy method

2024-01-26 Thread Manos Pitsidianakis
ted with that resource_id is then leaked. This commit overrides the resource_destroy class method introduced in the previous commit to fix this. Signed-off-by: Manos Pitsidianakis --- hw/display/virtio-gpu-rutabaga.c | 31 --- 1 file changed, 20 insertions(+), 11 deleti

[PATCH v1 2/3] virtio-gpu.c: add resource_destroy class method

2024-01-26 Thread Manos Pitsidianakis
-by: Manos Pitsidianakis --- hw/display/virtio-gpu.c| 19 --- include/hw/virtio/virtio-gpu.h | 2 ++ 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c index 2b73ae585b..96420ba74f 100644 --- a/hw/display/virtio

[PATCH v1 1/3] hw/display/virtio-gpu.c: use reset_bh class method

2024-01-26 Thread Manos Pitsidianakis
for implementations in the future. Signed-off-by: Manos Pitsidianakis --- hw/display/virtio-gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c index f8a675eb30..2b73ae585b 100644 --- a/hw/display/virtio-gpu.c +++ b/hw

[PATCH v1 0/3] Fix resource freeing bugs in virtio-gpu-rutabaga

2024-01-26 Thread Manos Pitsidianakis
that need to be destroyed as well. This series adds a resource_destroy class method that the Rutabaga device can override and do its own bookkeeping. Manos Pitsidianakis (3): hw/display/virtio-gpu.c: use reset_bh class method virtio-gpu.c: add resource_destroy class method virtio-gpu-rutabaga.c

Re: [PATCH 1/6] accel/tcg/cpu-exec: Use RCU_READ macro

2024-01-24 Thread Manos Pitsidianakis
c_exit(cpu); +}; return ret; } -- 2.41.0 Reviewed-by: Manos Pitsidianakis

Re: [PATCH 5/6] hw/vfio/common: Use RCU_READ macros

2024-01-24 Thread Manos Pitsidianakis
", 0x%"HWADDR_PRIx") = %d (%s)", + bcontainer, iova, iotlb->addr_mask + 1, ret, + strerror(-ret)); +} +} } } -rcu_read_unlock(); -out: if (ret) { vfio_set_migration_error(ret); } -- 2.41.0 Reviewed-by: Manos Pitsidianakis

Re: [PATCH 4/6] hw/scsi/virtio-scsi: Use RCU_READ macro

2024-01-24 Thread Manos Pitsidianakis
but there's no check if a resetting is taking place before starting another. Is this single threaded code so it's not necessary? As for the patch: Reviewed-by: Manos Pitsidianakis

Re: [PATCH 6/6] hw/virtio/vhost: Use RCU_READ macro

2024-01-24 Thread Manos Pitsidianakis
qemu_log_mask(LOG_GUEST_ERROR, "translation " -- 2.41.0 Reviewed-by: Manos Pitsidianakis

Re: [PATCH 3/6] hw/display/virtio-gpu-udmabuf: Use RCU_READ macro

2024-01-24 Thread Manos Pitsidianakis
rcu_read_unlock(); +WITH_RCU_READ_LOCK_GUARD() { +rb = qemu_ram_block_from_host(res->iov[i].iov_base, false, ); +} if (!rb || rb->fd < 0) { g_free(list); -- 2.41.0 Reviewed-by: Manos Pitsidianakis

[PATCH v2 2/2] hw/block/block.c: improve confusing blk_check_size_and_read_all() error

2024-01-23 Thread Manos Pitsidianakis
ppropriate. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Manos Pitsidianakis --- hw/block/block.c | 25 +++-- hw/block/m25p80.c| 3 ++- hw/block/pflash_cfi01.c | 4 ++-- hw/block/pflash_cfi02.c | 2 +- include/hw/block/block.h | 4 ++-- 5 files c

[PATCH v2 1/2] hw/core/qdev.c: add qdev_get_human_name()

2024-01-23 Thread Manos Pitsidianakis
Add a simple method to return some kind of human readable identifier for use in error messages. Signed-off-by: Manos Pitsidianakis --- hw/core/qdev.c | 8 include/hw/qdev-core.h | 14 ++ 2 files changed, 22 insertions(+) diff --git a/hw/core/qdev.c b/hw/core

[PATCH v2 0/2] hw/block/block.c: improve confusing error

2024-01-23 Thread Manos Pitsidianakis
ckend name, the device id and device type name where appropriate. Version 2: - Assert dev is not NULL on qdev_get_human_name (thanks Phil Mathieu-Daudé ) Manos Pitsidianakis (2): hw/core/qdev.c: add qdev_get_human_name() hw/block/block.c: improve confusing blk_check_size_and_read_all() error

Re: [PATCH 1/2] hw/core/qdev.c: add qdev_get_human_name()

2024-01-23 Thread Manos Pitsidianakis
On Tue, 23 Jan 2024 10:13, Philippe Mathieu-Daudé wrote: Hi Manos, On 23/1/24 09:09, Manos Pitsidianakis wrote: Add a simple method to return some kind of human readable identifier for use in error messages. Signed-off-by: Manos Pitsidianakis --- hw/core/qdev.c | 10

[PATCH 2/2] hw/block/block.c: improve confusing blk_check_size_and_read_all() error

2024-01-23 Thread Manos Pitsidianakis
ppropriate. Signed-off-by: Manos Pitsidianakis --- hw/block/block.c | 25 +++-- hw/block/m25p80.c| 3 ++- hw/block/pflash_cfi01.c | 4 ++-- hw/block/pflash_cfi02.c | 2 +- include/hw/block/block.h | 4 ++-- 5 files changed, 22 insertions(+), 16 deletion

[PATCH 0/2] hw/block/block.c: improve confusing error

2024-01-23 Thread Manos Pitsidianakis
ckend name, the device id and device type name where appropriate. Manos Pitsidianakis (2): hw/core/qdev.c: add qdev_get_human_name() hw/block/block.c: improve confusing blk_check_size_and_read_all() error hw/block/block.c | 25 +++-- hw/block/m25p80.c| 3 ++-

[PATCH 1/2] hw/core/qdev.c: add qdev_get_human_name()

2024-01-23 Thread Manos Pitsidianakis
Add a simple method to return some kind of human readable identifier for use in error messages. Signed-off-by: Manos Pitsidianakis --- hw/core/qdev.c | 10 ++ include/hw/qdev-core.h | 15 +++ 2 files changed, 25 insertions(+) diff --git a/hw/core/qdev.c b/hw/core

[PATCH v2 2/5] hw/arm/xen_arm.c: convert DPRINTF to trace events and error/warn reports

2024-01-19 Thread Manos Pitsidianakis
or warnings are converted to error_report and warn_report calls. Signed-off-by: Manos Pitsidianakis --- hw/arm/trace-events | 5 + hw/arm/xen_arm.c| 23 +++ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/hw/arm/trace-events b/hw/arm/trace-events index

[PATCH v2 3/5] hw/xen/xen-mapcache.c: convert DPRINTF to tracepoints

2024-01-19 Thread Manos Pitsidianakis
-by: Manos Pitsidianakis --- hw/xen/trace-events | 11 + hw/xen/xen-mapcache.c | 54 +++ 2 files changed, 35 insertions(+), 30 deletions(-) diff --git a/hw/xen/trace-events b/hw/xen/trace-events index 67a6c41926..1b748dba09 100644 --- a/hw/xen

[PATCH v2 0/5] hw/{arm,xen} convert printfs to trace/reports

2024-01-19 Thread Manos Pitsidianakis
This series changes some printfs to use the trace event framework. Additionally, it converts some error/warning reporting fprintfs to error_report/warn_report. Differences from v1 : - addressed Alex's review Manos Pitsidianakis (5): hw/arm/z2: convert DPRINTF to trace events and guest

[PATCH v2 4/5] hw/xen/xen-hvm-common.c: convert DPRINTF to tracepoints

2024-01-19 Thread Manos Pitsidianakis
-by: Manos Pitsidianakis --- hw/xen/trace-events | 10 +- hw/xen/xen-hvm-common.c | 35 ++- 2 files changed, 27 insertions(+), 18 deletions(-) diff --git a/hw/xen/trace-events b/hw/xen/trace-events index 1b748dba09..dd5b5a7f35 100644 --- a/hw/xen/trace

[PATCH v2 1/5] hw/arm/z2: convert DPRINTF to trace events and guest errors

2024-01-19 Thread Manos Pitsidianakis
that report guest errors are logged with LOG_GUEST_ERROR. Signed-off-by: Manos Pitsidianakis --- hw/arm/strongarm.c | 55 ++--- hw/arm/trace-events | 10 + hw/arm/z2.c | 27 +++--- 3 files changed, 45 insertions(+), 47

[PATCH v2 5/5] hw/xen: convert stderr prints to error/warn reports

2024-01-19 Thread Manos Pitsidianakis
ormat. > Use error_printf() & friends to print additional information. This commit changes fprintfs that report warnings and errors to the appropriate report functions. Signed-off-by: Manos Pitsidianakis --- hw/xen/xen-hvm-common.c | 12 ++-- hw/xen/xen-mapcache.c | 5 ++--- 2 files ch

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

2024-01-19 Thread Manos Pitsidianakis
-by: Manos Pitsidianakis --- hw/xen/trace-events | 10 +- hw/xen/xen-hvm-common.c | 35 ++- 2 files changed, 27 insertions(+), 18 deletions(-) diff --git a/hw/xen/trace-events b/hw/xen/trace-events index 1b748dba09..dd5b5a7f35 100644 --- a/hw/xen/trace

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

2024-01-19 Thread Manos Pitsidianakis
-by: Manos Pitsidianakis --- hw/xen/trace-events | 11 + hw/xen/xen-mapcache.c | 54 +++ 2 files changed, 35 insertions(+), 30 deletions(-) diff --git a/hw/xen/trace-events b/hw/xen/trace-events index 67a6c41926..1b748dba09 100644 --- a/hw/xen

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

2024-01-19 Thread Manos Pitsidianakis
ormat. > Use error_printf() & friends to print additional information. This commit changes fprintfs that report warnings and errors to the appropriate report functions. Signed-off-by: Manos Pitsidianakis --- hw/xen/xen-hvm-common.c | 12 ++-- hw/xen/xen-mapcache.c | 5 ++--- 2 files ch

[PATCH 2/6] hw/arm/strongarm.c: convert DPRINTF to tracepoints

2024-01-19 Thread Manos Pitsidianakis
-by: Manos Pitsidianakis --- hw/arm/strongarm.c | 49 +++-- hw/arm/trace-events | 18 + 2 files changed, 39 insertions(+), 28 deletions(-) diff --git a/hw/arm/strongarm.c b/hw/arm/strongarm.c index fef3638aca..3ff748e826 100644 --- a/hw/arm

[PATCH 1/6] hw/arm/z2: convert DPRINTF to tracepoints

2024-01-19 Thread Manos Pitsidianakis
-by: Manos Pitsidianakis --- hw/arm/trace-events | 8 hw/arm/z2.c | 26 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/hw/arm/trace-events b/hw/arm/trace-events index cdc1ea06a8..a262ad2e6a 100644 --- a/hw/arm/trace-events +++ b/hw/arm

[PATCH 3/6] hw/arm/xen_arm.c: convert DPRINTF to tracepoints

2024-01-19 Thread Manos Pitsidianakis
-by: Manos Pitsidianakis --- hw/arm/trace-events | 7 +++ hw/arm/xen_arm.c| 26 +++--- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/hw/arm/trace-events b/hw/arm/trace-events index a6a67d5f16..e3f5d677d7 100644 --- a/hw/arm/trace-events +++ b/hw/arm

[PATCH 0/6] hw/{arm,xen} convert printfs to trace/reports

2024-01-19 Thread Manos Pitsidianakis
This series changes some printfs to use the trace event framework. Additionally, it converts some error/warning reporting fprintfs to error_report/warn_report. Manos Pitsidianakis (6): hw/arm/z2: convert DPRINTF to tracepoints hw/arm/strongarm.c: convert DPRINTF to tracepoints hw/arm

Re: [PATCH for 8.2] hw/audio/virtio-sound: mark the device as unmigratable

2023-12-04 Thread Manos Pitsidianakis
+ > 1 file changed, 1 insertion(+) Hello Volker! I don't have the slightest clue on how migration works, but if this is enough to prevent those bugs from happening, it sounds good to me. Reviewed-by: Manos Pitsidianakis

Re: [PATCH 2/2] docs: define policy forbidding use of "AI" / LLM code generators

2023-11-24 Thread Manos Pitsidianakis
On Fri, 24 Nov 2023 12:25, Kevin Wolf wrote: Am 23.11.2023 um 15:56 hat Manos Pitsidianakis geschrieben: On Thu, 23 Nov 2023 16:35, "Michael S. Tsirkin" wrote: > On Thu, Nov 23, 2023 at 11:40:26AM +, Daniel P. Berrangé wrote: > > There has been an explosion of intere

Re: [PATCH 2/2] docs: define policy forbidding use of "AI" / LLM code generators

2023-11-23 Thread Manos Pitsidianakis
On Thu, 23 Nov 2023 16:35, "Michael S. Tsirkin" wrote: On Thu, Nov 23, 2023 at 11:40:26AM +, Daniel P. Berrangé wrote: There has been an explosion of interest in so called "AI" (LLM) code generators in the past year or so. Thus far though, this is has not been matched by a broadly accepted

Re: [PATCH for-8.2] ui/pixman-minimal.h: fix empty allocation

2023-11-23 Thread Manos Pitsidianakis
On Thu, 23 Nov 2023 12:15, Michael Tokarev wrote: 21.11.2023 12:38, Manos Pitsidianakis : In the minimal pixman API stub that is used when the real pixman dependency is missing a NULL dereference happens when virtio-gpu-rutabaga allocates a pixman image with bits = NULL and rowstride_bytes

Re: [PATCH-for-9.0 25/25] hw/pci-host/raven: Propagate error in raven_realize()

2023-11-21 Thread Manos Pitsidianakis
BIOS_SIZE, errp)) { +return; +} memory_region_add_subregion(get_system_memory(), (uint32_t)(-BIOS_SIZE), >bios); if (s->bios_name) { -- 2.41.0 Reviewed-by: Manos Pitsidianakis

Re: [PATCH-for-9.0 24/25] hw/nvram: Simplify memory_region_init_rom_device() calls

2023-11-21 Thread Manos Pitsidianakis
h", s->flash_size, errp)) { return; } -- Reviewed-by: Manos Pitsidianakis

Re: [PATCH-for-9.0 23/25] hw/misc: Simplify memory_region_init_ram_from_fd() calls

2023-11-21 Thread Manos Pitsidianakis
+ !memory_region_init_ram_from_fd(mr, owner, arg3, arg4, arg5, arg6, arg7, ) ) { ... return; } and removing the local Error variable. Signed-off-by: Philippe Mathieu-Daudé --- Reviewed-by: Manos Pitsidianakis

Re: [PATCH-for-9.0 21/25] hw/arm: Simplify memory_region_init_rom() calls

2023-11-21 Thread Manos Pitsidianakis
, ) ) { ... return; } and removing the local Error variable. Signed-off-by: Philippe Mathieu-Daudé --- Reviewed-by: Manos Pitsidianakis

Re: [PATCH-for-9.0 20/25] hw: Simplify memory_region_init_ram() calls

2023-11-21 Thread Manos Pitsidianakis
, ) ) { ... return; } and removing the local Error variable. Signed-off-by: Philippe Mathieu-Daudé --- Reviewed-by: Manos Pitsidianakis

Re: [PATCH-for-9.0 19/25] misc: Simplify qemu_prealloc_mem() calls

2023-11-21 Thread Manos Pitsidianakis
On Mon, 20 Nov 2023 23:32, Philippe Mathieu-Daudé wrote: Signed-off-by: Philippe Mathieu-Daudé --- Commit message missing but indeed there's not much to say Reviewed-by: Manos Pitsidianakis

Re: [PATCH-for-9.0 17/25] backends: Reduce variable scope in host_memory_backend_memory_complete

2023-11-21 Thread Manos Pitsidianakis
opagate(errp, local_err); } static bool -- Reviewed-by: Manos Pitsidianakis

Re: [PATCH-for-9.0 16/25] backends: Have HostMemoryBackendClass::alloc() handler return a boolean

2023-11-21 Thread Manos Pitsidianakis
hieu-Daudé --- Reviewed-by: Manos Pitsidianakis

Re: [PATCH-for-9.0 15/25] backends: Simplify host_memory_backend_memory_complete()

2023-11-21 Thread Manos Pitsidianakis
off-by: Philippe Mathieu-Daudé --- Reviewed-by: Manos Pitsidianakis

Re: [PATCH-for-9.0 14/25] backends: Use g_autofree in HostMemoryBackendClass::alloc() handlers

2023-11-21 Thread Manos Pitsidianakis
On Mon, 20 Nov 2023 23:32, Philippe Mathieu-Daudé wrote: In preparation of having HostMemoryBackendClass::alloc() handlers return a boolean, have them use g_autofree. Signed-off-by: Philippe Mathieu-Daudé --- Reviewed-by: Manos Pitsidianakis

Re: [PATCH-for-9.0 07/25] memory: Have memory_region_init_rom() handler return a boolean

2023-11-21 Thread Manos Pitsidianakis
-- include/exec/memory.h | 4 +++- Reviewed-by: Manos Pitsidianakis

Re: [PATCH-for-9.0 05/25] memory: Simplify memory_region_init_ram_from_fd() calls

2023-11-21 Thread Manos Pitsidianakis
, owner, name, size, ); -if (err) { -error_propagate(errp, err); +if (!memory_region_init_ram_nomigrate(mr, owner, name, size, errp)) { return; } /* This will assert if owner is neither NULL nor a DeviceState. -- 2.41.0 Reviewed-by: Manos Pitsidianakis

Re: [PATCH-for-9.0 03/25] memory: Have memory_region_init_rom_nomigrate() handler return a boolean

2023-11-21 Thread Manos Pitsidianakis
On Mon, 20 Nov 2023 23:32, Philippe Mathieu-Daudé wrote: Following the example documented since commit e3fe3988d7 ("error: Document Error API usage rules"), have cpu_exec_realizefn() return a boolean indicating whether an error is set or not. Signed-off-by: Philippe Mathieu-Daudé ---

Re: [PATCH-for-9.0 01/25] memory: Have memory_region_init_ram_flags_nomigrate() return a boolean

2023-11-21 Thread Manos Pitsidianakis
,9 @@ void memory_region_init_ram_flags_nomigrate(MemoryRegion *mr, mr->size = int128_zero(); object_unparent(OBJECT(mr)); error_propagate(errp, err); +return false; } +return true; } void memory_region_init_resizeable_ram(MemoryRegion *mr, -- 2.41.0 Revie

Re: [PATCH-for-9.0 02/25] memory: Have memory_region_init_ram_nomigrate() handler return a boolean

2023-11-21 Thread Manos Pitsidianakis
; +return memory_region_init_ram_flags_nomigrate(mr, owner, name, + size, 0, errp); } bool memory_region_init_ram_flags_nomigrate(MemoryRegion *mr, -- 2.41.0 Reviewed-by: Manos Pitsidianakis

[PATCH for-8.2] ui/pixman-minimal.h: fix empty allocation

2023-11-21 Thread Manos Pitsidianakis
, in that scenario pixman calculates a new stride value based on given width, height and format size. This commit adds a helper function that performs the same logic as pixman. Signed-off-by: Manos Pitsidianakis --- include/ui/pixman-minimal.h | 48 +++-- 1 file changed, 46

Re: [PATCH v3 4/4] hw/virtio: derive vhost-user-input from vhost-user-base

2023-11-19 Thread Manos Pitsidianakis
the same property. To resolve the error, remove the duplicate property from vhost-user-input-pci. Signed-off-by: Leo Yan --- Reviewed-by: Manos Pitsidianakis

Re: [PATCH v3 3/4] hw/virtio: Move vhost-user-input into virtio folder

2023-11-19 Thread Manos Pitsidianakis
. Signed-off-by: Leo Yan Reviewed-by: Manos Pitsidianakis

Re: [PATCH-for-8.2] virtio-sound: add realize() error cleanup path

2023-11-16 Thread Manos Pitsidianakis
On Thu, 16 Nov 2023 10:54, Philippe Mathieu-Daudé wrote: On 16/11/23 09:48, Manos Pitsidianakis wrote: On Thu, 16 Nov 2023 10:42, Philippe Mathieu-Daudé wrote: On 16/11/23 08:33, Manos Pitsidianakis wrote: On Thu, 16 Nov 2023 09:32, Philippe Mathieu-Daudé wrote: --- Notes: Requires

Re: [PATCH-for-8.2] virtio-sound: add realize() error cleanup path

2023-11-16 Thread Manos Pitsidianakis
On Thu, 16 Nov 2023 10:42, Philippe Mathieu-Daudé wrote: On 16/11/23 08:33, Manos Pitsidianakis wrote: On Thu, 16 Nov 2023 09:32, Philippe Mathieu-Daudé wrote: --- Notes: Requires patch <20231109162034.2108018-1-manos.pitsidiana...@linaro.org> This is the 'Based-on: ' tag I

Re: virtio-sound segmentation fault

2023-11-15 Thread Manos Pitsidianakis
On Wed, 15 Nov 2023 22:27, Volker Rümelin wrote: Cc: qemu-devel Hi Manos, it's easy to trigger a segmentation fault with the virtio-sound device. The basic problem is that in function virtio_snd_realize() there is no code in the errror paths to undo the previous steps. Thank you for the

Re: [PATCH-for-8.2] virtio-sound: add realize() error cleanup path

2023-11-15 Thread Manos Pitsidianakis
On Thu, 16 Nov 2023 09:32, Philippe Mathieu-Daudé wrote: --- Notes: Requires patch <20231109162034.2108018-1-manos.pitsidiana...@linaro.org> This is the 'Based-on: ' tag I guess. There is prerequisite-patch-id: 484ec9f7f6109c10d4be0484fe8e3c2550c415f4 At the end of the patch, added

[PATCH-for-8.2] virtio-sound: add realize() error cleanup path

2023-11-15 Thread Manos Pitsidianakis
resources made in steps 1-3. Reported-by: Volker Rümelin Fixes: 2880e676c000 ("Add virtio-sound device stub") Signed-off-by: Manos Pitsidianakis --- Notes: Requires patch <20231109162034.2108018-1-manos.pitsidiana...@linaro.org> hw/audio/v

Re: [PATCH v1 3/4] hw/virtio: Move vhost-user-input into virtio folder

2023-11-12 Thread Manos Pitsidianakis
Hello Leo, On Mon, 13 Nov 2023 03:16, Leo Yan wrote: vhost-user-input is in the input folder. On the other hand, the folder 'hw/virtio' maintains other virtio stubs (e.g. I2C, RNG, GPIO, etc). This patch moves vhost-user-input into the virtio folder for better code organization. No

Re: [PATCH 2/2] Add warn_unused_result attr to AUD_register_card

2023-11-10 Thread Manos Pitsidianakis
On Fri, 10 Nov 2023 13:23, "Daniel P. Berrangé" wrote: On Fri, Nov 10, 2023 at 11:18:39AM +, Peter Maydell wrote: On Fri, 10 Nov 2023 at 11:02, Manos Pitsidianakis wrote: > > On Fri, 10 Nov 2023 12:21, Peter Maydell wrote: > >This kind of thing is why Coverity's unu

Re: [PATCH 2/2] Add warn_unused_result attr to AUD_register_card

2023-11-10 Thread Manos Pitsidianakis
On Fri, 10 Nov 2023 13:20, "Daniel P. Berrangé" wrote: Your approach to the problem: if (!AUD_register_card("OMAP EAC", >codec.card, _fatal)) { exit(1); } is adding dead-code because the exit(1) will never be reachable. So while it lets you squelch the unused result warning, it is

Re: [PATCH 2/2] Add warn_unused_result attr to AUD_register_card

2023-11-10 Thread Manos Pitsidianakis
On Fri, 10 Nov 2023 12:21, Peter Maydell wrote: This kind of thing is why Coverity's unused-result warning has a lot of false positives. We shouldn't introduce extra code like this to work around the fact that the tooling doesn't understand our error-handling convention (i.e. error_fatal, and

Re: [PATCH] virtio-snd: check AUD_register_card return value

2023-11-10 Thread Manos Pitsidianakis
On Fri, 10 Nov 2023 01:23, "Michael S. Tsirkin" wrote: On Thu, Nov 09, 2023 at 06:03:15PM +, Peter Maydell wrote: On Thu, 9 Nov 2023 at 17:53, Michael S. Tsirkin wrote: > > On Thu, Nov 09, 2023 at 04:25:04PM +, Peter Maydell wrote: > > On Thu, 9 Nov 2023 at 16:2

[PATCH 1/2] Add QEMU_WARN_UNUSED_RESULT attribute

2023-11-10 Thread Manos Pitsidianakis
This commit adds QEMU_WARN_UNUSED_RESULT, a macro for the gcc function attribute `warn_unused_result`. The utility of this attribute is to ensure functions that return values that need to be inspected are not ignored by the caller. Signed-off-by: Manos Pitsidianakis --- include/qemu/compiler.h

[PATCH 2/2] Add warn_unused_result attr to AUD_register_card

2023-11-10 Thread Manos Pitsidianakis
Ignoring the return value by accident is easy to miss as a bug. Such a bug was spotted by Coverity CID 1523899. Now, future instances of this type of bug will produce a warning when using GCC. Signed-off-by: Manos Pitsidianakis --- audio/audio.h | 2 +- hw/arm/omap2.c | 8 +++- hw

[PATCH 0/2] Add QEMU_WARN_UNUSED_RESULT function attribute

2023-11-10 Thread Manos Pitsidianakis
g/qemu-devel/20231109162034.2108018-1-manos.pitsidiana...@linaro.org/ Manos Pitsidianakis (2): Add QEMU_WARN_UNUSED_RESULT attribute Add warn_unused_result attr to AUD_register_card audio/audio.h | 2 +- hw/arm/omap2.c | 8 +++- hw/input/tsc210x.c | 8 +++- i

[PATCH] virtio-snd: check AUD_register_card return value

2023-11-09 Thread Manos Pitsidianakis
AUD_register_card might fail. Even though errp was passed as an argument, the call's return value was not checked for failure. Signed-off-by: Manos Pitsidianakis --- hw/audio/virtio-snd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/audio/virtio-snd.c b/hw/audio

Re: [PULL 08/63] Add virtio-sound device stub

2023-11-09 Thread Manos Pitsidianakis
Hello Peter, If you want me to, I can roll a new version, otherwise I have attached an updated version of just this patch, adding an if check. Thanks, Manos v14-0001-Add-virtio-sound-device-stub.patch Description: Binary data

Re: [PATCH] hw/audio/virtio-snd-pci: fix the PCI class code

2023-11-07 Thread Manos Pitsidianakis
Subsystem: Red Hat, Inc. Device [1af4:1100] > > Signed-off-by: Volker Rümelin > --- Reviewed-by: Manos Pitsidianakis

Re: [PATCH v13 00/11] Add VIRTIO sound card

2023-11-06 Thread Manos Pitsidianakis
On Tue, 7 Nov 2023 at 02:44, Michael S. Tsirkin wrote: > > On Mon, Oct 23, 2023 at 03:03:17PM +0300, Manos Pitsidianakis wrote: > > This patch series adds an audio device implementing the recent virtio > > sound spec (1.2) and a corresponding PCI wrapper device. > > &

Re: [PATCH] MAINTAINERS: Add the virtio-gpu documentation to the corresponding section

2023-10-27 Thread Manos Pitsidianakis
On Fri, 27 Oct 2023 09:08, Thomas Huth wrote: Add virtio-gpu.rst to the corresponding section in MAINTAINERS, so that the maintainers gets CC:-ed on corresponding patches. Signed-off-by: Thomas Huth --- Reviewed-by: Manos Pitsidianakis

[PATCH v13 10/11] virtio-sound: implement audio capture (RX)

2023-10-23 Thread Manos Pitsidianakis
recording stops in QEMU's audio backend, the buffer is returned to the guest by notifying it. Signed-off-by: Manos Pitsidianakis Tested-by: Alex Bennée Reviewed-by: Alex Bennée --- hw/audio/trace-events | 3 +- hw/audio/virtio-snd.c | 262 -- 2 files changed

[PATCH v13 04/11] virtio-sound: handle VIRTIO_SND_R_PCM_INFO request

2023-10-23 Thread Manos Pitsidianakis
Respond to the VIRTIO_SND_R_PCM_INFO control request with the parameters of each requested PCM stream. Based-on: https://github.com/OpenSynergy/qemu/commit/5a2f350eec5d157b90d9c7b40a8e603f4da92471 Signed-off-by: Igor Skalkin Signed-off-by: Anton Yakovlev Signed-off-by: Manos Pitsidianakis

[PATCH v13 08/11] virtio-sound: handle VIRTIO_SND_R_PCM_RELEASE

2023-10-23 Thread Manos Pitsidianakis
-by: Anton Yakovlev Signed-off-by: Manos Pitsidianakis Reviewed-by: Alex Bennée Tested-by: Alex Bennée --- hw/audio/trace-events | 1 + hw/audio/virtio-snd.c | 48 ++- 2 files changed, 48 insertions(+), 1 deletion(-) diff --git a/hw/audio/trace-events b/hw

[PATCH v13 05/11] virtio-sound: handle VIRTIO_SND_R_PCM_{START,STOP}

2023-10-23 Thread Manos Pitsidianakis
/5a2f350eec5d157b90d9c7b40a8e603f4da92471 Signed-off-by: Igor Skalkin Signed-off-by: Anton Yakovlev Signed-off-by: Manos Pitsidianakis Reviewed-by: Alex Bennée Tested-by: Alex Bennée --- hw/audio/trace-events | 1 + hw/audio/virtio-snd.c | 49 +-- 2 files changed, 48 insertions(+), 2

[PATCH v13 09/11] virtio-sound: implement audio output (TX)

2023-10-23 Thread Manos Pitsidianakis
-by: Manos Pitsidianakis Reviewed-by: Alex Bennée Tested-by: Alex Bennée --- hw/audio/trace-events | 2 + hw/audio/virtio-snd.c | 288 +- include/hw/audio/virtio-snd.h | 47 ++ 3 files changed, 332 insertions(+), 5 deletions(-) diff --git

[PATCH v13 07/11] virtio-sound: handle VIRTIO_SND_R_PCM_PREPARE

2023-10-23 Thread Manos Pitsidianakis
Handles the PCM prepare control request. It initializes a PCM stream when the guests asks for it. Based-on: https://github.com/OpenSynergy/qemu/commit/5a2f350eec5d157b90d9c7b40a8e603f4da92471 Signed-off-by: Igor Skalkin Signed-off-by: Anton Yakovlev Signed-off-by: Manos Pitsidianakis Reviewed

[PATCH v13 11/11] docs/system: add basic virtio-snd documentation

2023-10-23 Thread Manos Pitsidianakis
This commit adds basic documentation for using virtio-snd. Signed-off-by: Manos Pitsidianakis Reviewed-by: Alex Bennée Tested-by: Alex Bennée --- MAINTAINERS| 1 + docs/system/device-emulation.rst | 1 + docs/system/devices/virtio-snd.rst | 49

[PATCH v13 06/11] virtio-sound: handle VIRTIO_SND_R_PCM_SET_PARAMS

2023-10-23 Thread Manos Pitsidianakis
Signed-off-by: Manos Pitsidianakis Reviewed-by: Alex Bennée Tested-by: Alex Bennée --- hw/audio/trace-events | 1 + hw/audio/virtio-snd.c | 34 ++ 2 files changed, 35 insertions(+) diff --git a/hw/audio/trace-events b/hw/audio/trace-events index db48ff04fe

[PATCH v13 03/11] virtio-sound: handle control messages and streams

2023-10-23 Thread Manos Pitsidianakis
virtio_snd_process_cmdq() to handle each message. The handler is process_cmd() which replies with VIRTIO_SND_S_NOT_SUPP. Based-on: https://github.com/OpenSynergy/qemu/commit/5a2f350eec5d157b90d9c7b40a8e603f4da92471 Signed-off-by: Igor Skalkin Signed-off-by: Anton Yakovlev Signed-off-by: Manos Pitsidianakis

[PATCH v13 00/11] Add VIRTIO sound card

2023-10-23 Thread Manos Pitsidianakis
rnel.org/qemu-devel/cover.1686238728.git.manos.pitsidiana...@linaro.org/ [^v1]: https://lore.kernel.org/qemu-devel/20230526204845.673031-1-manos.pitsidiana...@linaro.org/ Manos Pitsidianakis (11): Add virtio-sound device stub Add virtio-sound-pci device virtio-sound: handle control message

[PATCH v13 01/11] Add virtio-sound device stub

2023-10-23 Thread Manos Pitsidianakis
+++ b/MAINTAINERS @@ -2282,6 +2282,13 @@ F: hw/virtio/virtio-mem-pci.h F: hw/virtio/virtio-mem-pci.c F: include/hw/virtio/virtio-mem.h +virtio-snd +M: Gerd Hoffmann +R: Manos Pitsidianakis +S: Supported +F: hw/audio/virtio-snd.c +F: include/hw/audio/virtio-snd.h + nvme M: Keith Busch M

[PATCH v13 02/11] Add virtio-sound-pci device

2023-10-23 Thread Manos Pitsidianakis
win): -audio driver=coreaudio,model=virtio etc. Based-on: https://github.com/OpenSynergy/qemu/commit/5a2f350eec5d157b90d9c7b40a8e603f4da92471 Signed-off-by: Igor Skalkin Signed-off-by: Anton Yakovlev Signed-off-by: Manos Pitsidianakis Reviewed-by: Alex Bennée Tested-by: Alex Bennée --- MAINTAIN

<    1   2   3   4   5   6   7   >