]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio/migration: Use BE byte order for device state wire packets
authorMaciej S. Szmigiero <maciej.szmigiero@oracle.com>
Mon, 10 Mar 2025 12:53:10 +0000 (13:53 +0100)
committerCédric Le Goater <clg@redhat.com>
Tue, 11 Mar 2025 16:01:14 +0000 (17:01 +0100)
commitcbb2e105268d0c5b22ba6fc936af1ae6bae3f959
tree88e53452e0249d4ce692fed76755981452244eca
parente46b7af508c27a4e830818ac05fa3e2e4c33b416
vfio/migration: Use BE byte order for device state wire packets

Wire data commonly use BE byte order (including in the existing migration
protocol), use it also for for VFIO device state packets.

This will allow VFIO multifd device state transfer between hosts with
different endianness.
Although currently there is no such use case, it's good to have it now
for completeness.

Reviewed-by: Avihai Horon <avihaih@nvidia.com>
Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Link: https://lore.kernel.org/qemu-devel/dcfc04cc1a50655650dbac8398e2742ada84ee39.1741611079.git.maciej.szmigiero@oracle.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/migration-multifd.c