From: Jan Kiszka Date: Mon, 21 Jul 2014 07:45:38 +0000 (+0200) Subject: tools: config-create: Do not bail out on missing ACPI tables X-Git-Url: https://rtime.felk.cvut.cz/gitweb/jailhouse.git/commitdiff_plain/d1c71050e6783816ef122be3df7954b98cb7988d tools: config-create: Do not bail out on missing ACPI tables Rather warn and give the user a chance to post-process the config file. Signed-off-by: Jan Kiszka --- diff --git a/tools/jailhouse-config-create b/tools/jailhouse-config-create index 20e43c7..d5b798f 100755 --- a/tools/jailhouse-config-create +++ b/tools/jailhouse-config-create @@ -358,9 +358,12 @@ elif (total > ourmem[1]): hvmem[0] = ourmem[0] creg = MemRegion.find_region(regions, 'ACPI Tables') -if creg is None: - raise RuntimeError('could not find "ACPI Tables" memory') -confmem = [creg.start, creg.size()] +if creg is not None: + confmem = [creg.start, creg.size()] +else: + print('WARNING: Could not find "ACPI Tables" memory! ' + 'You need to set it manually.', file=sys.stderr) + confmem = [0, 0] inmatereg = MemRegion(ourmem[0] + hvmem[1], ourmem[0] + hvmem[1] + inmatemem - 1, 'JAILHOUSE Inmate Memory')