mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-11-04 19:11:11 +00:00
vmm: Add some missing fields in IORT table
Added fields: - `Memory address size limit`: the missing of this field triggered warnings in guest kernel - `Node ID` Signed-off-by: Michael Zhao <michael.zhao@arm.com>
This commit is contained in:
parent
b0d245be70
commit
8c88b10384
@ -439,6 +439,8 @@ fn create_iort_table(pci_segments: &[PciSegment]) -> Sdt {
|
||||
);
|
||||
// Revision
|
||||
iort.write(node_offset + 3, (3u8).to_le());
|
||||
// Node ID
|
||||
iort.write(node_offset + 4, (segment.id as u32).to_le());
|
||||
// Mapping counts
|
||||
iort.write(node_offset + 8, (1u32).to_le());
|
||||
// Offset from the start of the RC node to the start of its Array of ID mappings
|
||||
@ -449,6 +451,8 @@ fn create_iort_table(pci_segments: &[PciSegment]) -> Sdt {
|
||||
iort.write(node_offset + 24, 3u8);
|
||||
// PCI segment number
|
||||
iort.write(node_offset + 28, (segment.id as u32).to_le());
|
||||
// Memory address size limit
|
||||
iort.write(node_offset + 32, (64u8).to_le());
|
||||
|
||||
// From offset 32 onward is the space for ID mappings Array.
|
||||
// Now we have only one mapping.
|
||||
|
Loading…
Reference in New Issue
Block a user