]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/display/vmware_vga: skip automatic zero-init of large struct
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 10 Jun 2025 12:36:54 +0000 (13:36 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 12 Jun 2025 17:40:15 +0000 (13:40 -0400)
commit7048e70f391df76d009eecca25f8027858f9f304
tree7687edc2e5a4e2d65f7080a4bb4310a0af339a82
parentce14f24611aa0469b464a9512e192b4fd51dca2b
hw/display/vmware_vga: skip automatic zero-init of large struct

The 'vmsvga_fifo_run' method has a struct which is a little over 20k
in size, used for holding image data for cursor changes. Skip the
automatic zero-init of this struct to eliminate the performance
overhead in the I/O hot path.

The cursor variable will be fully initialized only when processing
a cursor definition message from the guest.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20250610123709.835102-17-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/display/vmware_vga.c