Re: [PATCH v2 1/5] iommu/virtio: Add definitions for VIRTIO_IOMMU_F_BYPASS_CONFIG
From: Jean-Philippe Brucker
Date: Mon Nov 29 2021 - 14:14:25 EST
Hi Eric,
On Sat, Nov 27, 2021 at 08:59:25AM +0100, Eric Auger wrote:
> > @@ -36,6 +37,8 @@ struct virtio_iommu_config {
> > struct virtio_iommu_range_32 domain_range;
> > /* Probe buffer size */
> > __le32 probe_size;
> > + __u8 bypass;
> > + __u8 reserved[7];
> in [PATCH v3] virtio-iommu: Rework the bypass feature I see
>
> + u8 bypass;
> + u8 reserved[3];
>
> What was exactly voted?
Good catch, this should be 3. It brings the config struct to 40 bytes,
which is the size compilers generate when there is no reserved field.
Thanks,
Jean