mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-17 06:49:25 +00:00
dm: add log for debuging pci while vm reset
Print some log to dmesg when init/deinit vdev. Tracked-On: #2419 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
This commit is contained in:
@@ -1273,10 +1273,15 @@ init_pci(struct vmctx *ctx)
|
||||
continue;
|
||||
ops = pci_emul_finddev(fi->fi_name);
|
||||
assert(ops != NULL);
|
||||
write_kmsg("%s before init ---\n", fi->fi_name);
|
||||
error = pci_emul_init(ctx, ops, bus, slot,
|
||||
func, fi);
|
||||
if (error)
|
||||
if (error) {
|
||||
write_kmsg("%s after init failure ---\n", fi->fi_name);
|
||||
goto pci_emul_init_fail;
|
||||
}
|
||||
|
||||
write_kmsg("%s after init ---\n", fi->fi_name);
|
||||
success_cnt++;
|
||||
}
|
||||
}
|
||||
@@ -1430,8 +1435,9 @@ deinit_pci(struct vmctx *ctx)
|
||||
continue;
|
||||
ops = pci_emul_finddev(fi->fi_name);
|
||||
assert(ops != NULL);
|
||||
pci_emul_deinit(ctx, ops, bus, slot,
|
||||
func, fi);
|
||||
write_kmsg("%s before deinit ---\n", fi->fi_name);
|
||||
pci_emul_deinit(ctx, ops, bus, slot, func, fi);
|
||||
write_kmsg("%s after deinit ---\n", fi->fi_name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user