mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-27 07:46:53 +00:00
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:
parent
7dec39a9e8
commit
8f9a47c30f
@ -779,6 +779,7 @@ enum {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct option long_options[] = {
|
static struct option long_options[] = {
|
||||||
|
{"acpi", no_argument, 0, 'A' },
|
||||||
{"elf_file", required_argument, 0, 'E' },
|
{"elf_file", required_argument, 0, 'E' },
|
||||||
{"ioc_node", required_argument, 0, 'i' },
|
{"ioc_node", required_argument, 0, 'i' },
|
||||||
{"lpc", required_argument, 0, 'l' },
|
{"lpc", required_argument, 0, 'l' },
|
||||||
@ -819,7 +820,7 @@ static struct option long_options[] = {
|
|||||||
{0, 0, 0, 0 },
|
{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
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
@ -854,6 +855,10 @@ main(int argc, char *argv[])
|
|||||||
while ((c = getopt_long(argc, argv, optstr, long_options,
|
while ((c = getopt_long(argc, argv, optstr, long_options,
|
||||||
&option_idx)) != -1) {
|
&option_idx)) != -1) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
|
case 'A':
|
||||||
|
pr_info("The '-A' parameter is obsolete and ignored. "
|
||||||
|
"Virtual ACPI tables are always enabled.\n");
|
||||||
|
break;
|
||||||
case 'E':
|
case 'E':
|
||||||
if (acrn_parse_elf(optarg) != 0)
|
if (acrn_parse_elf(optarg) != 0)
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user