linux/drivers/vdpa
Arnd Bergmann ebcff9daca vduse: avoid adding implicit padding
The vduse_iova_range_v2 and vduse_iotlb_entry_v2 structures are both
defined in a way that adds implicit padding and is incompatible between
i386 and x86_64 userspace because of the different structure alignment
requirements. Building the header with -Wpadded shows these new warnings:

vduse.h:305:1: error: padding struct size to alignment boundary with 4 bytes [-Werror=padded]
vduse.h:374:1: error: padding struct size to alignment boundary with 4 bytes [-Werror=padded]

Change the amount of padding in these two structures to align them to
64 bit words and avoid those problems. Since the v1 vduse_iotlb_entry
already has an inconsistent size, do not attempt to reuse the structure
but rather list the members indiviudally, with a fixed amount of
padding.

Fixes: 079212f687 ("vduse: add vq group asid support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20260202224835.559538-1-arnd@kernel.org>
2026-02-09 12:21:32 -05:00
..
alibaba vdpa: introduce map ops 2025-10-01 07:24:55 -04:00
ifcvf vdpa: introduce map ops 2025-10-01 07:24:55 -04:00
mlx5 vdpa/mlx5: update MAC address handling in mlx5_vdpa_set_attr() 2026-02-04 14:13:43 -05:00
octeon_ep virtio: vdpa: Fix reference count leak in octep_sriov_enable() 2025-11-27 02:03:06 -05:00
pds vdpa/pds: use %pe for ERR_PTR() in event handler registration 2025-11-27 02:03:07 -05:00
solidrun vdpa: introduce map ops 2025-10-01 07:24:55 -04:00
vdpa_sim vhost: move vdpa group bound check to vhost_vdpa 2026-01-28 15:32:16 -05:00
vdpa_user vduse: avoid adding implicit padding 2026-02-09 12:21:32 -05:00
virtio_pci vdpa: introduce map ops 2025-10-01 07:24:55 -04:00
Kconfig vduse: switch to use virtio map API instead of DMA API 2025-10-01 07:24:55 -04:00
Makefile virtio: vdpa: vDPA driver for Marvell OCTEON DPU devices 2024-07-09 08:42:39 -04:00
vdpa.c vdpa: introduce map ops 2025-10-01 07:24:55 -04:00