vfio: Don't throw an error if a region cannot be found

Everytime we use VFIO with cloud-hypervisor, we get the following error:

ERROR:vfio/src/vfio_device.rs:440 -- Could not get region #8 info

But this is not an error per se, and should be considered as a simple
warning.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2020-01-08 18:46:39 +01:00
parent c2ae380503
commit 24cf15d2b2

View File

@ -437,7 +437,7 @@ impl VfioDeviceInfo {
ioctl_with_mut_ref(&self.device, VFIO_DEVICE_GET_REGION_INFO(), &mut reg_info)
};
if ret < 0 {
error!("Could not get region #{} info", i);
warn!("Could not get region #{} info", i);
continue;
}
@ -463,7 +463,7 @@ impl VfioDeviceInfo {
)
};
if ret < 0 {
error!("Could not get region #{} info", i);
warn!("Could not get region #{} info", i);
continue;
}
// region_with_cap[0].cap_info may contain vfio_region_info_cap_sparse_mmap