dm: verify the "iasl" version

This patch does:
- define IASL_MIN_VER in the top-level Makefile and pass it Device Model
- verify the "iasl" version at run time
  if "iasl" version is older than IASL_MIN_VER, refuse to launch the
  post-launched VM and exit directly.

Tracked-On: #7880

Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Wang, Yu1 <yu1.wang@intel.com>
This commit is contained in:
Shiqing Gao
2022-07-04 09:47:59 +08:00
committed by acrnsi-robot
parent cc309bd973
commit 59b6d7b404
5 changed files with 48 additions and 1 deletions

View File

@@ -1034,6 +1034,13 @@ main(int argc, char *argv[])
exit(1);
}
if (check_iasl_version() != 0) {
pr_err("Please install iasl tool with version >= %s from https://www.acpica.org/downloads, "
"and provide the path to iasl (by using --iasl) if it's not on the PATH \n",
IASL_MIN_VER);
exit(1);
}
argc -= optind;
argv += optind;