From 3d3a9966bce7ed06a62802535677cf0fee2df4e9 Mon Sep 17 00:00:00 2001 From: Mark Hurenkamp Date: Sun, 29 Dec 2024 13:36:54 +0100 Subject: [PATCH] bugfix in pvscsi bus --- src/config/storage/pvscsi.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/storage/pvscsi.rs b/src/config/storage/pvscsi.rs index 4a2740e..5fd9402 100644 --- a/src/config/storage/pvscsi.rs +++ b/src/config/storage/pvscsi.rs @@ -32,7 +32,7 @@ impl QemuDevice for PvScsiController { format!("id=scsi{}", index), format!("scsi-id={}", index), format!("drive=drive-pvscsi{}", index), - format!("bus=pvscsi{}.{}", controller_index, index), + format!("bus=pvscsi{}.{}", controller_index, 0), ]; device_args.extend(drive.get_device_options()); @@ -95,7 +95,7 @@ mod tests { "-device scsi-cd,id=scsi0,scsi-id=0,drive=drive-pvscsi0,bus=pvscsi0.0" .to_string(), "-drive id=drive-pvscsi1,file=drive1.img,if=none,format=raw,cache=none,detect-zeroes=unmap".to_string(), - "-device scsi-hd,id=scsi1,scsi-id=1,drive=drive-pvscsi1,bus=pvscsi0.1" + "-device scsi-hd,id=scsi1,scsi-id=1,drive=drive-pvscsi1,bus=pvscsi0.0" .to_string(), ]; assert_eq!(storage.get_qemu_args(0), args);