mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 08:50:27 +00:00
HV: find and hide serial PCI dev from service OS
serial PCI device is just used for HV/SOS output debug information; because it is used in hypervisor layer, SOS should not touch it. so need to check and hide it from SOS. Tracked-On: #1923 Signed-off-by: Minggui Cao <minggui.cao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -155,6 +155,12 @@ void pci_scan_bus(pci_enumeration_cb cb_func, void *cb_data)
|
||||
continue;
|
||||
}
|
||||
|
||||
/* if it is debug uart, hide it from SOS */
|
||||
if (is_pci_dbg_uart(pbdf)) {
|
||||
pr_info("hide pci uart dev: (%x:%x:%x)", pbdf.bits.b, pbdf.bits.d, pbdf.bits.f);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (cb_func != NULL) {
|
||||
cb_func(pbdf.value, cb_data);
|
||||
}
|
||||
|
Reference in New Issue
Block a user