From patchwork Sun Jun 14 10:52:17 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 30140 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n5EAqV48017489 for ; Sun, 14 Jun 2009 10:52:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756376AbZFNKwZ (ORCPT ); Sun, 14 Jun 2009 06:52:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756216AbZFNKwY (ORCPT ); Sun, 14 Jun 2009 06:52:24 -0400 Received: from mx2.redhat.com ([66.187.237.31]:33925 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755202AbZFNKwX (ORCPT ); Sun, 14 Jun 2009 06:52:23 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5EAqP2G023672 for ; Sun, 14 Jun 2009 06:52:25 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5EAqOa9020583; Sun, 14 Jun 2009 06:52:24 -0400 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5EAqNjB003115; Sun, 14 Jun 2009 06:52:23 -0400 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id AF3D018D479; Sun, 14 Jun 2009 13:52:22 +0300 (IDT) From: Gleb Natapov To: avi@redhat.com Cc: kvm@vger.kernel.org Subject: [PATCH 1/6] env->kvm_cpu_state.init is always zero here. Date: Sun, 14 Jun 2009 13:52:17 +0300 Message-Id: <1244976742-22926-1-git-send-email-gleb@redhat.com> X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Gleb Natapov --- qemu-kvm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index 2aeb17c..ec911ef 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -412,7 +412,7 @@ static int kvm_main_loop_cpu(CPUState *env) if (env->kvm_cpu_state.sipi_needed) update_regs_for_sipi(env); } - if (!env->halted && !env->kvm_cpu_state.init) + if (!env->halted) kvm_cpu_exec(env); env->exit_request = 0; env->exception_index = EXCP_INTERRUPT;