All of lore.kernel.org
 help / color / mirror / Atom feed
* PCI passthrough resource remapping
@ 2010-01-09  2:45 Ryan C. Underwood
  2010-01-09  3:22 ` Alexander Graf
  0 siblings, 1 reply; 39+ messages in thread
From: Ryan C. Underwood @ 2010-01-09  2:45 UTC (permalink / raw)
  To: kvm


I have a multifunction PCI device that I'd like to pass through to KVM.
In order to do that, I'm reading that the PCI memory region must be 4K-page
aligned and the PCI memory resources itself must also be exact multiples
of 4K pages.

I have added the following on my kernel command line:
reassign_resources reassigndev=08:09.0,08:09.1,08:09.2,08:09.3,08:09.4

But I don't know if it has any effect.  The resources are still not
sized in 4K pages.  Also, this seems to screw up the last device.

Am I doing the right thing.  I am on amd64 and using the latest qemu-kvm
release 0.12.1.2 with kernel 2.6.31.  It seems very hard to find
documentation on the kernel parameters related to pci-passthrough.


08:09.0 0c00: 1180:0832 (rev 05) (prog-if 10)
        Subsystem: 103c:30cd
        Flags: bus master, medium devsel, latency 32, IRQ 16
        Memory at f4400000 (32-bit, non-prefetchable) [size=2K]
        Capabilities: <access denied>
        Kernel driver in use: ohci1394
        Kernel modules: firewire-ohci, ohci1394

08:09.1 0805: 1180:0822 (rev 22)
        Subsystem: 103c:30cd
        Flags: bus master, medium devsel, latency 32, IRQ 18
        Memory at f4400800 (32-bit, non-prefetchable) [size=256]
        Capabilities: <access denied>
        Kernel driver in use: sdhci-pci
        Kernel modules: sdhci-pci

08:09.2 0880: 1180:0843 (rev 12)
        Subsystem: 103c:30cd
        Flags: bus master, medium devsel, latency 32, IRQ 10
        Memory at f4400c00 (32-bit, non-prefetchable) [size=256]
        Capabilities: <access denied>
        Kernel driver in use: ricoh-mmc
        Kernel modules: ricoh_mmc

08:09.3 0880: 1180:0592 (rev 12)
        Subsystem: 103c:30cd
        Flags: bus master, medium devsel, latency 32, IRQ 10
        Memory at f4401000 (32-bit, non-prefetchable) [size=256]
        Capabilities: <access denied>

08:09.4 0880: 1180:0852 (rev ff) (prog-if ff)
        !!! Unknown header type 7f


-- 
Ryan C. Underwood, <nemesis@icequake.net>

^ permalink raw reply	[flat|nested] 39+ messages in thread

end of thread, other threads:[~2010-04-07  5:53 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-09  2:45 PCI passthrough resource remapping Ryan C. Underwood
2010-01-09  3:22 ` Alexander Graf
2010-01-10 21:53   ` Ryan C. Underwood
2010-01-10 22:15   ` Ryan C. Underwood
2010-01-14 13:59     ` Avi Kivity
2010-01-14 15:26       ` Ryan C. Underwood
2010-01-14 15:34         ` Avi Kivity
2010-01-14 15:47           ` Michael S. Tsirkin
2010-01-14 15:54             ` Avi Kivity
2010-01-14 18:31               ` Ryan C. Underwood
2010-01-14 19:09                 ` Avi Kivity
2010-01-14 19:34                   ` Ryan C. Underwood
2010-01-16  9:23                     ` Avi Kivity
2010-01-15 13:11                 ` Pasi Kärkkäinen
2010-01-15 13:15                   ` Alexander Graf
2010-03-26  2:37   ` Kenni Lund
2010-03-26  3:00     ` Brian Jackson
2010-03-29 17:23       ` Kenni Lund
2010-03-29 19:17         ` Alexander Graf
2010-03-29 23:00           ` Kenni Lund
2010-03-29 23:12             ` Alexander Graf
2010-03-29 23:47               ` Chris Wright
2010-03-30  0:21                 ` Kenni Lund
2010-03-30  2:08                   ` Chris Wright
2010-03-30 22:27                     ` Kenni Lund
2010-03-30 22:29                       ` Alexander Graf
2010-03-30 23:52                         ` Kenni Lund
2010-03-31  0:59                           ` Chris Wright
2010-03-30 23:58                       ` Chris Wright
2010-03-31  0:47                         ` Kenni Lund
2010-03-31  1:32                           ` Chris Wright
2010-03-31 10:07                             ` Kenni Lund
2010-03-31 15:15                               ` Chris Wright
2010-03-31 11:43                           ` Kenni Lund
2010-03-31 12:24                             ` Alexander Graf
2010-03-31 13:04                               ` Kenni Lund
2010-03-31 15:18                               ` Chris Wright
2010-03-31 15:23                                 ` Alexander Graf
2010-04-07  5:52                                 ` Avi Kivity

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.