mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-16 14:28:56 +00:00
dm: optimize the sub parameter of "-s" compatibility
This patch checks the change of "-s" sub parameters, which was obsoleted or moved and the print some warnings msg or show the new format. The following obsoleted parameters are covered: -s ,pci-gvt -s ,virtio-hdcp -s ,npk -s ,virtio-coreu --mac_seed Reviewed-by: VanCutsem Geoffroy <geoffroy.vancutsem@intel.com> Signed-off-by: Chenli Wei <chenli.wei@intel.com>
This commit is contained in:
@@ -799,6 +799,7 @@ static struct option long_options[] = {
|
||||
{"version", no_argument, 0, 'v' },
|
||||
{"gvtargs", required_argument, 0, 'G' },
|
||||
{"help", no_argument, 0, 'h' },
|
||||
{"mac_seed", required_argument, 0, CMD_OPT_MAC_SEED},
|
||||
|
||||
/* Following cmd option only has long option */
|
||||
#ifdef CONFIG_VM_CFG
|
||||
@@ -942,6 +943,10 @@ main(int argc, char *argv[])
|
||||
optarg);
|
||||
}
|
||||
break;
|
||||
case CMD_OPT_MAC_SEED:
|
||||
pr_warn("The \"--mac_seed\" parameter is obsolete\n");
|
||||
pr_warn("Please use the \"virtio-net,<device_type>=<name> mac_seed=<seed_string>\"\n");
|
||||
break;
|
||||
case CMD_OPT_DEBUGEXIT:
|
||||
debugexit_enabled = true;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user