From patchwork Tue Jul 21 17:20:45 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Glauber Costa X-Patchwork-Id: 36572 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 n6LHKuc0017616 for ; Tue, 21 Jul 2009 17:20:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755806AbZGURUv (ORCPT ); Tue, 21 Jul 2009 13:20:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755812AbZGURUv (ORCPT ); Tue, 21 Jul 2009 13:20:51 -0400 Received: from mx2.redhat.com ([66.187.237.31]:34791 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755646AbZGURUu (ORCPT ); Tue, 21 Jul 2009 13:20:50 -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 n6LHKpd5011499 for ; Tue, 21 Jul 2009 13:20:51 -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 n6LHKnJB005537; Tue, 21 Jul 2009 13:20:50 -0400 Received: from localhost.localdomain (virtlab1.virt.bos.redhat.com [10.16.72.21]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n6LHKnJ7021902; Tue, 21 Jul 2009 13:20:49 -0400 From: Glauber Costa To: kvm@vger.kernel.org Cc: avi@redhat.com Subject: [PATCH v2 1/5] remove kvm types from handle unhandled Date: Tue, 21 Jul 2009 13:20:45 -0400 Message-Id: <1248196849-27985-2-git-send-email-glommer@redhat.com> In-Reply-To: <1248196849-27985-1-git-send-email-glommer@redhat.com> References: <1248196849-27985-1-git-send-email-glommer@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 I'm in an ongoing process of not using kvm-specific types in function declarations. handle_unhandled() is the first victim. Since we don't really use this data, but just the reason, remove them entirely. Signed-off-by: Glauber Costa --- qemu-kvm.c | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index c13ecba..2484bd9 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -176,8 +176,7 @@ int kvm_mmio_write(void *opaque, uint64_t addr, uint8_t *data, int len) return 0; } -static int handle_unhandled(kvm_context_t kvm, kvm_vcpu_context_t vcpu, - uint64_t reason) +static int handle_unhandled(uint64_t reason) { fprintf(stderr, "kvm: unhandled exit %"PRIx64"\n", reason); return -EINVAL; @@ -1085,12 +1084,10 @@ again: if (1) { switch (run->exit_reason) { case KVM_EXIT_UNKNOWN: - r = handle_unhandled(kvm, vcpu, - run->hw.hardware_exit_reason); + r = handle_unhandled(run->hw.hardware_exit_reason); break; case KVM_EXIT_FAIL_ENTRY: - r = handle_unhandled(kvm, vcpu, - run->fail_entry.hardware_entry_failure_reason); + r = handle_unhandled(run->fail_entry.hardware_entry_failure_reason); break; case KVM_EXIT_EXCEPTION: fprintf(stderr, "exception %d (%x)\n",