mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-03 09:55:01 +00:00
HV: Remove vm->attr.name
We define attr.name in struct vm and named as ("vm_%d", attr.id). attr.name only be used in debug tool vm_list. It does't deserve to do so in OS created flow (aka function create_vm). It's better to handle this in vm_list tool. Signed-off-by: Kaige Fu <kaige.fu@intel.com> Acked-by: Eddie Dong <eddie.dong@inte.com>
This commit is contained in:
@@ -102,8 +102,6 @@ int create_vm(struct vm_description *vm_desc, struct vm **rtn_vm)
|
||||
if (bitmap_test_and_set(id, &vmid_bitmap) == 0)
|
||||
break;
|
||||
vm->attr.id = vm->attr.boot_idx = id;
|
||||
snprintf(&vm->attr.name[0], MAX_VM_NAME_LEN, "vm_%d",
|
||||
vm->attr.id);
|
||||
|
||||
atomic_store(&vm->hw.created_vcpus, 0);
|
||||
|
||||
|
Reference in New Issue
Block a user