qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [COMMIT 9f8fd69] kvm: add error message for when SMP is r


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 9f8fd69] kvm: add error message for when SMP is requested
Date: Wed, 20 May 2009 14:26:58 -0000

From: Mark McLoughlin <address@hidden>

Right now, if you try e.g. '-smp 2' you just get 'failed to
initialize KVM'.

Signed-off-by: Mark McLoughlin <address@hidden>

diff --git a/kvm-all.c b/kvm-all.c
index 0ac4b1e..73e814a 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -338,8 +338,10 @@ int kvm_init(int smp_cpus)
     int ret;
     int i;
 
-    if (smp_cpus > 1)
+    if (smp_cpus > 1) {
+        fprintf(stderr, "No SMP KVM support, use '-smp 1'\n");
         return -EINVAL;
+    }
 
     s = qemu_mallocz(sizeof(KVMState));
 




reply via email to

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