mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-28 07:33:09 +00:00
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:
parent
c2ae380503
commit
24cf15d2b2
@ -437,7 +437,7 @@ impl VfioDeviceInfo {
|
|||||||
ioctl_with_mut_ref(&self.device, VFIO_DEVICE_GET_REGION_INFO(), &mut reg_info)
|
ioctl_with_mut_ref(&self.device, VFIO_DEVICE_GET_REGION_INFO(), &mut reg_info)
|
||||||
};
|
};
|
||||||
if ret < 0 {
|
if ret < 0 {
|
||||||
error!("Could not get region #{} info", i);
|
warn!("Could not get region #{} info", i);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -463,7 +463,7 @@ impl VfioDeviceInfo {
|
|||||||
)
|
)
|
||||||
};
|
};
|
||||||
if ret < 0 {
|
if ret < 0 {
|
||||||
error!("Could not get region #{} info", i);
|
warn!("Could not get region #{} info", i);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// region_with_cap[0].cap_info may contain vfio_region_info_cap_sparse_mmap
|
// region_with_cap[0].cap_info may contain vfio_region_info_cap_sparse_mmap
|
||||||
|
Loading…
Reference in New Issue
Block a user