On 3/2/26 21:56, Pierrick Bouvier wrote:
From: Philippe Mathieu-Daudé <[email protected]>
Endianness access is constant between device resets.
Use the field instead of calling the same function.
Maybe we should justify here, simply adding from your v3 comment:
When doing automated benchmark with fio (see instructions
in [*]) this resulted in a +1.4% speedup vs existing code.
[*] https://lore.kernel.org/qemu-devel/20260202185233.GC405548@fedora/
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Pierrick Bouvier <[email protected]>
---
include/hw/virtio/virtio-access.h | 24 ++++++++++++------------
hw/virtio/virtio.c | 4 ++--
2 files changed, 14 insertions(+), 14 deletions(-)