mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
ci: AArch64: Enable AArch64 mmio-related integration test cases
This commit enables some mmio-related integration test cases on AArch64, including: * some vhost_user test cases * virtio-blk test cases * pmem test cases Also this commit contains a bug fix in creating virtio-blk device. Previously, when creating the FDT, the virtio-blk device was labeled in the reverse order of address allocation. Signed-off-by: Henry Wang <Henry.Wang@arm.com>
This commit is contained in:
@@ -540,6 +540,10 @@ fn create_devices_node<T: DeviceInfoForFDT + Clone + Debug>(
|
||||
|
||||
// Sort out virtio devices by address from low to high and insert them into fdt table.
|
||||
ordered_virtio_device.sort_by(|a, b| a.addr().cmp(&b.addr()));
|
||||
// Current address allocation strategy in cloud-hypervisor is: the first created device
|
||||
// will be allocated to higher address. Here we reverse the vector to make sure that
|
||||
// the older created device will appear in front of the newer created device in FDT.
|
||||
ordered_virtio_device.reverse();
|
||||
for ordered_device_info in ordered_virtio_device.drain(..) {
|
||||
create_virtio_node(fdt, ordered_device_info)?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user