mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-04-09 13:53:24 +00:00
In previous code, only for pre-launched VM, hypervisor would create vuart console for each VM. But for post-launched VM, no vuart is created. In this patch, create vuart according to configuration in structure acrn_vm_config. As the new configuration is set for pre-launched VM and post-launched VM, and the vuart initialize process is common for each VM, so, remove CONFIG_PARTITION_MODE from vuart related code. Tracked-On: #2987 Signed-off-by: Conghui Chen <conghui.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
24 lines
576 B
C
24 lines
576 B
C
/*
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <types.h>
|
|
#include <vm.h>
|
|
|
|
void vuart_init(__unused struct acrn_vm *vm, __unused struct vuart_config *vu_config) {}
|
|
void vuart_deinit(__unused struct acrn_vm *vm) {}
|
|
struct acrn_vuart *vuart_console_active(void)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
void vuart_console_tx_chars(__unused struct acrn_vuart *vu) {}
|
|
void vuart_console_rx_chars(__unused struct acrn_vuart *vu) {}
|
|
|
|
bool is_vuart_intx(__unused struct acrn_vm *vm, __unused uint32_t intx_pin)
|
|
{
|
|
return false;
|
|
}
|