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:
Philipp Schuster
2026-05-19 14:59:35 +02:00
committed by Rob Bradford
parent 5aa0587f2a
commit 212986f013
4 changed files with 63 additions and 11 deletions
+3
View File
@@ -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,
}