From: Jon Smirl <jonsmirl@gmail.com>
To: Jesse Barnes <jbarnes@engr.sgi.com>
Cc: Greg KH <greg@kroah.com>, Peter Chubb <peterc@gelato.unsw.edu.au>,
linux-kernel@vger.kernel.org
Subject: Re: User mode drivers: part 2: PCI device handling (patch 1/2 for 2.6.11)
Date: Sat, 12 Mar 2005 17:43:52 -0500 [thread overview]
Message-ID: <9e473391050312144351daaa39@mail.gmail.com> (raw)
In-Reply-To: <200503110845.10694.jbarnes@engr.sgi.com>
[-- Attachment #1: Type: text/plain, Size: 900 bytes --]
Here's a two year old patch for doing the same thing inside of UML but
it was never merged. The advantage to this scheme is that UML
implements the kernel. The same driver source code can be used inside
UML and the main kernel.
I modified UML so that it implemented all of the common calls drivers
need, like ioremap, request_irq, etc. The UML implementation of these
calls is a proxy for a device driver in the main kernel that actually
gets the DMA consistent memory, irq, etc. I was able to get DRM, fbdev
and USB all running unchanged inside UML with this patch. The entire
device driver is debugable with GDB.
I never solved the problem of UML crashing without acking a pending
interrupt. But now it seems that that problem does not exist on PCI
Express.
BTW, I found this to be a great way to debug drivers that don't need
real-time response to interrupts.
--
Jon Smirl
jonsmirl@gmail.com
[-- Attachment #2: vpci.tgz --]
[-- Type: application/x-compressed-tar, Size: 35481 bytes --]
next prev parent reply other threads:[~2005-03-12 22:52 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-11 3:37 User mode drivers: part 2: PCI device handling (patch 1/2 for 2.6.11) Peter Chubb
2005-03-11 7:18 ` Greg KH
2005-03-11 8:34 ` Peter Chubb
2005-03-11 10:31 ` Pavel Machek
2005-03-11 15:21 ` Greg KH
2005-03-11 16:45 ` Jesse Barnes
2005-03-12 22:43 ` Jon Smirl [this message]
2005-03-14 0:13 ` Peter Chubb
2005-03-14 17:46 ` Alan Cox
2005-03-11 19:16 ` Alan Cox
2005-03-12 10:49 ` Andrew Grover
-- strict thread matches above, loose matches on Subject: below --
2005-03-11 5:18 Albert Cahalan
2005-03-11 19:15 ` Alan Cox
2005-03-11 21:04 ` Albert Cahalan
2005-03-14 13:34 ` Alan Cox
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=9e473391050312144351daaa39@mail.gmail.com \
--to=jonsmirl@gmail.com \
--cc=greg@kroah.com \
--cc=jbarnes@engr.sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peterc@gelato.unsw.edu.au \
/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