You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/chardev
Daniel P. Berrangé 9a23075cef chardev/char-socket: skip automatic zero-init of large array
The 'tcp_chr_read' method has a 4k byte array used for copying
data between the socket 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 off
the network socket.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20250610123709.835102-7-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2 weeks ago
..
baum.c qom: Have class_init() take a const data argument 2 months ago
char-console.c qom: Have class_init() take a const data argument 2 months ago
char-fd.c chardev/char-fd: skip automatic zero-init of large array 2 weeks ago
char-fe.c include: Rename sysemu/ -> system/ 6 months ago
char-file.c qom: Have class_init() take a const data argument 2 months ago
char-hmp-cmds.c qapi: Move include/qapi/qmp/ to include/qobject/ 5 months ago
char-hub.c qom: Have class_init() take a const data argument 2 months ago
char-io.c Revert "qemu-char: do not operate on sources from finalize callbacks" 12 months ago
char-mux.c qom: Have class_init() take a const data argument 2 months ago
char-null.c qom: Have class_init() take a const data argument 2 months ago
char-parallel.c qom: Have class_init() take a const data argument 2 months ago
char-pipe.c qom: Have class_init() take a const data argument 2 months ago
char-pty.c chardev/char-pty: skip automatic zero-init of large array 2 weeks ago
char-ringbuf.c qom: Have class_init() take a const data argument 2 months ago
char-serial.c qom: Have class_init() take a const data argument 2 months ago
char-socket.c chardev/char-socket: skip automatic zero-init of large array 2 weeks ago
char-stdio.c qom: Have class_init() take a const data argument 2 months ago
char-udp.c qom: Have class_init() take a const data argument 2 months ago
char-win-stdio.c qom: Have class_init() take a const data argument 2 months ago
char-win.c qom: Have class_init() take a const data argument 2 months ago
char.c qom: Have class_init() take a const data argument 2 months ago
chardev-internal.h chardev/char-hub: implement backend chardev aggregator 5 months ago
meson.build chardev/char-hub: implement backend chardev aggregator 5 months ago
msmouse.c qom: Have class_init() take a const data argument 2 months ago
spice.c qom: Have class_init() take a const data argument 2 months ago
testdev.c qom: Have class_init() take a const data argument 2 months ago
trace-events chardev: add tracing of socket error conditions 11 months ago
trace.h trace: switch position of headers to what Meson requires 5 years ago
wctablet.c qom: Have class_init() take a const data argument 2 months ago