qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 13/32] move disabling code to kqemu.c instead of vl.


From: Glauber Costa
Subject: [Qemu-devel] [PATCH 13/32] move disabling code to kqemu.c instead of vl.c
Date: Thu, 23 Oct 2008 12:18:57 -0200

From: Glauber Costa <address@hidden>

kqemu is not smp. So instead of testing in vl.c, do the test in kqemu.c,
and just refuse to start if smp_cpus > 1.

Signed-off-by: Glauber Costa <address@hidden>
---
 kqemu.c |    2 +-
 vl.c    |    4 ----
 2 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/kqemu.c b/kqemu.c
index 0a1d63b..7f24cfc 100644
--- a/kqemu.c
+++ b/kqemu.c
@@ -166,7 +166,7 @@ int kqemu_start(void)
     DWORD temp;
 #endif
 
-    if (!kqemu_allowed)
+    if (!kqemu_allowed || cpus > 1)
         return -1;
 
 #ifdef _WIN32
diff --git a/vl.c b/vl.c
index adf5b25..f7bbfbb 100644
--- a/vl.c
+++ b/vl.c
@@ -9469,10 +9469,6 @@ int main(int argc, char **argv)
         exit(1);
     }
 
-#ifdef USE_KQEMU
-    if (smp_cpus > 1)
-        kqemu_allowed = 0;
-#endif
     linux_boot = (kernel_filename != NULL);
     net_boot = (boot_devices_bitmap >> ('n' - 'a')) & 0xF;
 
-- 
1.5.5.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]