Skip to content

Commit 987c7b7

Browse files
JasonChenCJlijinxia
authored andcommitted
remove unused parameters in vm_description
vm_attr_name, vm_state_info_privilege & vm_created are not used 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 0cf5142 commit 987c7b7

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

hypervisor/bsp/sbl/vm_description.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@
3737
int VM0_CPUS[VM0_NUM_CPUS] = {0};
3838

3939
struct vm_description vm0_desc = {
40-
.vm_attr_name = "vm_0",
4140
.vm_hw_num_cores = VM0_NUM_CPUS,
4241
.vm_hw_logical_core_ids = &VM0_CPUS[0],
43-
.vm_state_info_privilege = VM_PRIVILEGE_LEVEL_HIGH,
44-
.vm_created = false,
4542
};

hypervisor/bsp/uefi/vm_description.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@
3737
int VM0_CPUS[VM0_NUM_CPUS] = {0};
3838

3939
struct vm_description vm0_desc = {
40-
.vm_attr_name = "vm_0",
4140
.vm_hw_num_cores = VM0_NUM_CPUS,
4241
.vm_hw_logical_core_ids = &VM0_CPUS[0],
43-
.vm_state_info_privilege = VM_PRIVILEGE_LEVEL_HIGH,
44-
.vm_created = false,
4542
};

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -183,20 +183,12 @@ struct vm {
183183
};
184184

185185
struct vm_description {
186-
/* Virtual machine identifier, assigned by the system */
187-
char *vm_attr_name;
188186
/* The logical CPU IDs associated with this VM - The first CPU listed
189187
* will be the VM's BSP
190188
*/
191189
int *vm_hw_logical_core_ids;
192190
unsigned char GUID[16]; /* GUID of the vm will be created */
193191
int vm_hw_num_cores; /* Number of virtual cores */
194-
/* Indicates to APs that the BSP has created a VM for this
195-
* description
196-
*/
197-
bool vm_created;
198-
/* Index indicating VM's privilege level */
199-
unsigned int vm_state_info_privilege;
200192
/* Whether secure world is enabled for current VM. */
201193
bool sworld_enabled;
202194
};

0 commit comments

Comments
 (0)