dm: add warning for -A param

DM dynamic param '-A' has been removed.
For compability, add a warning for `-A` instead of terminate the launch
process.

Tracked-On:#6690
Acked-by: Wang, Yu1 <yu1.wang@intel.com>
Signed-off-by: Yuanyuan Zhao <yuanyuan.zhao@linux.intel.com>
This commit is contained in:
Yuanyuan Zhao 2022-03-10 07:38:20 +00:00 committed by acrnsi-robot
parent 7dec39a9e8
commit 8f9a47c30f

View File

@ -779,6 +779,7 @@ enum {
};
static struct option long_options[] = {
{"acpi", no_argument, 0, 'A' },
{"elf_file", required_argument, 0, 'E' },
{"ioc_node", required_argument, 0, 'i' },
{"lpc", required_argument, 0, 'l' },
@ -819,7 +820,7 @@ static struct option long_options[] = {
{0, 0, 0, 0 },
};
static char optstr[] = "hYvE:k:r:B:s:m:l:U:G:i:";
static char optstr[] = "AhYvE:k:r:B:s:m:l:U:G:i:";
int
main(int argc, char *argv[])
@ -854,6 +855,10 @@ main(int argc, char *argv[])
while ((c = getopt_long(argc, argv, optstr, long_options,
&option_idx)) != -1) {
switch (c) {
case 'A':
pr_info("The '-A' parameter is obsolete and ignored. "
"Virtual ACPI tables are always enabled.\n");
break;
case 'E':
if (acrn_parse_elf(optarg) != 0)
exit(1);