aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2017-11-23 11:02:25 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-12-02 11:26:05 +0000
commitbb4b13af080ba32cfa74c46b28658babb36fa6ab (patch)
tree4f85ebb72dfe358e5a2b8cb1cb8c3c89305fe893
parenta7cd9d1183be603777fc9c8c448281fe01224f7b (diff)
downloadopenembedded-core-bb4b13af080ba32cfa74c46b28658babb36fa6ab.zip
openembedded-core-bb4b13af080ba32cfa74c46b28658babb36fa6ab.tar.gz
openembedded-core-bb4b13af080ba32cfa74c46b28658babb36fa6ab.tar.bz2
XX runqemu: dump pagetypeinfo if qemu fails
-rwxr-xr-xscripts/runqemu6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index f2b4b3c..4bc187a 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -1196,8 +1196,10 @@ class BaseConfig(object):
logger.info('Running %s\n' % cmd)
process = subprocess.Popen(cmd, shell=True, stderr=subprocess.PIPE)
if process.wait():
- logger.error("Failed to run qemu: %s", process.stderr.read().decode())
-
+ stderr = process.stderr.read().decode()
+ logger.error("Failed to run qemu: %s", stderr)
+ if "KVM: Cannot allocate memory" in stderr:
+ logger.error(open("/proc/pagetypeinfo").read())
def cleanup(self):
if self.cleantap:
cmd = 'sudo %s %s %s' % (self.qemuifdown, self.tap, self.bindir_native)