From: 陳韋任 <chenwj@iis.sinica.edu.tw>
To: WanPeng Li <liwp@linux.vnet.ibm.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] questions about pci
Date: Tue, 6 Mar 2012 18:10:16 +0800 [thread overview]
Message-ID: <20120306101016.GA66053@cs.nctu.edu.tw> (raw)
In-Reply-To: <20120304123140.GA1760@liwp@linux.vnet.ibm.com>
> I read pci code in qemu about i440fx, pci.c and so on. I think if guest
> os whose mainboard is based on x86, it will use IO instructions to
> access PCI configuration space.If not use passthrough, qemu should
> emulate these operations.I find a function called kvm_handle_io who will
^^^^^^^^^^^^^
Looks suspicious. Prefix kvm mean passthrough, I guess.
> emulate ioport write/read, I have traced this function, but I haven't found it has
> any relationship with pci read/write configuration space functions like
> i440fx_write_config and piix3_write_config.So how does it emulate pci
> configuration space access when not use passthrough?
`grep -r i440fx_write_config *` show you that you should take a look on
hw/piix_pci.c. Besides, setting breakpoint at i440fx_write_config also show you
how it get called.
HTH,
chenwj
--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj
next prev parent reply other threads:[~2012-03-06 10:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-04 12:33 [Qemu-devel] questions about pci WanPeng Li
2012-03-06 10:10 ` 陳韋任 [this message]
[not found] ` <20120307114708.GA2404@liwp@linux.vnet.ibm.com>
2012-03-08 2:50 ` 陳韋任
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=20120306101016.GA66053@cs.nctu.edu.tw \
--to=chenwj@iis.sinica.edu.tw \
--cc=liwp@linux.vnet.ibm.com \
--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).