mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-09 12:49:24 +00:00
HV: move MAX_CONFIG_NAME_SIZE to acrn_common.h
The vm_config in hypervisor restricted VM name size to MAX_CONFIG_NAME_SIZE (32 bytes). When UOS is launched by DM, the vmname is passed in as the last optional args, we hope to to copy it to vm_config in the future. So the size of vmname in DM args should be restricted to MAX_CONFIG_NAME_SIZE, too. Because MAX_CONFIG_NAME_SIZE will be used by DM, we move it from vm_config.h to acrn_common.h We also rename MAX_CONFIG_NAME_SIZE to MAX_VM_OS_NAME_LEN, because it will be used by another components, should has a clear name. Tracked-On: #2851 Signed-off-by: Tao Yuhong <yuhong.tao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
wenlingz
parent
c55308bd3d
commit
b1586ccc3e
@@ -357,6 +357,8 @@ struct acrn_create_vm {
|
||||
uint8_t reserved2[16];
|
||||
} __aligned(8);
|
||||
|
||||
#define MAX_VM_OS_NAME_LEN 32U
|
||||
|
||||
/**
|
||||
* @brief Info to create a VCPU
|
||||
*
|
||||
|
Reference in New Issue
Block a user