]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/misc/aspeed_hace: Support accumulative mode for direct access mode
authorJamin Lin <jamin_lin@aspeedtech.com>
Thu, 15 May 2025 08:09:43 +0000 (16:09 +0800)
committerCédric Le Goater <clg@redhat.com>
Sun, 25 May 2025 21:39:11 +0000 (23:39 +0200)
commit7b4e588000699701f5906746d1b5b845391705e6
tree77df9b4aa5c3362b613b439fc94a3e9e4b81af49
parent973fab3b3099aa5f6a4510c4da03056d6baf09a7
hw/misc/aspeed_hace: Support accumulative mode for direct access mode

Enable accumulative mode for direct access mode operations. In direct access
mode, only a single source buffer is used, so the "iovec" count is set to 1.
If "acc_mode" is enabled:
1. Accumulate "total_req_len" with the current request length ("plen").
2. Check for padding and determine whether this is the final request.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250515081008.583578-12-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/misc/aspeed_hace.c