mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
The virtual IOMMU exposed through virtio-iommu device has a dependency on ACPI. It needs to expose the device ID of the virtio-iommu device, and all the other devices attached to this virtual IOMMU. The IDs are expressed from a PCI bus perspective, based on segment, bus, device and function. The guest relies on the topology description provided by the IORT table to attach devices to the virtio-iommu device. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
29 lines
859 B
Rust
29 lines
859 B
Rust
// Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
pub mod layout;
|
|
|
|
use memory_model::{GuestAddress, GuestMemory};
|
|
|
|
/// Stub function that needs to be implemented when aarch64 functionality is added.
|
|
pub fn arch_memory_regions(size: usize) -> Vec<(GuestAddress, usize, RegionType)> {
|
|
vec![(GuestAddress(0), size, RegionType::Ram)]
|
|
}
|
|
|
|
/// Stub function that needs to be implemented when aarch64 functionality is added.
|
|
pub fn configure_system(
|
|
_guest_mem: &GuestMemory,
|
|
_cmdline_addr: GuestAddress,
|
|
_cmdline_size: usize,
|
|
_num_cpus: u8,
|
|
_serial_enabled: bool,
|
|
_virt_iommu: Option<(u32, &[u32])>,
|
|
) -> super::Result<()> {
|
|
Ok(())
|
|
}
|
|
|
|
/// Stub function that needs to be implemented when aarch64 functionality is added.
|
|
pub fn get_reserved_mem_addr() -> usize {
|
|
0
|
|
}
|