runtime-rs: don't emit scsi parameter for block devices

This parameter has been deprecated for a long time and QEMU 9.1.0 finally removes it.

Signed-off-by: Tom Dohrmann <erbse.13@gmx.de>
This commit is contained in:
Tom Dohrmann 2024-08-02 07:28:30 +02:00
parent c784fb6508
commit b7999ac765
No known key found for this signature in database
GPG Key ID: A1907110D8518A9A

View File

@ -820,7 +820,6 @@ impl ToQemuParams for BlockBackend {
struct DeviceVirtioBlk {
bus_type: VirtioBusType,
id: String,
scsi: bool,
config_wce: bool,
share_rw: bool,
}
@ -830,18 +829,11 @@ impl DeviceVirtioBlk {
DeviceVirtioBlk {
bus_type,
id: id.to_owned(),
scsi: false,
config_wce: false,
share_rw: true,
}
}
#[allow(dead_code)]
fn set_scsi(&mut self, scsi: bool) -> &mut Self {
self.scsi = scsi;
self
}
#[allow(dead_code)]
fn set_config_wce(&mut self, config_wce: bool) -> &mut Self {
self.config_wce = config_wce;
@ -861,11 +853,6 @@ impl ToQemuParams for DeviceVirtioBlk {
let mut params = Vec::new();
params.push(format!("virtio-blk-{}", self.bus_type));
params.push(format!("drive=image-{}", self.id));
if self.scsi {
params.push("scsi=on".to_owned());
} else {
params.push("scsi=off".to_owned());
}
if self.config_wce {
params.push("config-wce=on".to_owned());
} else {