On 2024/02/13 20:01, Michael S. Tsirkin wrote:
On Mon, Feb 12, 2024 at 07:20:34PM +0900, Akihiko Odaki wrote:
Disable SR-IOV VF devices by reusing code to power down PCI devices
instead of removing them when the guest requests to disable VFs. This
allows to realize devices and report VF realization errors at PF
realization time.
Signed-off-by: Akihiko Odaki <akihiko.od...@daynix.com>
It is simpler for sure, but I am worried that all of these
unused VFs will consume lots of resources even if never
enabled. Thoughts?
My rationale behind this change is that the resources should be
allocated when the PF is realized to ensure the resources are available
when the guest requests to enable VFs.
When it is necessary to allocate resources dynamically, the conventional
hotplug mechanism should be used instead since the SR-IOV interface is
not designed to report resource allocation errors.