]> rtime.felk.cvut.cz Git - jailhouse.git/commitdiff
tools: config-create: Do not bail out on missing ACPI tables
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 21 Jul 2014 07:45:38 +0000 (09:45 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Mon, 28 Jul 2014 04:35:56 +0000 (06:35 +0200)
Rather warn and give the user a chance to post-process the config file.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
tools/jailhouse-config-create

index 20e43c785154d7d59f47f8e723af1c6316cb392e..d5b798fe2e07bc2606aaf2a3c0d5753931ce6e3e 100755 (executable)
@@ -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')