mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Sebastien Boeuf
parent
7889fc9207
commit
bdfe6a69ef
@@ -127,10 +127,10 @@ struct VirtioIommuTopoPciRange {
|
|||||||
reserved: u8,
|
reserved: u8,
|
||||||
length: u16,
|
length: u16,
|
||||||
endpoint_start: u32,
|
endpoint_start: u32,
|
||||||
segment: u16,
|
segment_start: u16,
|
||||||
|
segment_end: u16,
|
||||||
bdf_start: u16,
|
bdf_start: u16,
|
||||||
bdf_end: u16,
|
bdf_end: u16,
|
||||||
padding: u16,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe impl ByteValued for VirtioIommuTopoPciRange {}
|
unsafe impl ByteValued for VirtioIommuTopoPciRange {}
|
||||||
@@ -831,7 +831,8 @@ impl Iommu {
|
|||||||
type_: VIRTIO_IOMMU_TOPO_PCI_RANGE,
|
type_: VIRTIO_IOMMU_TOPO_PCI_RANGE,
|
||||||
length: size_of::<VirtioIommuTopoPciRange>() as u16,
|
length: size_of::<VirtioIommuTopoPciRange>() as u16,
|
||||||
endpoint_start: dev_id,
|
endpoint_start: dev_id,
|
||||||
segment,
|
segment_start: segment,
|
||||||
|
segment_end: segment,
|
||||||
bdf_start: dev_id as u16,
|
bdf_start: dev_id as u16,
|
||||||
bdf_end: dev_id as u16,
|
bdf_end: dev_id as u16,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
|
|||||||
Reference in New Issue
Block a user