Re: [PULL v3 52/85] contrib/vhost-user-*: use QEMU bswap helper functions

2024-07-12 Thread Peter Maydell
On Fri, 12 Jul 2024 at 16:18, Stefano Garzarella wrote: > > On Fri, Jul 12, 2024 at 03:24:47PM GMT, Peter Maydell wrote: > >On Wed, 3 Jul 2024 at 23:48, Michael S. Tsirkin wrote: > >> #if defined(__linux__) && defined(BLKDISCARD) && defined(BLKZEROOUT) > >> VubDev *vdev_blk = req->vdev_

Re: [PULL v3 52/85] contrib/vhost-user-*: use QEMU bswap helper functions

2024-07-12 Thread Stefano Garzarella
On Fri, Jul 12, 2024 at 03:24:47PM GMT, Peter Maydell wrote: On Wed, 3 Jul 2024 at 23:48, Michael S. Tsirkin wrote: From: Stefano Garzarella Let's replace the calls to le*toh() and htole*() with qemu/bswap.h helpers to make the code more portable. Suggested-by: Philippe Mathieu-Daudé Revie

Re: [PULL v3 52/85] contrib/vhost-user-*: use QEMU bswap helper functions

2024-07-12 Thread Peter Maydell
On Wed, 3 Jul 2024 at 23:48, Michael S. Tsirkin wrote: > > From: Stefano Garzarella > > Let's replace the calls to le*toh() and htole*() with qemu/bswap.h > helpers to make the code more portable. > > Suggested-by: Philippe Mathieu-Daudé > Reviewed-by: Philippe Mathieu-Daudé > Tested-by: Philip

[PULL v3 52/85] contrib/vhost-user-*: use QEMU bswap helper functions

2024-07-03 Thread Michael S. Tsirkin
From: Stefano Garzarella Let's replace the calls to le*toh() and htole*() with qemu/bswap.h helpers to make the code more portable. Suggested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Acked-by: Stefan Hajnoczi Reviewed-by: David Hildenbr