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:
Anatol Belski
2026-03-24 17:11:36 +01:00
committed by Bo Chen
parent c0db1f61ac
commit b69bd219fa

View File

@@ -2722,10 +2722,10 @@ impl DeviceManager {
unreachable!("Checked in if statement above"); unreachable!("Checked in if statement above");
#[cfg(feature = "io_uring")] #[cfg(feature = "io_uring")]
{ {
DiskBackend::Legacy(Box::new( DiskBackend::Next(Box::new(
FixedVhdDiskAsync::new(file) FixedVhdDiskAsync::new(file)
.map_err(DeviceManagerError::CreateFixedVhdDiskAsync)?, .map_err(DeviceManagerError::CreateFixedVhdDiskAsync)?,
) as Box<dyn DiskFile>) ))
} }
} else { } else {
info!("Using synchronous fixed VHD disk file"); info!("Using synchronous fixed VHD disk file");