mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
vfio: Cleanup error_report()s
With the conversion to tracepoints, a couple previous DPRINTKs are now quite a bit more visible and are really just informational. Remove these and add a bit more description to another. Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
This commit is contained in:
+1
-1
@@ -566,7 +566,7 @@ static void vfio_kvm_device_add_group(VFIOGroup *group)
|
||||
};
|
||||
|
||||
if (kvm_vm_ioctl(kvm_state, KVM_CREATE_DEVICE, &cd)) {
|
||||
error_report("KVM_CREATE_DEVICE: %m\n");
|
||||
error_report("Failed to create KVM VFIO device: %m\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -2801,8 +2801,6 @@ static int vfio_pci_hot_reset(VFIOPCIDevice *vdev, bool single)
|
||||
tmp = container_of(vbasedev_iter, VFIOPCIDevice, vbasedev);
|
||||
if (vfio_pci_host_match(&host, &tmp->host)) {
|
||||
if (single) {
|
||||
error_report("vfio: found another in-use device "
|
||||
"%s\n", vbasedev_iter->name);
|
||||
ret = -EINVAL;
|
||||
goto out_single;
|
||||
}
|
||||
@@ -2815,7 +2813,6 @@ static int vfio_pci_hot_reset(VFIOPCIDevice *vdev, bool single)
|
||||
}
|
||||
|
||||
if (!single && !multi) {
|
||||
error_report("vfio: No other in-use devices for multi hot reset\n");
|
||||
ret = -EINVAL;
|
||||
goto out_single;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user