[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [PATCH virtio] virtio-iommu: Add built-in topology description
On Wed, Jul 15, 2020 at 10:52:30AM +0200, Auger Eric wrote: > > +If the VIRTIO_IOMMU_F_TOPOLOGY feature is negotiated, \field{topo_config} > > +describes the topology description array. \field{topo_config.offset} is > > +the offset between the beginning of the device-specific configuration > > +space (struct virtio_iommu_config) and the array. The array is composed of > > +\field{topo_config.num_items} topology structures. A topology structure > > +defines the endpoint ID of one or more endpoints managed by the > > +virtio-iommu device. Each structure has a \field{length} field, which > > +defines the offset to the next structure. > > If this is an offset, then you may precise what the offset is relative > to (I guess the beginning of the current topology structure). Ok, changing it to "which defines the offset from the beginning of the structure to the beginning of the next one". > Otherwise > the structure only has fixed size elements so is its length expected to > vary? Length is only for backward compatibility: if a future version of the spec appends new elements to the structure, then the current driver can ignore those elements and jump to the next structure (like argsz in VFIO, and the PROBE property length). Thanks, Jean
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]