Block patches
The following changes since commit d9ce74873a6a5a7c504379857461e4ae64fcf0cd:
Merge tag 'pull-vfio-20250611' of https://github.com/legoater/qemu into staging (2025-06-11 11:39:53 -0400)
are available in the Git repository at:
https://gitlab.com/stefanha/qemu.git tags/block-pull-request
for you to fetch changes up to 837b87c4c5ba9ac7a255133c6642b8d578272a70:
net/stream: skip automatic zero-init of large array (2025-06-12 13:40:16 -0400)
----------------------------------------------------------------
Pull request
v2:
- Fix incorrect hw/audio/gus commit message
----------------------------------------------------------------
Daniel P. Berrangé (29):
block: skip automatic zero-init of large array in ioq_submit chardev/char-fd: skip automatic zero-init of large array chardev/char-pty: skip automatic zero-init of large array chardev/char-socket: skip automatic zero-init of large array hw/audio/ac97: skip automatic zero-init of large arrays hw/audio/cs4231a: skip automatic zero-init of large arrays hw/audio/es1370: skip automatic zero-init of large array hw/audio/gus: skip automatic zero-init of large array hw/audio/marvell_88w8618: skip automatic zero-init of large array hw/audio/sb16: skip automatic zero-init of large array hw/audio/via-ac97: skip automatic zero-init of large array hw/char/sclpconsole-lm: skip automatic zero-init of large array hw/dma/xlnx_csu_dma: skip automatic zero-init of large array hw/display/vmware_vga: skip automatic zero-init of large struct hw/hyperv/syndbg: skip automatic zero-init of large array hw/misc/aspeed_hace: skip automatic zero-init of large array hw/net/rtl8139: skip automatic zero-init of large array hw/net/tulip: skip automatic zero-init of large array hw/net/virtio-net: skip automatic zero-init of large arrays hw/net/xgamc: skip automatic zero-init of large array hw/nvme/ctrl: skip automatic zero-init of large arrays hw/ppc/pnv_occ: skip automatic zero-init of large struct hw/ppc/spapr_tpm_proxy: skip automatic zero-init of large arrays hw/usb/hcd-ohci: skip automatic zero-init of large array hw/scsi/lsi53c895a: skip automatic zero-init of large array hw/scsi/megasas: skip automatic zero-init of large arrays hw/ufs/lu: skip automatic zero-init of large array net/socket: skip automatic zero-init of large array net/stream: skip automatic zero-init of large array
Stefan Hajnoczi (2):
include/qemu/compiler: add QEMU_UNINITIALIZED attribute macro hw/virtio/virtio: avoid cost of -ftrivial-auto-var-init in hot path
include/qemu/compiler.h | 20 ++++++++++++++++++++ block/linux-aio.c | 2 +- chardev/char-fd.c | 2 +- chardev/char-pty.c | 2 +- chardev/char-socket.c | 2 +- hw/audio/ac97.c | 4 ++-- hw/audio/cs4231a.c | 4 ++-- hw/audio/es1370.c | 2 +- hw/audio/gus.c | 2 +- hw/audio/marvell_88w8618.c | 2 +- hw/audio/sb16.c | 2 +- hw/audio/via-ac97.c | 2 +- hw/char/sclpconsole-lm.c | 2 +- hw/display/vmware_vga.c | 2 +- hw/dma/xlnx_csu_dma.c | 2 +- hw/hyperv/syndbg.c | 2 +- hw/misc/aspeed_hace.c | 2 +- hw/net/rtl8139.c | 2 +- hw/net/tulip.c | 2 +- hw/net/virtio-net.c | 6 +++--- hw/net/xgmac.c | 2 +- hw/nvme/ctrl.c | 6 +++--- hw/ppc/pnv_occ.c | 2 +- hw/ppc/spapr_tpm_proxy.c | 4 ++-- hw/scsi/lsi53c895a.c | 2 +- hw/scsi/megasas.c | 7 ++----- hw/ufs/lu.c | 2 +- hw/usb/hcd-ohci.c | 2 +- hw/virtio/virtio.c | 8 ++++---- net/socket.c | 2 +- net/stream.c | 2 +- 31 files changed, 61 insertions(+), 44 deletions(-)
Signature · 1 line
2.49.0
[PULL v2 11/31] hw/audio/marvell_88w8618: skip automatic zero-init of large array
From: Daniel P. Berrangé <[email protected]>
The 'mv88w8618_audio_callback' 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 'buf' array will be fully initialized when reading data from device memory.
Message-id: [email protected]
--- hw/audio/marvell_88w8618.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/audio/marvell_88w8618.c +1 -1
@@ -66,7 +66,7 @@ static void mv88w8618_audio_callback(void *opaque, int free_out, int free_in) {mv88w8618_audio_state *s = opaque;int16_t *codec_buffer; -int8_t buf[4096 ]; + QEMU_UNINITIALIZED int8_t buf[4096];int8_t *mem_buffer;int pos, block_size;
Signature · 1 line
2.49.0
Stefan Hajnoczi
AppliedApplied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/10.1 for any user-visible changes.