DM/HV: Increase VM name len

VM Name length is restricted to 32 characters. kata creates
a VM name with GUID added as a part of VM name making it around
80 characters. So increasing this size to 128.

v1->v2:
It turns out that MAX_VM_OS_NAME_LEN usage in DM and HV are for
different use cases. So removing the macro from acrn_common.h.
Definied macro MAX_VMNAME_LEN for DM purposes in dm.h. Retaining
original macron name MAX_VM_OS_NAME_LEN for HV purposes but defined
in vm_config.h.

Tracked-On: #3138
Signed-off-by: Vijay Dhanraj <vijay.dhanraj@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
Vijay Dhanraj
2019-05-17 18:04:18 -07:00
committed by ACRN System Integration
parent f010f99d67
commit 517707dee4
10 changed files with 24 additions and 14 deletions

View File

@@ -3,11 +3,19 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
/*
*****************************************************
NOTE: Any changes to this file may require rebuilding
IOC daemon (cbc_lifecycle) as they share this common
header file.
*****************************************************
*/
#ifndef ACRN_MANAGER_H
#define ACRN_MANAGER_H
#include <stdlib.h>
#include <acrn_common.h>
#include "dm.h"
#define MNGR_MSG_MAGIC 0x67736d206d6d76 /* that is char[8] "mngr msg", on X86 */
#define PATH_LEN 128
@@ -43,7 +51,7 @@ struct mngr_msg {
/* req of ACRND_TIMER */
struct req_acrnd_timer {
char name[MAX_VM_OS_NAME_LEN];
char name[MAX_VMNAME_LEN];
time_t t;
} acrnd_timer;
@@ -67,7 +75,7 @@ struct mngr_msg {
/* req of RTC_TIMER */
struct req_rtc_timer {
char vmname[MAX_VM_OS_NAME_LEN];
char vmname[MAX_VMNAME_LEN];
time_t t;
} rtc_timer;