summaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2015-11-25 10:52:28 +0000
committerPaolo Bonzini <pbonzini@redhat.com>2015-11-26 16:47:44 +0100
commit2c189a4e12a37b1c7cae2a2643c378c5af8f67fc (patch)
tree9991d93ae2af2332498bbcc0310858ab60623d97 /exec.c
parentb2780d325306dc80ec07db9c0c61e9b2ac10e559 (diff)
downloadqemu-2c189a4e12a37b1c7cae2a2643c378c5af8f67fc.tar.gz
qemu-2c189a4e12a37b1c7cae2a2643c378c5af8f67fc.tar.bz2
qemu-2c189a4e12a37b1c7cae2a2643c378c5af8f67fc.zip
Revert "exec: silence hugetlbfs warning under qtest"
This reverts commit 1c7ba94a184df1eddd589d5400d879568d3e5d08. That commit changed QEMU initialization order from - object-initial, chardev, qtest, object-late to - chardev, qtest, object-initial, object-late This breaks chardev setups which need to rely on objects having been created. For example, when chardevs use TLS encryption in the future, they need to have tls credential objects created first. This revert, restores the ordering introduced in commit f08f9271bfe3f19a5eb3d7a2f48532065304d5c8 Author: Daniel P. Berrange <berrange@redhat.com> Date: Wed May 13 17:14:04 2015 +0100 vl: Create (most) objects before creating chardev backends Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Message-Id: <1448448749-1332-2-git-send-email-berrange@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/exec.c b/exec.c
index acbd4a2cb5..b09f18b2a4 100644
--- a/exec.c
+++ b/exec.c
@@ -51,7 +51,6 @@
#include "qemu/main-loop.h"
#include "translate-all.h"
#include "sysemu/replay.h"
-#include "sysemu/qtest.h"
#include "exec/memory-internal.h"
#include "exec/ram_addr.h"
@@ -1197,10 +1196,8 @@ static long gethugepagesize(const char *path, Error **errp)
return 0;
}
- if (!qtest_driver() &&
- fs.f_type != HUGETLBFS_MAGIC) {
+ if (fs.f_type != HUGETLBFS_MAGIC)
fprintf(stderr, "Warning: path not on HugeTLBFS: %s\n", path);
- }
return fs.f_bsize;
}