From aa14fe214a8c02d980f742e5200323505fe03595 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Mon, 1 May 2023 17:34:11 +0000 Subject: [PATCH] pci: bump the number of supported PCI segments Signed-off-by: Wei Liu --- tests/integration.rs | 2 +- vmm/src/config.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration.rs b/tests/integration.rs index 575d1c040..f60d3ce92 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -33,7 +33,7 @@ use vmm_sys_util::{tempdir::TempDir, tempfile::TempFile}; use wait_timeout::ChildExt; // Constant taken from the VMM crate. -const MAX_NUM_PCI_SEGMENTS: u16 = 16; +const MAX_NUM_PCI_SEGMENTS: u16 = 96; #[cfg(target_arch = "x86_64")] mod x86_64 { diff --git a/vmm/src/config.rs b/vmm/src/config.rs index 5fcc95354..d43653a77 100644 --- a/vmm/src/config.rs +++ b/vmm/src/config.rs @@ -17,7 +17,7 @@ use std::str::FromStr; use thiserror::Error; use virtio_devices::{RateLimiterConfig, TokenBucketConfig}; -const MAX_NUM_PCI_SEGMENTS: u16 = 16; +const MAX_NUM_PCI_SEGMENTS: u16 = 96; /// Errors associated with VM configuration parameters. #[derive(Debug, Error)]