From: Glauber Costa <glommer@redhat.com>
To: kvm@vger.kernel.org
Cc: avi@redhat.com
Subject: [PATCH 1/5] remove kvm types from handle unhandled
Date: Wed, 15 Jul 2009 12:31:39 -0400 [thread overview]
Message-ID: <1247675503-7106-2-git-send-email-glommer@redhat.com> (raw)
In-Reply-To: <1247675503-7106-1-git-send-email-glommer@redhat.com>
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 <glommer@redhat.com>
---
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
next prev parent reply other threads:[~2009-07-15 16:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-15 16:31 [PATCH 0/5] Further cleanups Glauber Costa
2009-07-15 16:31 ` Glauber Costa [this message]
2009-07-15 16:31 ` [PATCH 2/5] reuse kvm_vm_ioctl Glauber Costa
2009-07-15 16:31 ` [PATCH 3/5] reuse kvm_ioctl Glauber Costa
2009-07-15 16:31 ` [PATCH 4/5] check extension Glauber Costa
2009-07-15 16:31 ` [PATCH 5/5] use upstream cpuid code Glauber Costa
2009-07-17 13:35 ` [PATCH 2/5] reuse kvm_vm_ioctl Marcelo Tosatti
2009-07-17 14:21 ` Glauber Costa
2009-07-17 15:39 ` Marcelo Tosatti
2009-07-17 15:49 ` Glauber Costa
2009-07-17 15:46 ` Marcelo Tosatti
2009-07-17 15:57 ` Marcelo Tosatti
2009-07-17 16:48 ` Glauber Costa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1247675503-7106-2-git-send-email-glommer@redhat.com \
--to=glommer@redhat.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox