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>