mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
arch: Simplify PCI space address handling in AArch64 FDT
Before Virtio-mmio was removed, we passed an optional PCI space address parameter to AArch64 code for generating FDT. The address is none if the transport is MMIO. Now Virtio-PCI is the only option, the parameter is mandatory. Signed-off-by: Michael Zhao <michael.zhao@arm.com>
This commit is contained in:
committed by
Rob Bradford
parent
e83d99ab10
commit
0b0596ef30
@@ -963,7 +963,7 @@ impl Vm {
|
||||
.ok_or(Error::MemOverflow)?
|
||||
+ 1;
|
||||
|
||||
let pci_space = Some((pci_space_start.0, pci_space_size));
|
||||
let pci_space = (pci_space_start.0, pci_space_size);
|
||||
|
||||
// Call `configure_system` and pass the GIC devices out, so that
|
||||
// we can register the GIC device to the device manager.
|
||||
@@ -2035,7 +2035,7 @@ mod tests {
|
||||
&dev_info,
|
||||
&*gic,
|
||||
&None,
|
||||
&None,
|
||||
&(0x1_0000_0000, 0x1_0000),
|
||||
)
|
||||
.is_ok())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user