From: Ryota Ozaki Subject: [PATCH][STABLE-0.12] qemu-kvm: Disable cpu_set command to avoid segfault Date: Tue, 12 Jan 2010 02:27:02 +0900 Message-ID: <1263230822-17703-1-git-send-email-ozaki.ryota@gmail.com> Cc: Gleb Natapov To: kvm@vger.kernel.org Return-path: Received: from mail-fx0-f215.google.com ([209.85.220.215]:45179 "EHLO mail-fx0-f215.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752323Ab0AKR1U (ORCPT ); Mon, 11 Jan 2010 12:27:20 -0500 Received: by fxm7 with SMTP id 7so100207fxm.28 for ; Mon, 11 Jan 2010 09:27:18 -0800 (PST) Sender: kvm-owner@vger.kernel.org List-ID: CPU hotplug feature is lost in this version. Even worse cpu_set qemu command may cause segfault. This patch fix the problem by just disabling it. It is enough for the stable branch. Signed-off-by: Ryota Ozaki Cc: Gleb Natapov --- monitor.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/monitor.c b/monitor.c index 6ff6e1f..4b566d2 100644 --- a/monitor.c +++ b/monitor.c @@ -829,7 +829,9 @@ static void do_cpu_set_nr(Monitor *mon, const QDict *qdict) return; } #if defined(TARGET_I386) || defined(TARGET_X86_64) - qemu_system_cpu_hot_add(value, state); + //qemu_system_cpu_hot_add(value, state); + monitor_printf(mon, "The feature is not avaiable in this version. " + "It will be back in a future version.\n"); #endif } -- 1.6.5.2