10.7.4 Incorporating the SR-IOV Virtual Function
10.7.4 Incorporating the SR-IOV Virtual Function
For the procedure for creating the SR-IOV virtual function, see Table 10-4.
-: Unnecessary |
||||
---|---|---|---|---|
Item | Task | Command | Dynamic SR-IOV Function Used | Static SR-IOV Function Used |
1 | Checking whether the SR-IOV virtual function can be created | ldm list-io | ||
2 | Setting the delayed reconfiguration mode for the control domain or root domain to which the physical function (PF) of SR-IOV is assigned | ldm start-reconf <domain-name> | - | Necessary |
3 | Creating the SR-IOV virtual function | ldm create-vf <pf_name> | Necessary | Necessary |
4 | Confirming that the SR-IOV virtual function was created | ldm list-io | ||
5 | Restarting Oracle Solaris on the control domain or service domain for which the delayed reconfiguration mode has been set | For the control domain shutdown -i6 -g0 -y For the root domain ldm stop-domain -r <domain-name> |
- | Necessary |
6 | Stopping the logical domain to which the SR-IOV virtual function is assigned | ldm stop-domain <domain-name> | - | Necessary |
7 | Assigning the SR-IOV virtual function to a logical domain | ldm add-io <vf_name> <domain_name> | Necessary | Necessary |
8 | Starting the logical domain to which the SR-IOV virtual function was assigned | ldm start-domain <domain-name> | - | Necessary |
9 | Confirming that the SR-IOV virtual function is assigned to the logical domain | ldm list-io |
- Check whether the SR-IOV virtual function can be created.
This example checks that the SR-IOV virtual function can be created with the PCIe card mounted in PCI#5 of BB#00.
primary# ldm list-io NAME TYPE BUS DOMAIN STATUS ---- ---- --- ------ ------ <Omitted> /BB0/PCI5/IOVNET.PF0 PF PCIE3 primary ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /BB0/PCI5/IOVNET.PF1 PF PCIE3 priamry /BB0/PCI5/IOVNET.PF2 PF PCIE3 primary /BB0/PCI5/IOVNET.PF3 PF PCIE3 primary <Omitted> primary# |
- Set the delayed reconfiguration mode for the control domain or root domain to which the physical function (PF) of SR-IOV is assigned.
In this example, the delayed reconfiguration mode is set for the control domain.
primary# ldm start-reconf primary |
- Create the SR-IOV virtual function.
Create the SR-IOV virtual function in Oracle Solaris on the control domain.
This example creates the SR-IOV virtual function with the PCIe card mounted in PCI#5 of BB#00.
primary# ldm create-vf /BB0/PCI5/IOVNET.PF0 |
- Confirm that the SR-IOV virtual function was created.
This example confirms the SR-IOV virtual function created in step 3 in Oracle Solaris on the control domain.
primary# ldm list-io NAME TYPE BUS DOMAIN STATUS ---- ---- --- ------ ------ <Omitted> /BB0/PCI5/IOVNET.PF0.VF0 VF PCIE3 primary# |
- Restart Oracle Solaris on the control domain or service domain for which the delayed reconfiguration mode has been set.
In this example, the control domain is restarted.
primary# shutdown -i6 -g0 -y |
- Stop the logical domain to which the SR-IOV virtual function is assigned.
This example stops logical domain guest to which the SR-IOV virtual function is assigned.
primary# ldm stop-domain guest |
- Assign the SR-IOV virtual function to a logical domain.
This example assigns the SR-IOV virtual function created in step 3 to the logical domain guest in Oracle Solaris on the control domain.
primary# ldm add-io /BB0/PCI5/IOVNET.PF0.VF0 guest |
- Start the logical domain to which the SR-IOV virtual function was assigned.
This example starts logical domain guest.
primary# ldm start-domain guest |
- Confirm that the SR-IOV virtual function is assigned to the logical domain.
This example confirms that the SR-IOV virtual function created in step 3 is assigned to the logical domain guest.
primary# ldm list-io NAME TYPE BUS DOMAIN STATUS ---- ---- --- ------ ------ <Omitted> /BB0/PCI5/IOVNET.PF0.VF0 VF PCIE3 guest primary# |
< Previous Page | Next Page >