* [PULL v2 00/31] Block patches
@ 2025-06-12 17:48 Stefan Hajnoczi
2025-06-12 17:48 ` [PULL v2 11/31] hw/audio/marvell_88w8618: skip automatic zero-init of large array Stefan Hajnoczi
2025-06-17 13:11 ` [PULL v2 00/31] Block patches Stefan Hajnoczi
0 siblings, 2 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2025-06-12 17:48 UTC (permalink / raw)
To: qemu-devel
Cc: Michael S. Tsirkin, qemu-ppc, Paolo Bonzini, Fam Zheng,
Laurent Vivier, Hanna Reitz, Keith Busch, Steven Lee, qemu-arm,
Michael Tokarev, qemu-block, Peter Maydell, Harsh Prateek Bora,
Marc-André Lureau, Frédéric Barrat, Rob Herring,
Dmitry Fleytman, Jamin Lin, qemu-s390x, Gerd Hoffmann,
Halil Pasic, Kevin Wolf, Jason Wang, Cédric Le Goater,
Klaus Jensen, Jeuk Kim, Edgar E. Iglesias,
Daniel Henrique Barboza, Stefan Hajnoczi, Nicholas Piggin,
Christian Borntraeger, Andrew Jeffery, Jesper Devantier,
qemu-trivial, Sven Schnelle, Philippe Mathieu-Daudé,
Troy Lee, Joel Stanley, Thomas Huth, Hannes Reinecke,
Alistair Francis
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(-)
--
2.49.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PULL v2 11/31] hw/audio/marvell_88w8618: skip automatic zero-init of large array
2025-06-12 17:48 [PULL v2 00/31] Block patches Stefan Hajnoczi
@ 2025-06-12 17:48 ` Stefan Hajnoczi
2025-06-17 13:11 ` [PULL v2 00/31] Block patches Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2025-06-12 17:48 UTC (permalink / raw)
To: qemu-devel
Cc: Michael S. Tsirkin, qemu-ppc, Paolo Bonzini, Fam Zheng,
Laurent Vivier, Hanna Reitz, Keith Busch, Steven Lee, qemu-arm,
Michael Tokarev, qemu-block, Peter Maydell, Harsh Prateek Bora,
Marc-André Lureau, Frédéric Barrat, Rob Herring,
Dmitry Fleytman, Jamin Lin, qemu-s390x, Gerd Hoffmann,
Halil Pasic, Kevin Wolf, Jason Wang, Cédric Le Goater,
Klaus Jensen, Jeuk Kim, Edgar E. Iglesias,
Daniel Henrique Barboza, Stefan Hajnoczi, Nicholas Piggin,
Christian Borntraeger, Andrew Jeffery, Jesper Devantier,
qemu-trivial, Sven Schnelle, Philippe Mathieu-Daudé,
Troy Lee, Joel Stanley, Thomas Huth, Hannes Reinecke,
Alistair Francis, Daniel P. Berrangé
From: Daniel P. Berrangé <berrange@redhat.com>
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.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20250610123709.835102-12-berrange@redhat.com
[Fixed hw/audio/gus in commit message --Stefan]
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
hw/audio/marvell_88w8618.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/audio/marvell_88w8618.c b/hw/audio/marvell_88w8618.c
index 6d3ebbb0c8..c5c79d083a 100644
--- a/hw/audio/marvell_88w8618.c
+++ b/hw/audio/marvell_88w8618.c
@@ -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;
--
2.49.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PULL v2 00/31] Block patches
2025-06-12 17:48 [PULL v2 00/31] Block patches Stefan Hajnoczi
2025-06-12 17:48 ` [PULL v2 11/31] hw/audio/marvell_88w8618: skip automatic zero-init of large array Stefan Hajnoczi
@ 2025-06-17 13:11 ` Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2025-06-17 13:11 UTC (permalink / raw)
To: Stefan Hajnoczi
Cc: qemu-devel, Michael S. Tsirkin, qemu-ppc, Paolo Bonzini,
Fam Zheng, Laurent Vivier, Hanna Reitz, Keith Busch, Steven Lee,
qemu-arm, Michael Tokarev, qemu-block, Peter Maydell,
Harsh Prateek Bora, Marc-André Lureau,
Frédéric Barrat, Rob Herring, Dmitry Fleytman,
Jamin Lin, qemu-s390x, Gerd Hoffmann, Halil Pasic, Kevin Wolf,
Jason Wang, Cédric Le Goater, Klaus Jensen, Jeuk Kim,
Edgar E. Iglesias, Daniel Henrique Barboza, Stefan Hajnoczi,
Nicholas Piggin, Christian Borntraeger, Andrew Jeffery,
Jesper Devantier, qemu-trivial, Sven Schnelle,
Philippe Mathieu-Daudé, Troy Lee, Joel Stanley, Thomas Huth,
Hannes Reinecke, Alistair Francis
[-- Attachment #1: Type: text/plain, Size: 116 bytes --]
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/10.1 for any user-visible changes.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-06-17 15:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-12 17:48 [PULL v2 00/31] Block patches Stefan Hajnoczi
2025-06-12 17:48 ` [PULL v2 11/31] hw/audio/marvell_88w8618: skip automatic zero-init of large array Stefan Hajnoczi
2025-06-17 13:11 ` [PULL v2 00/31] Block patches Stefan Hajnoczi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).