From: Gordon Messmer <yinyang@eburg.com>
To: kvm@vger.kernel.org
Subject: Re: Device pass-through
Date: Sun, 15 Jan 2012 22:52:20 -0800 [thread overview]
Message-ID: <4F13C924.7010108@eburg.com> (raw)
In-Reply-To: <4F0A87B8.2090109@eburg.com>
I still poke at this when I get time.
I notice that pci_update_mappings calls pci_bar_address, and the latter
will always return PCI_BAR_UNMAPPED for this device. For the emulated
devices, pci_bar_address will get an address with PCI_ROM_ADDRESS_ENABLE
at some point, and pci_map_option_rom will be called. With the card
that I'm passing in, that never happens. Could anyone point me in the
direction I should go from here? What sets that bit for the emulated
devices that might not happen for the PCI card?
if (type & PCI_BASE_ADDRESS_MEM_TYPE_64) {
new_addr = pci_get_quad(d->config + bar);
} else {
new_addr = pci_get_long(d->config + bar);
}
/* the ROM slot has a specific enable bit */
if (reg == PCI_ROM_SLOT && !(new_addr & PCI_ROM_ADDRESS_ENABLE)) {
return PCI_BAR_UNMAPPED;
}
prev parent reply other threads:[~2012-01-16 6:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-02 19:41 Device pass-through Gordon Messmer
2012-01-03 21:34 ` Alex Williamson
2012-01-04 0:29 ` Gordon Messmer
2012-01-04 3:44 ` Alex Williamson
2012-01-05 19:07 ` Gordon Messmer
2012-01-06 7:25 ` Gordon Messmer
2012-01-06 9:31 ` André Weidemann
2012-01-07 2:07 ` Gordon Messmer
2012-01-07 22:21 ` Gordon Messmer
2012-01-09 6:22 ` Gordon Messmer
2012-01-16 6:52 ` Gordon Messmer [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=4F13C924.7010108@eburg.com \
--to=yinyang@eburg.com \
--cc=kvm@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.