physio_device 리소스는 항상 <Content> 섹션 내에 있습니다. add-io, set-io, remove-io, create-vf, destroy-vf 및 set-domain 하위 명령을 사용하여 이 리소스를 수정할 수 있습니다.
예 22-19 physio_device XML 예다음 예에서는 가상 기능, 물리적 기능 및 루트 컴플렉스에 대해 작업을 수행하는 방법을 보여줍니다.
다음 XML 단편 예에서는 ldm add-io 명령을 사용하여 /SYS/MB/NET0/IOVNET.PF0.VF0 가상 기능을 ldg1 도메인에 추가하는 방법을 보여줍니다.
<LDM_interface version="1.3">
<cmd>
<action>add-io</action>
<data version="3.0">
<Envelope>
<References/>
<Content xsi:type="ovf:VirtualSystem_Type" ovf:id="ldg1">
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Item>
<rasd:OtherResourceType>physio_device</rasd:OtherResourceType>
<gprop:GenericProperty key="name">
/SYS/MB/NET0/IOVNET.PF0.VF0</gprop:GenericProperty>
</Item>
</Section>
</Content>
</Envelope>
</data>
</cmd>
</LDM_interface>다음 XML 단편 예에서는 ldm set-io 명령을 사용하여 pci_1 루트 컴플렉스에 대한 iov_bus_enable_iov 등록 정보 값을 on으로 설정하는 방법을 보여줍니다.
<LDM_interface version="1.3">
<cmd>
<action>set-io</action>
<data version="3.0">
<Envelope>
<References/>
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Item>
<rasd:OtherResourceType>physio_device</rasd:OtherResourceType>
<gprop:GenericProperty key="name">pci_1</gprop:GenericProperty>
<gprop:GenericProperty key="iov_bus_enable_iov">
on</gprop:GenericProperty>
</Item>
</Section>
</Envelope>
</data>
</cmd>
</LDM_interface>다음 XML 단편 예에서는 ldm set-io 명령을 사용하여 /SYS/MB/NET0/IOVNET.PF1 물리적 기능에 대한 unicast-slots 등록 정보 값을 6으로 설정하는 방법을 보여줍니다.
<LDM_interface version="1.3">
<cmd>
<action>set-io</action>
<data version="3.0">
<Envelope>
<References/>
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Item>
<rasd:OtherResourceType>physio_device</rasd:OtherResourceType>
<gprop:GenericProperty key="name">
/SYS/MB/NET0/IOVNET.PF1</gprop:GenericProperty>
<gprop:GenericProperty key="unicast-slots">6</gprop:GenericProperty>
</Item>
</Section>
</Envelope>
</data>
</cmd>
</LDM_interface>다음 XML 단편 예에서는 ldm create-vf 명령을 사용하여 다음 등록 정보 값으로 /SYS/MB/NET0/IOVNET.PF1.VF0 가상 기능을 만드는 방법을 보여줍니다.
unicast-slots=6
pvid=3
mtu=1600
<LDM_interface version="1.3">
<cmd>
<action>create-vf</action>
<data version="3.0">
<Envelope>
<References/>
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Item>
<rasd:OtherResourceType>vf_device</rasd:OtherResourceType>
<gprop:GenericProperty key="iov_pf_name">
/SYS/MB/NET0/IOVNET.PF1</gprop:GenericProperty>
<gprop:GenericProperty key="unicast-slots">6</gprop:GenericProperty>
<gprop:GenericProperty key="pvid">3</gprop:GenericProperty>
<gprop:GenericProperty key="mtu">1600</gprop:GenericProperty>
</Item>
</Section>
</Envelope>
</data>
</cmd>
</LDM_interface>다음 XML 단편 예에서는 ldm create-vf 명령을 사용하여 /SYS/MB/NET0/IOVNET.PF1 물리적 기능과 함께 iov_pf_repeat_count_str 값(3)으로 지정된 개수의 가상 기능을 만드는 방법을 보여줍니다. iov_pf_repeat_count_str 등록 정보로 여러 가상 기능을 만들 때 다른 등록 정보 값은 지정할 수 없습니다.
<LDM_interface version="1.3">
<cmd>
<action>create-vf</action>
<data version="3.0">
<Envelope>
<References/>
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Item>
<rasd:OtherResourceType>vf_device</rasd:OtherResourceType>
<gprop:GenericProperty key="iov_pf_name">
/SYS/MB/NET0/IOVNET.PF1</gprop:GenericProperty>
<gprop:GenericProperty key="iov_pf_repeat_count_str">
3</gprop:GenericProperty>
</Item>
</Section>
</Envelope>
</data>
</cmd>
</LDM_interface>