mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 23:24:56 +00:00
vm_state: Update vm state VM_STATE_INVALID to VM_POWERED_OFF
Replace the vm state VM_STATE_INVALID to VM_POWERED_OFF. Also replace is_valid_vm() with is_poweroff_vm(). Add API is_created_vm() to identify VM created state. Tracked-On: #3082 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
21b82d8815
commit
8626e5aa3a
@@ -92,7 +92,7 @@ struct acrn_vuart *vuart_console_active(void)
|
||||
|
||||
if (console_vmid < CONFIG_MAX_VM_NUM) {
|
||||
vm = get_vm_from_vmid(console_vmid);
|
||||
if (is_valid_vm(vm)) {
|
||||
if (!is_poweroff_vm(vm)) {
|
||||
vu = vm_console_vuart(vm);
|
||||
} else {
|
||||
/* Console vm is invalid, switch back to HV-Shell */
|
||||
|
||||
Reference in New Issue
Block a user