mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +00:00
HV: vuart: enable vuart console for VM
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>
This commit is contained in:
committed by
ACRN System Integration
parent
3c92d7bbc7
commit
235d886103
@@ -688,8 +688,8 @@ int32_t ptirq_intx_pin_remap(struct acrn_vm *vm, uint32_t virt_pin, uint32_t vpi
|
||||
* entry already be held by others, return error.
|
||||
*/
|
||||
|
||||
/* no remap for hypervisor owned intx */
|
||||
if (is_sos_vm(vm) && hv_used_dbg_intx(virt_sid.intx_id.pin)) {
|
||||
/* no remap for vuart intx */
|
||||
if (is_vuart_intx(vm, virt_sid.intx_id.pin)) {
|
||||
status = -ENODEV;
|
||||
}
|
||||
|
||||
|
@@ -398,20 +398,12 @@ int32_t create_vm(uint16_t vm_id, struct acrn_vm_config *vm_config, struct acrn_
|
||||
if (vm_load_pm_s_state(vm) == 0) {
|
||||
register_pm1ab_handler(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; just when uart enabled, vuart can work */
|
||||
if (vm_config->vm_vuart && is_dbg_uart_enabled()) {
|
||||
vuart_init(vm);
|
||||
}
|
||||
#endif
|
||||
/* Create virtual uart;*/
|
||||
vuart_init(vm, vm_config->vuart);
|
||||
|
||||
vrtc_init(vm);
|
||||
|
||||
vpci_init(vm);
|
||||
|
Reference in New Issue
Block a user