mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-07 04:07:21 +00:00
arch: Add log messages in GIC creation
The retry order to create virtual GIC is GICv3-ITS, GICv3 and GICv2. But there was not log message to show what was finally created. The log messages also mute the warning for unused "log" crate. Signed-off-by: Michael Zhao <michael.zhao@arm.com>
This commit is contained in:
parent
48966b4535
commit
2de4f73275
@ -166,7 +166,12 @@ pub fn create_gic(
|
||||
if its_required {
|
||||
GICv3ITS::new(vm, vcpu_count)
|
||||
} else {
|
||||
GICv3ITS::new(vm, vcpu_count)
|
||||
.or_else(|_| GICv3::new(vm, vcpu_count).or_else(|_| GICv2::new(vm, vcpu_count)))
|
||||
GICv3ITS::new(vm, vcpu_count).or_else(|_| {
|
||||
debug!("Failed to create GICv3-ITS, will try GICv3 instead.");
|
||||
GICv3::new(vm, vcpu_count).or_else(|_| {
|
||||
debug!("Failed to create GICv3, will try GICv2 instead.");
|
||||
GICv2::new(vm, vcpu_count)
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user