> hdr->type and hdr->sector are __virtio32 and __virtio64 but were used > without conversion. Since VIRTIO_F_VERSION_1 is offered, on a big-endian > host with a little-endian guest the request header was misinterpreted. > > Convert both with vhost32_to_cpu()/vhost64_to_cpu() once, when the > request is set up. > > https://virtuozzo.atlassian.net/browse/VSTOR-142755 > Fixes: 1629db092dd7 ("drivers/vhost: vhost-blk accelerator for virtio-blk > guests") > Feature: vhost-blk: in-kernel accelerator for virtio-blk guests > Signed-off-by: Alexander Ivanov <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review ยท https://sashiko.vzint.dev/#/patchset/[email protected]?part=1 _______________________________________________ Devel mailing list [email protected] https://lists.openvz.org/mailman/listinfo/devel
