mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 01:37:44 +00:00
HV: disable vuart when dbg uart is disabled
vuart it used for SOS to output log to HV console, so if dbg uart is disabled, it need be disabled too: just unregister its PIO. Tracked-On: 2170 Signed-off-by: Minggui Cao <minggui.cao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -149,14 +149,16 @@ int32_t create_vm(struct vm_description *vm_desc, struct acrn_vm **rtn_vm)
|
||||
register_pm1ab_handler(vm);
|
||||
}
|
||||
|
||||
/* Create virtual uart */
|
||||
vuart_init(vm);
|
||||
/* Create virtual uart; just when uart enabled, vuart can work */
|
||||
if (is_dbg_uart_enabled()) {
|
||||
vuart_init(vm);
|
||||
}
|
||||
}
|
||||
vpic_init(vm);
|
||||
|
||||
#ifdef CONFIG_PARTITION_MODE
|
||||
/* Create virtual uart */
|
||||
if (vm_desc->vm_vuart) {
|
||||
/* Create virtual uart; just when uart enabled, vuart can work */
|
||||
if (vm_desc->vm_vuart && is_dbg_uart_enabled()) {
|
||||
vuart_init(vm);
|
||||
}
|
||||
vrtc_init(vm);
|
||||
|
Reference in New Issue
Block a user