[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <80769D7B14936844A23C0C43D9FBCF0F2C5E0EF0@orsmsx501.amr.corp.intel.com>
Date: Fri, 6 Mar 2009 15:31:27 -0800
From: "Duyck, Alexander H" <alexander.h.duyck@...el.com>
To: Randy Dunlap <rdunlap@...otime.net>,
Matthew Wilcox <matthew@....cx>
CC: "Zhao, Yu" <yu.zhao@...el.com>,
"jbarnes@...tuousgeek.org" <jbarnes@...tuousgeek.org>,
"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>,
"kvm@...r.kernel.org" <kvm@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH v10 1/7] PCI: initialize and release SR-IOV capability
Randy Dunlap wrote:
> Matthew Wilcox wrote:
>> On Fri, Feb 20, 2009 at 02:54:42PM +0800, Yu Zhao wrote:
>> PCI MSI can also be disabled at runtime (and Fedora do by default).
>> Since SR-IOV really does require MSI, we need to put in a runtime
>> check to see if pci_msi_enabled() is false.
>>
>> We don't depend on PCIEPORTBUS (a horribly named symbol). Should we?
>> SR-IOV is only supported for PCI Express machines. I'm not sure of
>> the right answer here, but I thought I should raise the question.
>>
>>> + help
>>> + PCI-SIG I/O Virtualization (IOV) Specifications support.
>>> + Single Root IOV: allows the Physical Function driver to enable
>>> + the hardware capability, so the Virtual Function is accessible
>>> + via the PCI Configuration Space using its own Bus, Device and
>>> + Function Numbers. Each Virtual Function also has the PCI Memory
>>> + Space to map the device specific register set.
>
> Too spec. and implementation specific for users.
>
>> I'm not convinced this is the most helpful we could be to the user
>> who's configuring their own kernel. How about something like this?
>> (Randy, I particularly look to you to make my prose less turgid).
>>
>> help
>> IO Virtualisation is a PCI feature supported by some devices
>> z ;) which allows you to create virtual PCI devices and assign
>> them to guest OSes. This option needs to be selected in the host
>> or Dom0 kernel, but does not need to be selected in the guest
>> or DomU kernel. If you don't know whether your hardware supports
>> it, you can check by using lspci to look for the SR-IOV
>> capability.
>>
>> If you have no idea what any of that means, it is safe to
>> answer 'N' here.
>
> That's certainly more readable and user-friendly.
> I don't know what else it needs. Looks good to me.
>
> ~Randy
I'm not sure about this help text because SR-IOV and direct assignment are two very different features, and based on this text I would think that SR-IOV is all you need to direct assign VFs into guests when all it actually does is generate the devices that can then be assigned. We already have questions about if VFs can be used on the host OS and this help text doesn't resolve that and would likely lead to similar questions in the future.
I would recommend keeping things simple and just stating "IO Virtualization is a PCI feature, supported by some devices, which allows the creation of virtual PCI devices that contain a subset of the original device's resources. If you don't know if you hardware supports it, you can check by using lspci to check for the SR-IOV capability".
-Alex
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists