remove unused vm_state_info

vm_state_info in struct vm_arch is not used, remove it

Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Xu, Anthony <anthony.xu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Jason Chen CJ 2018-05-30 19:40:54 +08:00 committed by lijinxia
parent 72104468f2
commit 0cf5142895
2 changed files with 0 additions and 11 deletions

View File

@ -61,8 +61,6 @@ static void init_vm(struct vm_description *vm_desc,
vm_handle->hw.num_vcpus = vm_desc->vm_hw_num_cores;
vm_handle->hw.exp_num_vcpus = vm_desc->vm_hw_num_cores;
}
vm_handle->state_info.privilege = vm_desc->vm_state_info_privilege;
vm_handle->state_info.boot_count = 0;
}
/* return a pointer to the virtual machine structure associated with

View File

@ -108,14 +108,6 @@ enum vm_state {
VM_STATE_UNKNOWN
};
/* Structure for VM state information */
struct vm_state_info {
enum vm_state state; /* State of the VM */
unsigned int privilege; /* Privilege level of the VM */
unsigned int boot_count;/* Number of times the VM has booted */
};
struct vm_arch {
uint64_t guest_init_pml4;/* Guest init pml4 */
/* EPT hierarchy for Normal World */
@ -163,7 +155,6 @@ struct vm {
struct vm_sw_info sw; /* Reference to SW associated with this VM */
struct vm_pm_info pm; /* Reference to this VM's arch information */
struct vm_arch arch_vm; /* Reference to this VM's arch information */
struct vm_state_info state_info;/* State info of this VM */
enum vm_state state; /* VM state */
struct vcpu *current_vcpu; /* VCPU that caused vm exit */
void *vuart; /* Virtual UART */