9.3.5 Statically Releasing the SR-IOV Virtual Function From a Logical Domain
9.3.5 Statically Releasing the SR-IOV Virtual Function From a Logical Domain
The operation of statically releasing the SR-IOV virtual function from a logical domain must be performed from the control domain.
Before removing the SR-IOV virtual function, confirm that it is not being used by the logical domain. For details, see the manual for the software being used.
For information on how resources are moved when the assignment of the SR-IOV virtual function is statically released, see Figure 9-2.
Table 9-6 lists the procedure for statically releasing the SR-IOV virtual function.
Step | Operation Description | Execution Location | Command Used |
---|---|---|---|
1 | Checking the assignment status of the SR-IOV virtual function | Control domain | primary# ldm list-io |
2 | Stopping the logical domain to which the SR-IOV virtual function is assigned | Control domain | primary# ldm stop-domain <domain-name> |
3 | Releasing the SR-IOV virtual function from the logical domain | Control domain | primary# ldm remove-io <vf-name> <domain-name> |
4 | Confirming that the SR-IOV virtual function was released from the logical domain | Control domain | primary# ldm list-io |
5 | Setting delayed reconfiguration for the control domain or root domain | Control domain | primary# ldm start-reconf <domain-name> |
6 | Destroying the SR-IOV virtual function | Control domain | primary# ldm destroy-vf <vf-name> or primary# ldm destroy-vf -n <number> | max <pf-name> |
7 | Restarting Oracle Solaris on the control domain or root domain | Control domain | When delayed reconfiguration has been set for the control domain primary# shutdown -i6 -g0 -y When delayed reconfiguration has been set for the root domain primary# ldm stop-domain -r <domain-name> |
8 | Confirming that the SR-IOV virtual function was deleted | Control domain | primary# ldm list-io |
The following example executes the commands for releasing the SR-IOV virtual function assigned to the logical domain guest.
- Check the assignment status of the SR-IOV virtual function to a logical domain.
In this example, the SR-IOV virtual function created on the SPARC M12-2S on-board LAN of BB-ID#00 is assigned to the logical domain guest.
primary# ldm list-io NAME TYPE BUS DOMAIN STATUS (Omitted) /BB0/CMUL/NET2/IOVNET.PF0.VF0 VF PCIE4 guest /BB0/CMUL/NET2/IOVNET.PF0.VF1 VF PCIE4 |
- Stop the logical domain to which the SR-IOV function is assigned.
Stop the logical domain guest.
primary# ldm stop-domain guest LDom guest stopped |
- Release the SR-IOV virtual function from the logical domain.
Release the SR-IOV virtual function from the logical domain guest.
primary# ldm remove-io /BB0/CMUL/NET2/IOVNET.PF0.VF0 guest |
- Confirm that the SR-IOV virtual function was released.
Confirm that the released SR-IOV virtual function is not assigned to the logical domain.
primary# ldm list-io NAME TYPE BUS DOMAIN STATUS (Omitted) /BB0/CMUL/NET2/IOVNET.PF0.VF0 VF PCIE4 /BB0/CMUL/NET2/IOVNET.PF0.VF1 VF PCIE4 |
- Set delayed reconfiguration for the control domain or root domain.
In this example, delayed reconfiguration is set for the control domain.
primary# ldm start-reconf primary Initiating a delayed reconfiguration operation on the primary domain. All configuration changes for other domains are disabled until the primary domain reboots, at which time the new configuration for the primary domain will also take effect. |
- Destroy the SR-IOV virtual function.
primary# ldm destroy-vf -n 2 /BB0/CMUL/NET2/IOVNET.PF0 ------------------------------------------------------------------------------ Notice: The primary domain is in the process of a delayed reconfiguration. Any changes made to the primary domain will only take effect after it reboots. ------------------------------------------------------------------------------ |
- Restart Oracle Solaris on the control domain or root domain.
primary# shutdown -i6 -g0 -y |
- Confirm that the SR-IOV virtual function was destroyed.
primary# ldm list-io NAME TYPE BUS DOMAIN STATUS (Omitted) /BB1/CMUL/NET2/IOVNET.PF0 PF PCIE8 primary /BB1/CMUL/NET2/IOVNET.PF1 PF PCIE8 primary # |
< Previous Page | Next Page >