From 24f8ccf5a7158ba755a4a81402027932a8ed65ca Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Fri, 12 Jun 2026 12:04:03 +0100 Subject: [PATCH] main: Fix test_valid_vm_config_serial_console This test has a copy and paste error where the PCI segment ID was being set with no extra segments configured. Signed-off-by: Rob Bradford --- cloud-hypervisor/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud-hypervisor/src/main.rs b/cloud-hypervisor/src/main.rs index db1b43e0d..699300843 100644 --- a/cloud-hypervisor/src/main.rs +++ b/cloud-hypervisor/src/main.rs @@ -1717,12 +1717,12 @@ mod unit_tests { "--serial", "null", "--console", - "tty,pci_segment=1,pci_device_id=7", + "tty,pci_segment=0,pci_device_id=7", ], r#"{ "payload": {"kernel": "/path/to/kernel"}, "serial": {"mode": "Null"}, - "console": {"mode": "Tty", "iommu": false, "pci_segment": 1, "pci_device_id": 7} + "console": {"mode": "Tty", "iommu": false, "pci_segment": 0, "pci_device_id": 7} }"#, true, ),