From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glauber Costa Subject: [PATCH 1/5] remove kvm types from handle unhandled Date: Wed, 15 Jul 2009 12:31:39 -0400 Message-ID: <1247675503-7106-2-git-send-email-glommer@redhat.com> References: <1247675503-7106-1-git-send-email-glommer@redhat.com> Cc: avi@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mx2.redhat.com ([66.187.237.31]:56660 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932126AbZGOQbp (ORCPT ); Wed, 15 Jul 2009 12:31:45 -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 n6FGVj8L005426 for ; Wed, 15 Jul 2009 12:31:45 -0400 In-Reply-To: <1247675503-7106-1-git-send-email-glommer@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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 355adf4..904e751 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", -- 1.6.2.2