mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Creating a dedicated Result type for VirtioPciDevice, associated with the new VirtioPciDeviceError enum. This allows for a clearer handling of the errors generated through VirtioPciDevice::new(). Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
14 lines
422 B
Rust
14 lines
422 B
Rust
// Copyright © 2019 Intel Corporation
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
use vmm_sys_util::eventfd::EventFd;
|
|
mod pci_common_config;
|
|
mod pci_device;
|
|
pub use pci_common_config::{VirtioPciCommonConfig, VIRTIO_PCI_COMMON_CONFIG_ID};
|
|
pub use pci_device::{VirtioPciDevice, VirtioPciDeviceActivator, VirtioPciDeviceError};
|
|
|
|
pub trait VirtioTransport {
|
|
fn ioeventfds(&self, base_addr: u64) -> Vec<(&EventFd, u64)>;
|
|
}
|