login
Header Space

 
 

Re: [RFC] Deferred interrupt handling.

Previous thread: Re: [NFS] [PATCH 013 of 20] knfsd: nfsd: factor out code from show_expflags by Neil Brown on Wednesday, July 18, 2007 - 8:16 pm. (2 messages)

Next thread: Re: [PATCH try #3] security: Convert LSM into a static interface by Andrew Morton on Wednesday, July 18, 2007 - 9:35 pm. (21 messages)
To: Or Sagi <ors@...>
Cc: <linux-kernel@...>, <calebm@...>
Date: Wednesday, July 18, 2007 - 8:15 pm

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
-
Previous thread: Re: [NFS] [PATCH 013 of 20] knfsd: nfsd: factor out code from show_expflags by Neil Brown on Wednesday, July 18, 2007 - 8:16 pm. (2 messages)

Next thread: Re: [PATCH try #3] security: Convert LSM into a static interface by Andrew Morton on Wednesday, July 18, 2007 - 9:35 pm. (21 messages)
speck-geostationary