virtio-devices: iommu: Update to latest version of IOMMU spec

This is order to support the latest patches from
https://jpbrucker.net/git/linux/commit/?h=virtio-iommu/devel&id=ddc3e6ce3f534af827a9c8f91e12a7082de8ec61

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2021-01-11 10:21:53 +00:00 committed by Sebastien Boeuf
parent 7889fc9207
commit bdfe6a69ef

View File

@ -127,10 +127,10 @@ struct VirtioIommuTopoPciRange {
reserved: u8,
length: u16,
endpoint_start: u32,
segment: u16,
segment_start: u16,
segment_end: u16,
bdf_start: u16,
bdf_end: u16,
padding: u16,
}
unsafe impl ByteValued for VirtioIommuTopoPciRange {}
@ -831,7 +831,8 @@ impl Iommu {
type_: VIRTIO_IOMMU_TOPO_PCI_RANGE,
length: size_of::<VirtioIommuTopoPciRange>() as u16,
endpoint_start: dev_id,
segment,
segment_start: segment,
segment_end: segment,
bdf_start: dev_id as u16,
bdf_end: dev_id as u16,
..Default::default()