Skip to content

Commit 0cf5142

Browse files
JasonChenCJlijinxia
authored andcommitted
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>
1 parent 7210446 commit 0cf5142

File tree

2 files changed

+0
-11
lines changed
  • hypervisor
    • arch/x86/guest
    • include/arch/x86/guest

2 files changed

+0
-11
lines changed

hypervisor/arch/x86/guest/vm.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ static void init_vm(struct vm_description *vm_desc,
6161
vm_handle->hw.num_vcpus = vm_desc->vm_hw_num_cores;
6262
vm_handle->hw.exp_num_vcpus = vm_desc->vm_hw_num_cores;
6363
}
64-
vm_handle->state_info.privilege = vm_desc->vm_state_info_privilege;
65-
vm_handle->state_info.boot_count = 0;
6664
}
6765

6866
/* return a pointer to the virtual machine structure associated with

hypervisor/include/arch/x86/guest/vm.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,6 @@ enum vm_state {
108108
VM_STATE_UNKNOWN
109109
};
110110

111-
/* Structure for VM state information */
112-
struct vm_state_info {
113-
enum vm_state state; /* State of the VM */
114-
unsigned int privilege; /* Privilege level of the VM */
115-
unsigned int boot_count;/* Number of times the VM has booted */
116-
117-
};
118-
119111
struct vm_arch {
120112
uint64_t guest_init_pml4;/* Guest init pml4 */
121113
/* EPT hierarchy for Normal World */
@@ -163,7 +155,6 @@ struct vm {
163155
struct vm_sw_info sw; /* Reference to SW associated with this VM */
164156
struct vm_pm_info pm; /* Reference to this VM's arch information */
165157
struct vm_arch arch_vm; /* Reference to this VM's arch information */
166-
struct vm_state_info state_info;/* State info of this VM */
167158
enum vm_state state; /* VM state */
168159
struct vcpu *current_vcpu; /* VCPU that caused vm exit */
169160
void *vuart; /* Virtual UART */

0 commit comments

Comments
 (0)