mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
pci: Print out details of the BAR moving upon error
In particular include the old and new bases as well as the length. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
committed by
Sebastien Boeuf
parent
a216c2ebd3
commit
56207a0328
+8
-2
@@ -239,7 +239,10 @@ impl PciConfigIo {
|
|||||||
device.deref_mut(),
|
device.deref_mut(),
|
||||||
params.region_type,
|
params.region_type,
|
||||||
) {
|
) {
|
||||||
error!("Failed moving device BAR: {}", e);
|
error!(
|
||||||
|
"Failed moving device BAR: {}: 0x{:x}->0x{:x}(0x{:x})",
|
||||||
|
e, params.old_base, params.new_base, params.len
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -355,7 +358,10 @@ impl PciConfigMmio {
|
|||||||
device.deref_mut(),
|
device.deref_mut(),
|
||||||
params.region_type,
|
params.region_type,
|
||||||
) {
|
) {
|
||||||
error!("Failed moving device BAR: {}", e);
|
error!(
|
||||||
|
"Failed moving device BAR: {}: 0x{:x}->0x{:x}(0x{:x})",
|
||||||
|
e, params.old_base, params.new_base, params.len
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user