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:
Minggui Cao
2018-11-29 14:59:10 +08:00
committed by wenlingz
parent 8d08ec30b7
commit db4254e2df
4 changed files with 21 additions and 0 deletions

View File

@@ -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;
}