public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Gregory Haskins <ghaskins@novell.com>
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH v7 1/2] qemu-kvm: add irqfd support
Date: Sun, 31 May 2009 15:29:12 +0300	[thread overview]
Message-ID: <4A227818.8030809@redhat.com> (raw)
In-Reply-To: <20090512183226.26356.46296.stgit@dev.haskins.net>

Gregory Haskins wrote:
> irqfd lets you create an eventfd based file-desriptor to inject interrupts
> to a kvm guest.  We associate one gsi per fd for fine-grained routing.
>
>   

Sorry, getting to userspace a little late in the game.

> @@ -34,6 +34,7 @@
>  #include <string.h>
>  #include <errno.h>
>  #include <sys/ioctl.h>
> +#include <sys/eventfd.h>
>   

This only made it in 2.6.22.  So it needs a ./configure -time check for 
existence.

> +int kvm_create_irqfd(kvm_context_t kvm, int gsi, int flags)
> +{
> +	return -ENOENT;
> +}
> +
> +int kvm_destroy_irqfd(kvm_context_t kvm, int fd, int flags)
> +{
> +	return -ENOENT;
> +}
>   

-ENOSYS is more traditional.


-- 
error compiling committee.c: too many arguments to function


  reply	other threads:[~2009-05-31 12:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-12 18:32 [PATCH v7 0/2] eventfd support for KVM userspace Gregory Haskins
2009-05-12 18:32 ` [PATCH v7 1/2] qemu-kvm: add irqfd support Gregory Haskins
2009-05-31 12:29   ` Avi Kivity [this message]
2009-06-02 14:54     ` Gregory Haskins
2009-05-12 18:32 ` [PATCH v7 2/2] qemu-kvm: add iofd support Gregory Haskins

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=4A227818.8030809@redhat.com \
    --to=avi@redhat.com \
    --cc=ghaskins@novell.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