mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
@@ -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!(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user