qemu/hw/audio
Daniel P. Berrangé bb71d9fe14 hw/audio/via-ac97: skip automatic zero-init of large array
The 'out_cb' method has a 4k byte array used for copying data
between the audio backend and device. Skip the automatic zero-init
of this array to eliminate the performance overhead in the I/O hot
path.

The 'tmpbuf' array will be fully initialized when reading data from
device memory.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20250610123709.835102-14-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2025-06-12 13:40:15 -04:00
..
ac97.c hw/audio/ac97: skip automatic zero-init of large arrays 2025-06-12 13:39:08 -04:00
ac97.h hw/audio/ac97: Split off some definitions to a header 2023-02-27 22:29:02 +01:00
adlib.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
asc.c hw/audio/asc: replace g_malloc0() with g_malloc() 2025-05-25 11:28:28 +02:00
cs4231.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
cs4231a.c hw/audio/cs4231a: skip automatic zero-init of large arrays 2025-06-12 13:39:08 -04:00
es1370.c hw/audio/es1370: skip automatic zero-init of large array 2025-06-12 13:39:08 -04:00
fmopl.c audio: spelling fixes 2023-09-08 13:08:52 +03:00
fmopl.h audio: spelling fixes 2023-09-08 13:08:52 +03:00
gus.c hw/audio/gus: skip automatic zero-init of large array 2025-06-12 13:39:08 -04:00
gusemu.h audio: GUSsample is int16_t 2017-05-04 09:16:05 +02:00
gusemu_hal.c audio: spelling fixes 2023-09-08 13:08:52 +03:00
gusemu_mixer.c hw/audio/gus: Fix registers 32-bit access 2020-06-19 11:20:09 +02:00
gustate.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
hda-codec-common.h hda-codec: make mixemu selectable at runtime 2013-09-24 10:29:34 +02:00
hda-codec.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
intel-hda-defs.h audio: spelling fixes 2023-09-08 13:08:52 +03:00
intel-hda.c qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
intel-hda.h hw/audio: Simplify hda audio init 2023-09-22 16:30:07 +02:00
Kconfig Add virtio-sound device stub 2023-11-07 03:39:10 -05:00
lm4549.c hw/audio: Constify VMState 2023-12-29 11:17:30 +11:00
lm4549.h hw/audio/lm4549: Add errp error reporting to init function 2023-09-22 16:30:07 +02:00
marvell_88w8618.c hw/audio/marvell_88w8618: skip automatic zero-init of large array 2025-06-12 13:39:18 -04:00
meson.build Add virtio-sound-pci device 2023-11-07 03:39:10 -05:00
pcspk.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
pl041.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
pl041.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
pl041.hx hw: move target-independent files to subdirectories 2013-04-08 18:13:12 +02:00
sb16.c hw/audio/sb16: skip automatic zero-init of large array 2025-06-12 13:40:15 -04:00
soundhw.c replace error_setg(&error_fatal, ...) with error_report() 2024-10-21 22:40:47 +03:00
trace-events hw/audio/virtio-sound: fix heap buffer overflow 2024-09-11 09:46:14 -04:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
via-ac97.c hw/audio/via-ac97: skip automatic zero-init of large array 2025-06-12 13:40:15 -04:00
virtio-snd-pci.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
virtio-snd.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
wm8750.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00