mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm, docs: make PCI BDF configurable for ivshmem
Add shared PCI config to ivshmem. On-behalf-of: SAP philipp.schuster@sap.com Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
This commit is contained in:
committed by
Rob Bradford
parent
5aa0587f2a
commit
212986f013
@@ -837,6 +837,8 @@ pub const DEFAULT_IVSHMEM_SIZE: usize = 128;
|
||||
#[cfg(feature = "ivshmem")]
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize)]
|
||||
pub struct IvshmemConfig {
|
||||
#[serde(flatten)]
|
||||
pub pci_common: PciDeviceCommonConfig,
|
||||
pub path: PathBuf,
|
||||
pub size: usize,
|
||||
}
|
||||
@@ -845,6 +847,7 @@ pub struct IvshmemConfig {
|
||||
impl Default for IvshmemConfig {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
pci_common: PciDeviceCommonConfig::default(),
|
||||
path: PathBuf::new(),
|
||||
size: DEFAULT_IVSHMEM_SIZE << 20,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user