From patchwork Mon Jun 15 13:23:15 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 30323 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 n5FDOPrp028570 for ; Mon, 15 Jun 2009 13:24:27 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760897AbZFONXZ (ORCPT ); Mon, 15 Jun 2009 09:23:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760941AbZFONXZ (ORCPT ); Mon, 15 Jun 2009 09:23:25 -0400 Received: from mx2.redhat.com ([66.187.237.31]:44166 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760897AbZFONXR (ORCPT ); Mon, 15 Jun 2009 09:23:17 -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 n5FDNKqs026682 for ; Mon, 15 Jun 2009 09:23:21 -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 n5FDNJQ4009567; Mon, 15 Jun 2009 09:23:20 -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 n5FDNI4s025639; Mon, 15 Jun 2009 09:23:19 -0400 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id 6F3C318D47F; Mon, 15 Jun 2009 16:23:17 +0300 (IDT) From: Gleb Natapov To: avi@redhat.com Cc: kvm@vger.kernel.org Subject: [PATCH 6/8] env->exception_index is not used by kvm code. Date: Mon, 15 Jun 2009 16:23:15 +0300 Message-Id: <1245072197-7538-7-git-send-email-gleb@redhat.com> In-Reply-To: <1245072197-7538-1-git-send-email-gleb@redhat.com> References: <1245072197-7538-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-ia64.c | 2 -- qemu-kvm-x86.c | 2 -- qemu-kvm.c | 1 - 3 files changed, 0 insertions(+), 5 deletions(-) diff --git a/qemu-kvm-ia64.c b/qemu-kvm-ia64.c index 234602c..477d24c 100644 --- a/qemu-kvm-ia64.c +++ b/qemu-kvm-ia64.c @@ -35,7 +35,6 @@ int kvm_arch_halt(void *opaque, kvm_vcpu_context_t vcpu) { CPUState *env = cpu_single_env; env->hflags |= HF_HALTED_MASK; - env->exception_index = EXCP_HLT; return 1; } @@ -135,7 +134,6 @@ void kvm_arch_cpu_reset(CPUState *env) } else { env->interrupt_request &= ~CPU_INTERRUPT_HARD; env->halted = 1; - env->exception_index = EXCP_HLT; } } diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c index 8e6fb75..6865385 100644 --- a/qemu-kvm-x86.c +++ b/qemu-kvm-x86.c @@ -611,7 +611,6 @@ int kvm_arch_halt(void *opaque, kvm_vcpu_context_t vcpu) (env->eflags & IF_MASK)) && !(env->interrupt_request & CPU_INTERRUPT_NMI)) { env->halted = 1; - env->exception_index = EXCP_HLT; } return 1; } @@ -707,7 +706,6 @@ void kvm_arch_cpu_reset(CPUState *env) } else { env->interrupt_request &= ~CPU_INTERRUPT_HARD; env->halted = 1; - env->exception_index = EXCP_HLT; } } } diff --git a/qemu-kvm.c b/qemu-kvm.c index 3ae4b45..2930a1d 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -442,7 +442,6 @@ static int kvm_main_loop_cpu(CPUState *env) if (!env->halted || kvm_irqchip_in_kernel(kvm_context)) kvm_cpu_exec(env); env->exit_request = 0; - env->exception_index = EXCP_INTERRUPT; kvm_main_loop_wait(env, 0); } pthread_mutex_unlock(&qemu_mutex);