Plan ahead to determine how you want to use virtual functions in your configuration. Determine which virtual functions from the SR-IOV devices will satisfy your current and future configuration needs.
If you have not yet enabled I/O virtualization, which requires using the static method, combine this step with the steps to create virtual functions. By combining these steps, you need to reboot the root domain only once.
Even when dynamic SR-IOV is available, the recommended practice is to create all the virtual functions at once because you might not be able to create them dynamically after they have been assigned to I/O domains.
In the static SR-IOV case, planning helps you to avoid performing multiple root domain reboots, each of which might negatively affect I/O domains.
For information about I/O domains, see General Guidelines for Creating an I/O Domain.
Use the following general steps to plan and perform SR-IOV virtual function configuration and assignment:
Determine which PCIe SR-IOV physical functions are available on your system and which ones are best suited to your needs.
Use the following commands to identify the required information:
Identifies the available SR-IOV physical function devices.
Identifies which PCIe SR-IOV cards and on-board devices are available.
Identifies additional information about a specified physical function, such as the maximum number of virtual functions that are supported by the device.
Identifies the device-specific properties that are supported by the device. See Advanced SR-IOV Topics: Ethernet SR-IOV.
Enable I/O virtualization operations for a PCIe bus.
Create the required number of virtual functions on the specified SR-IOV physical function.
Use the following command to create the virtual functions for the physical function:
primary# ldm create-vf -n max [name=user-assigned-name] pf-name
Use the ldm add-spconfig command to save the SP configuration to the SP.
For more information, see How to Add an Ethernet SR-IOV Virtual Function to an I/O Domain, How to Add an InfiniBand Virtual Function to an I/O Domain, and How to Add a Fibre Channel SR-IOV Virtual Function to an I/O Domain.