From: Alex Williamson <alex.williamson@redhat.com>
To: ret val <retval386@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: PCI device reverse engineering
Date: Fri, 28 Feb 2014 11:48:23 -0700 [thread overview]
Message-ID: <1393613303.26901.24.camel@ul30vt.home> (raw)
In-Reply-To: <CAJH5N=RfA4ThSGgqY6i=ny9DMVZzOy7=KBUJy2Lef6oApSq=UQ@mail.gmail.com>
On Fri, 2014-02-28 at 13:39 -0500, ret val wrote:
> I would like to use KVM to reverse engineer/debug a PCI driver. With a
> IOMMU and a pass-through device setup, would it be possible to
> monitor/log all PCI bus traffic to a device? How can I go about
> enabling and viewing this?
You can't monitor bus traffic, you'd still need a PCI analyzer for that,
but you can track all driver and guest OS access to the device. So you
can at least soft or reverse engineer the driver. To do that, uncomment
the #define DEBUG_VFIO line near the top of hw/misc/vfio.c and change
all the VFIO_ALLOW_FOO defines from 1 to 0, especially the MMAP one.
Thanks,
Alex
prev parent reply other threads:[~2014-02-28 18:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-28 18:39 PCI device reverse engineering ret val
2014-02-28 18:48 ` Alex Williamson [this message]
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=1393613303.26901.24.camel@ul30vt.home \
--to=alex.williamson@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=retval386@gmail.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