All of lore.kernel.org
 help / color / mirror / Atom feed
* 2.6.27, kvm-kmod, and PCI device assignment
@ 2011-09-12 17:56 Chris Friesen
  2011-09-12 18:05 ` Jan Kiszka
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Friesen @ 2011-09-12 17:56 UTC (permalink / raw)
  To: kvm, Avi Kivity, mtosatti, David Ahern


Hi,

I've been away a bit but I'm now coming back to this issue.

Is it expected that the kvm-kmod modules will allow PCI device 
assignment (aka VT-d) with older kernels?  If so, then is there an 
expectation for how far back it will be supported?  I haven't seen a 
clear statement of this anywhere, and I think David was interested in 
this as well.

Looking at the instructions at 
"http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM", 
step 4 is to unbind the device from the host using the "pci_stub" 
functionality.  That code was only added to mainline for 2.6.29-rc1, so 
it seems like extra work will be needed for 2.6.28 and earlier.

Thanks,
Chris


-- 
Chris Friesen
Software Developer
GENBAND
chris.friesen@genband.com
www.genband.com

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

* Re: 2.6.27, kvm-kmod, and PCI device assignment
  2011-09-12 17:56 2.6.27, kvm-kmod, and PCI device assignment Chris Friesen
@ 2011-09-12 18:05 ` Jan Kiszka
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2011-09-12 18:05 UTC (permalink / raw)
  To: Chris Friesen; +Cc: kvm, Avi Kivity, mtosatti, David Ahern

On 2011-09-12 19:56, Chris Friesen wrote:
> 
> Hi,
> 
> I've been away a bit but I'm now coming back to this issue.
> 
> Is it expected that the kvm-kmod modules will allow PCI device
> assignment (aka VT-d) with older kernels?  If so, then is there an
> expectation for how far back it will be supported?  I haven't seen a
> clear statement of this anywhere, and I think David was interested in
> this as well.

In general, it is supposed to work, but there are likely more quirks and
limitation than with a recent kernel. Example: pci_reset_function is not
available for < 2.6.28, thus the assigned device may not work properly
if the guest depends on a reset or after the VM ran through a reset or
<who-knows>. You may also run into bugs/limitations of required kernel
subsystems like the IOMMU layer that were fixed in newer kernels.
kvm-kmod only addresses the kvm modules here.

> 
> Looking at the instructions at
> "http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM",
> step 4 is to unbind the device from the host using the "pci_stub"
> functionality.  That code was only added to mainline for 2.6.29-rc1, so
> it seems like extra work will be needed for 2.6.28 and earlier.

pci_stub is not strictly required if you manage your system in a way
that all other "interested" drivers are kept away from the assigned device.

Jan

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux

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

end of thread, other threads:[~2011-09-12 18:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-12 17:56 2.6.27, kvm-kmod, and PCI device assignment Chris Friesen
2011-09-12 18:05 ` Jan Kiszka

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.