qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH] kvm: add error message for when SMP is requested


From: Mark McLoughlin
Subject: [Qemu-devel] [PATCH] kvm: add error message for when SMP is requested
Date: Tue, 12 May 2009 12:43:19 +0100

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

Signed-off-by: Mark McLoughlin <address@hidden>
---
 kvm-all.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

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));
 
-- 
1.6.0.6





reply via email to

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