mirror of https://gitlab.com/qemu-project/qemu
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.
![]() The 'nvme_map_sgl' method has a 256 element array used for copying data from the device. Skip the automatic zero-init of this array to eliminate the performance overhead in the I/O hot path. The 'segment' array will be fully initialized when reading data from the device. The 'nme_changed_nslist' method has a 4k byte array that is manually initialized with memset(). The compiler ought to be intelligent enough to turn the memset() into a static initialization operation, and thus not duplicate the automatic zero-init. Replacing memset() with '{}' makes it unambiguous that the array is statically initialized. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Klaus Jensen <k.jensen@samsung.com> Message-id: 20250610123709.835102-24-berrange@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> |
2 weeks ago | |
---|---|---|
.. | ||
Kconfig | 2 years ago | |
ctrl.c | 2 weeks ago | |
dif.c | 6 months ago | |
dif.h | 3 years ago | |
meson.build | 1 year ago | |
nguid.c | 4 months ago | |
ns.c | 2 months ago | |
nvme.h | 3 months ago | |
subsys.c | 1 month ago | |
trace-events | 8 months ago | |
trace.h |