vmm: Switch VHDX to DiskBackend::Next

Wire VhdxDiskSync through DiskBackend::Next instead of Legacy.

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
Anatol Belski
2026-03-25 16:44:44 +01:00
committed by Bo Chen
parent cf9496376f
commit b703043f77

View File

@@ -2784,10 +2784,10 @@ impl DeviceManager {
}
ImageType::Vhdx => {
info!("Using synchronous VHDX disk file");
DiskBackend::Legacy(Box::new(
DiskBackend::Next(Box::new(
VhdxDiskSync::new(file)
.map_err(DeviceManagerError::CreateFixedVhdxDiskSync)?,
) as Box<dyn DiskFile>)
))
}
ImageType::Unknown => unreachable!(),
};