mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Switch RawFileDisk to DiskBackend::Next
Update device_manager.rs to construct DiskBackend::Next instead of DiskBackend::Legacy for the io_uring raw backend. Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
@@ -2756,9 +2756,7 @@ impl DeviceManager {
|
||||
unreachable!("Checked in if statement above");
|
||||
#[cfg(feature = "io_uring")]
|
||||
{
|
||||
DiskBackend::Legacy(
|
||||
Box::new(RawFileDisk::new(file)) as Box<dyn DiskFile>
|
||||
)
|
||||
DiskBackend::Next(Box::new(RawFileDisk::new(file)))
|
||||
}
|
||||
} else if !disk_cfg.disable_aio && self.aio_is_supported() {
|
||||
info!("Using asynchronous RAW disk file (aio)");
|
||||
|
||||
Reference in New Issue
Block a user