mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Switch fixed VHD async to DiskBackend::Next
Wire FixedVhdDiskAsync through the new composable trait system. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
@@ -2722,10 +2722,10 @@ impl DeviceManager {
|
||||
unreachable!("Checked in if statement above");
|
||||
#[cfg(feature = "io_uring")]
|
||||
{
|
||||
DiskBackend::Legacy(Box::new(
|
||||
DiskBackend::Next(Box::new(
|
||||
FixedVhdDiskAsync::new(file)
|
||||
.map_err(DeviceManagerError::CreateFixedVhdDiskAsync)?,
|
||||
) as Box<dyn DiskFile>)
|
||||
))
|
||||
}
|
||||
} else {
|
||||
info!("Using synchronous fixed VHD disk file");
|
||||
|
||||
Reference in New Issue
Block a user