Skip to main content
  1. Home >
  2. Products >
  3. Computing Products >
  4. Servers >
  5. Fujitsu SPARC servers >
  6. Downloads >
  7. User Manuals >
  8. Fujitsu SPARC M12-2/M12-2S Service Manual >
  9. 9.3.2 Dynamically Releasing the SR-IOV Virtual Function From a Logical Domain

9.3.2 Dynamically Releasing the SR-IOV Virtual Function From a Logical Domain


9.3.2 Dynamically Releasing the SR-IOV Virtual Function From a Logical Domain
The operation of dynamically releasing the SR-IOV virtual function from a logical domain must be performed from the control domain by executing the ldm command.
Before removing the SR-IOV virtual function, confirm that it is not being used by the logical domain. For details, see "3.2.19 Creating or Destroying the SR-IOV Virtual Function" the Fujitsu SPARC M12 and Fujitsu M10/SPARC M10 Domain Configuration Guide.
Figure 9-2  Releasing the Assignment of the SR-IOV Virtual Function
Figure 9-2  Releasing the Assignment of the SR-IOV Virtual Function
Table 9-3 lists the procedure for dynamically releasing the SR-IOV virtual function.
Table 9-3  Procedure for Dynamically 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 Releasing the SR-IOV virtual function from a logical domain Control domain primary# ldm remove-io <‌vf-name>‌ <‌domain-name>‌
3 Confirming that the SR-IOV virtual function was released from the logical domain Control domain primary# ldm list-io
4 Destroying the SR-IOV virtual function Control domain primary# ldm destroy-vf <‌vf-name>‌
5 Confirming that the SR-IOV virtual function was destroyed Control domain primary# ldm list-io
The following example executes the commands for removing the SR-IOV virtual function assigned to the logical domain guest, from the control domain or root domain.
  1. 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 LANs of BB-ID#00 and BB-ID#01 is assigned to the logical domain guest.
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
/BB0/CMUL/NET0/IOVNET.PF0.VF0 VF PCIE0 guest
/BB1/CMUL/NET0/IOVNET.PF0.VF0 VF PCIE8 guest
  1. Release the SR-IOV virtual function from the logical domain.
    Release the SR-IOV virtual function created on the SPARC M12-2S on-board LAN of BB-ID#01, from the logical domain guest.
primary# ldm remove-io /BB1/CMUL/NET0/IOVNET.PF0.VF0 guest
  1. Confirm that the SR-IOV virtual function is not assigned.
    Confirm that the SR-IOV virtual function created on the SPARC M12-2S on-board LAN of BB-ID#01 was released from the logical domain guest.
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
/BB0/CMUL/NET0/IOVNET.PF0.VF0 VF PCIE0 guest
/BB1/CMUL/NET0/IOVNET.PF0.VF0 VF PCIE8
  1. Destroy the SR-IOV virtual function.
    Destroy the SR-IOV virtual function created on the SPARC M12-2S on-board LAN of BB-ID#01.
primary# ldm destroy-vf /BB1/CMUL/NET0/IOVNET.PF0.VF0
  1. Confirm that the SR-IOV virtual function was destroyed.
    The SR-IOV virtual function created on the SPARC M12-2S on-board LAN of BB-ID#01 has now been deleted.
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
/BB0/CMUL/NET0/IOVNET.PF0.VF0 VF PCIE0 guest
#