[oe-commits] [openembedded-core] 09/09: XX runqemu: dump pagetypeinfo if qemu fails
git at git.openembedded.org
git at git.openembedded.org
Sun Dec 10 18:03:43 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 2b3f23552739049c4a6ae1fe259371406bdbdc28
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Thu Nov 23 11:02:25 2017 +0000
XX runqemu: dump pagetypeinfo if qemu fails
---
scripts/runqemu | 6 ++++--
1 file 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)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list