From f6c8e4b045959788a4cc4464be9a3739a7c12fa2 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Fri, 22 Jan 2021 14:19:09 +0100 Subject: [PATCH] vmm: device_manager: Add info!() message about disk file backend It might be useful debugging information for the user to know what kind of disk file implementation is in use. Signed-off-by: Sebastien Boeuf --- vmm/src/device_manager.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vmm/src/device_manager.rs b/vmm/src/device_manager.rs index ed495197f..b54518441 100644 --- a/vmm/src/device_manager.rs +++ b/vmm/src/device_manager.rs @@ -1659,12 +1659,15 @@ impl DeviceManager { // Use asynchronous backend relying on io_uring if the // syscalls are supported. if block_io_uring_is_supported() && !disk_cfg.disable_io_uring { + info!("Using asynchronous RAW disk file (io_uring)"); Box::new(RawFileDisk::new(file)) as Box } else { + info!("Using synchronous RAW disk file"); Box::new(RawFileDiskSync::new(file, disk_cfg.direct)) as Box } } ImageType::Qcow2 => { + info!("Using synchronous QCOW disk file"); Box::new(QcowDiskSync::new(file, disk_cfg.direct)) as Box } };