]> git.ipfire.org Git - thirdparty/qemu.git/commit
vdpa: Fix endian bugs in shadow virtqueue
authorKonstantin Shkolnyy <kshk@linux.ibm.com>
Wed, 12 Feb 2025 16:49:23 +0000 (10:49 -0600)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 22 Mar 2025 07:52:51 +0000 (10:52 +0300)
commitca12e95f1329b74c5fdaf0d92f38110129831090
tree566a0f19a0b335f5621e58e1ea56812cff0fe25b
parent79600085615561420deddf330680e9914ffa9322
vdpa: Fix endian bugs in shadow virtqueue

VDPA didn't work on a big-endian machine due to missing/incorrect
CPU<->LE data format conversions.

Signed-off-by: Konstantin Shkolnyy <kshk@linux.ibm.com>
Message-Id: <20250212164923.1971538-1-kshk@linux.ibm.com>
Fixes: 10857ec0ad ("vhost: Add VhostShadowVirtqueue")
Acked-by: Eugenio Pérez <eperezma@redhat.com>
Tested-by: Lei Yang <leiyang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 50e9754149066dc91f58405d3378b589098cb408)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/virtio/vhost-shadow-virtqueue.c