mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 03:12:27 +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:
parent
7889fc9207
commit
bdfe6a69ef
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user