include/plugins/qemu-plugin.h: add note about endianness of value returned by qemu_plugin_mem_get_value

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Link: https://lore.kernel.org/qemu-devel/20260325024252.3369186-3-pierrick.bouvier@linaro.org
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
This commit is contained in:
Pierrick Bouvier
2026-03-24 19:42:51 -07:00
parent 539421a428
commit a08fff99be

View File

@@ -374,7 +374,8 @@ enum qemu_plugin_mem_value_type {
*
* @type: the memory access size
* @data: the value accessed during the memory operation (value after
* read/write)
* read/write). It's directly stored following host endianness, so no
* further swap is needed.
*/
typedef struct {
enum qemu_plugin_mem_value_type type;
@@ -682,7 +683,7 @@ bool qemu_plugin_mem_is_store(qemu_plugin_meminfo_t info);
* qemu_plugin_mem_get_value() - return last value loaded/stored
* @info: opaque memory transaction handle
*
* Returns: memory value
* Returns: memory value in host-endian order (no further swap is necessary).
*/
QEMU_PLUGIN_API
qemu_plugin_mem_value qemu_plugin_mem_get_value(qemu_plugin_meminfo_t info);