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 S. Tsirkin <mst@redhat.com>
Fri, 21 Feb 2025 12:18:42 +0000 (07:18 -0500)
commit50e9754149066dc91f58405d3378b589098cb408
tree4464966ecdd2005e3c3607c6779676158d09f988
parent590de17b829d2ccd8067f19c71a53e31bec7bf00
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>
hw/virtio/vhost-shadow-virtqueue.c