qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Baryshkov <dmitry.baryshkov@siemens.com>
To: qemu-devel@nongnu.org
Cc: Dmitry Baryshkov <dmitry.baryshkov@siemens.com>
Subject: [Qemu-devel] [PATCH 2/2] qemu-accel: unbreak kqemu
Date: Tue,  9 Sep 2008 20:37:38 +0400	[thread overview]
Message-ID: <1220978258-30894-2-git-send-email-dmitry.baryshkov@siemens.com> (raw)
In-Reply-To: <1220978258-30894-1-git-send-email-dmitry.baryshkov@siemens.com>

commit 1884dcadd64e1c4535a2b3e88008be9070aeb25b broke accelerators
(at least kqemu) because it's initialised too early. Move accel_start()
later (as it was before) so that it has all necessary data.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@siemens.com>
---
 vl.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/vl.c b/vl.c
index bf9d83c..bc0fc3f 100644
--- a/vl.c
+++ b/vl.c
@@ -8508,13 +8508,14 @@ int main(int argc, char **argv)
         exit(1);
     }
 
+    /* init the dynamic translator */
+    cpu_exec_init_all(tb_size * 1024 * 1024);
+
     if (accel_start()) {
 	    fprintf(stderr, "qemu: error, no suitable accelerator found\n");
 	    exit(1);
     }
 
-    /* init the dynamic translator */
-    cpu_exec_init_all(tb_size * 1024 * 1024);
 
     bdrv_init();
 
-- 
1.5.6.5

  reply	other threads:[~2008-09-09 21:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-09 16:37 [Qemu-devel] [PATCH 1/2] qemu-accel: unbreak non-default accelerators Dmitry Baryshkov
2008-09-09 16:37 ` Dmitry Baryshkov [this message]
2008-09-09 16:49 ` [Qemu-devel] " Glauber Costa
2008-09-10  7:21   ` Jan Kiszka
2008-09-10 13:48     ` Glauber Costa
2008-09-10 14:15       ` Jan Kiszka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1220978258-30894-2-git-send-email-dmitry.baryshkov@siemens.com \
    --to=dmitry.baryshkov@siemens.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).