From 8f9a47c30f79e4ec0c221758750757b74b5d6bdd Mon Sep 17 00:00:00 2001 From: Yuanyuan Zhao Date: Thu, 10 Mar 2022 07:38:20 +0000 Subject: [PATCH] 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 Signed-off-by: Yuanyuan Zhao --- devicemodel/core/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/devicemodel/core/main.c b/devicemodel/core/main.c index 67abf6327..384808bdd 100644 --- a/devicemodel/core/main.c +++ b/devicemodel/core/main.c @@ -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);