mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 15:45:05 +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:
@@ -182,3 +182,16 @@ void uart16550_set_property(bool enabled, bool port_mapped, uint64_t base_addr)
|
||||
serial_port_mapped = port_mapped;
|
||||
uart_base_address = base_addr;
|
||||
}
|
||||
|
||||
bool is_pci_dbg_uart(union pci_bdf bdf_value)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
if (uart_enabled && !serial_port_mapped) {
|
||||
if (bdf_value.value == serial_pci_bdf.value) {
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user