From patchwork Thu Jan 21 11:50:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Liu, Jinsong" X-Patchwork-Id: 74316 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0LBoRfY029568 for ; Thu, 21 Jan 2010 11:50:27 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752789Ab0AULuX (ORCPT ); Thu, 21 Jan 2010 06:50:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752772Ab0AULuW (ORCPT ); Thu, 21 Jan 2010 06:50:22 -0500 Received: from mga03.intel.com ([143.182.124.21]:22091 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752059Ab0AULuW convert rfc822-to-8bit (ORCPT ); Thu, 21 Jan 2010 06:50:22 -0500 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 21 Jan 2010 03:50:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.47,316,1257148800"; d="scan'208,223";a="235237997" Received: from pgsmsx603.gar.corp.intel.com ([10.221.43.87]) by azsmga001.ch.intel.com with ESMTP; 21 Jan 2010 03:50:20 -0800 Received: from shzsmsx502.ccr.corp.intel.com (10.239.4.97) by pgsmsx603.gar.corp.intel.com (10.221.43.87) with Microsoft SMTP Server (TLS) id 8.2.176.0; Thu, 21 Jan 2010 19:50:20 +0800 Received: from shzsmsx502.ccr.corp.intel.com ([10.239.4.97]) by shzsmsx502.ccr.corp.intel.com ([10.239.4.97]) with mapi; Thu, 21 Jan 2010 19:50:19 +0800 From: "Liu, Jinsong" To: "kvm@vger.kernel.org" CC: Avi Kivity , "Liu, Jinsong" Date: Thu, 21 Jan 2010 19:50:17 +0800 Subject: [PATCH] Debug vcpu add Thread-Topic: [PATCH] Debug vcpu add Thread-Index: Acqaj+bd5w5KJqASQU2tytkzbXoTAw== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/qemu-kvm.c b/qemu-kvm.c index 599c3d6..bdf90b4 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -1618,7 +1618,7 @@ static void kvm_do_load_mpstate(void *_env) void kvm_load_mpstate(CPUState *env) { - if (kvm_enabled() && qemu_system_ready) + if (kvm_enabled() && qemu_system_ready && kvm_vcpu_inited(env)) on_vcpu(env, kvm_do_load_mpstate, env); }