mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Chubb <peter@chubb.wattle.id.au>
To: Or Sagi <ors@tutis.com>
Cc: linux-kernel@vger.kernel.org, calebm@gelato.unsw.edu.au
Subject: Re: [RFC] Deferred interrupt handling.
Date: Thu, 19 Jul 2007 10:15:17 +1000	[thread overview]
Message-ID: <87sl7lgsfe.wl%peter@chubb.wattle.id.au> (raw)


The problem you're having is essentially the same as the user-level
interrupt handler problem I've been dealing with for ages.

The basic rule is: don't share interrupts between devices on the host
and devices in the guest.  But you *can* share interrupts between
devices in a single guest.

If you want the code, see
http://www.gelato.unsw.edu.au/cgi-bin/viewvc.cgi/cvs/kernel/usrdrivers/latest/
and look at generic-irq.patch and fasync (which adds asynchronous notifications)

For the KVM work it'll need modifying a little, but the basic
infrastructure is there.

We've currently got this working to pass interrupts to a type-II (hosted)
virtual machine monitor running a guest kernel with native drivers.

--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au           ERTOS within National ICT Australia

             reply	other threads:[~2007-07-19  0:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-19  0:15 Peter Chubb [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-07-18  9:53 Or Sagi
2007-07-18 11:30 ` Alan Cox
2007-07-18 15:57 ` Lennart Sorensen

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=87sl7lgsfe.wl%peter@chubb.wattle.id.au \
    --to=peter@chubb.wattle.id.au \
    --cc=calebm@gelato.unsw.edu.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ors@tutis.com \
    /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

all inboxes | Powered by JetHome®