From 90f3ce442db4ce6126538ae8ab01a24a013dce15 Mon Sep 17 00:00:00 2001 From: Victor Sun Date: Tue, 21 May 2019 12:50:08 +0800 Subject: [PATCH] HV: remove unused UNDEFINED_VM The enum of UNDEFINED_VM has never been used, remove it; Tracked-On: #2291 Signed-off-by: Victor Sun --- hypervisor/arch/x86/configs/vm_config.c | 2 +- hypervisor/include/arch/x86/vm_config.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hypervisor/arch/x86/configs/vm_config.c b/hypervisor/arch/x86/configs/vm_config.c index 5e9b6c15e..1a0c95593 100644 --- a/hypervisor/arch/x86/configs/vm_config.c +++ b/hypervisor/arch/x86/configs/vm_config.c @@ -108,7 +108,7 @@ bool sanitize_vm_config(void) /* Nothing to do here for a POST_LAUNCHED_VM, break directly. */ break; default: - /* Nothing to do for a UNDEFINED_VM, break directly. */ + /* Nothing to do for a unknown VM, break directly. */ break; } diff --git a/hypervisor/include/arch/x86/vm_config.h b/hypervisor/include/arch/x86/vm_config.h index 6a199e192..d6e7d661c 100644 --- a/hypervisor/include/arch/x86/vm_config.h +++ b/hypervisor/include/arch/x86/vm_config.h @@ -23,8 +23,7 @@ * POST_LAUNCHED_VM is launched by ACRN devicemodel, with/without LAPIC_PT depends on usecases. */ enum acrn_vm_load_order { - UNDEFINED_VM = 0, - PRE_LAUNCHED_VM, + PRE_LAUNCHED_VM = 1, SOS_VM, POST_LAUNCHED_VM /* Launched by Devicemodel in SOS_VM */ };