From: Tad Truex <tad@tadtruex.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] PCI Device API?
Date: Tue, 22 Sep 2009 22:02:19 -0400 [thread overview]
Message-ID: <c30372ab0909221902r30bf118eue8bd64bbaee60e51@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 971 bytes --]
Greetings,
I am looking at using Qemu (specifically the x86_64 pc emulation) as a
testbed for a new PCI widget. I have begun looking through the code for the
e1000 nic as it seems to be frequently used and is therefore likely quite
robust. Is there a better place for me to start looking? In particular, is
there any API documentation for the PCIDevice structure and the various
memory hooks? I have started hacking a new module based on what I can see
in the code and using a debugger, but I suspect that it will be a long steep
learning curve that way!
Lacking API docs, has anyone out there who is familiar with the pci
subsystem ever scribbled down a crib sheet for what needs to be included to
model a new device? I am comfortable with pretty high level bullet points
describing the main steps in the initializing the structure so it can be
seen by the kernel driver and interact correctly with the memory subsystem.
Thanks for any pointers or advice.
/Tad
[-- Attachment #2: Type: text/html, Size: 1012 bytes --]
reply other threads:[~2009-09-23 2:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=c30372ab0909221902r30bf118eue8bd64bbaee60e51@mail.gmail.com \
--to=tad@tadtruex.net \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).