[oe-commits] [openembedded-core] 38/38: XX runqemu: dump pagetypeinfo if qemu fails

git at git.openembedded.org git at git.openembedded.org
Thu Dec 21 16:28:18 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 ba5e02c504034eb8c95585f601b5b2444900299d
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Thu Nov 23 11:02:25 2017 +0000

    XX runqemu: dump pagetypeinfo if qemu fails
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 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