The static SR-IOV method requires that the root domain be in delayed reconfiguration or the I/O domain be stopped while performing SR-IOV operations. After you complete the configuration steps on the root domain, you must reboot it. You must use this method when the Oracle VM Server for SPARC 3.1 firmware is not installed in the system or when the OS version that is installed in the respective domain does not support dynamic SR-IOV.
To create or destroy an SR-IOV virtual function, you first must initiate a delayed reconfiguration on the root domain. Then you can run one or more ldm create-vf and ldm destroy-vf commands to configure the virtual functions. Finally, reboot the root domain. The following commands show how to create a virtual function on a non-primary root domain:
primary# ldm start-reconf root-domain-name primary# ldm create-vf pf-name primary# ldm stop-domain -r root-domain-name
If the root domain is the primary domain, you must use the shutdown command to reboot it.
primary# shutdown -i6 -g0 -y
To statically add a virtual function to or remove one from a guest domain, you must first stop the guest domain. Then perform the ldm add-io and ldm remove-io commands to configure the virtual functions. After the changes are complete, start the domain. The following commands show how to assign a virtual function in this way:
primary# ldm stop guest-domain primary# ldm add-io vf-name guest-domain primary# ldm start guest-domain
You can also add a virtual function to or remove one from a root domain instead of a guest domain. To add an SR-IOV virtual function to or remove one from a root domain, first initiate a delayed reconfiguration on the root domain. Then, you can run one or more of the ldm add-io and ldm remove-io commands. Finally, reboot the root domain.
To minimize domain downtime, plan ahead before configuring virtual functions.
The static SR-IOV features are supported by the Oracle VM Server for SPARC 3.0 software and firmware. See PCIe SR-IOV Hardware and Software Requirements in Oracle VM Server for SPARC 3.0 Release Notes .
To create and destroy virtual functions in the SR-IOV physical function devices, you must first enable I/O virtualization on that PCIe bus.
You can use the ldm set-io or ldm add-io command to set the iov property to on. You can also use the ldm add-domain or ldm set-domain command to set the rc-add-policy property to iov. See the ldm(1M) man page.
Rebooting the root domain affects SR-IOV, so carefully plan your direct I/O configuration changes to maximize the SR-IOV related changes to the root domain and to minimize root domain reboots.