Skip to content

Commit

Permalink
Merge pull request #3899 from dzhengfy/fix_controller_ppc
Browse files Browse the repository at this point in the history
controller_functional: Fix model for ppc
  • Loading branch information
Yingshun authored Dec 2, 2021
2 parents 1519b4a + f32eb56 commit 25cfab0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libvirt/tests/src/controller/controller_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,8 +799,9 @@ def check_multifunction():
if remove_nic:
remove_devices(vm_xml, 'interface')
# Get the max controller index in current vm xml
the_model = 'pci-root' if 'ppc' in platform.machine() else 'pcie-root-port'
if add_contrl_list:
ret_indexes = libvirt_pcicontr.get_max_contr_indexes(vm_xml, 'pci', 'pcie-root-port')
ret_indexes = libvirt_pcicontr.get_max_contr_indexes(vm_xml, 'pci', the_model)
if ret_indexes and len(ret_indexes) > 0:
if auto_bus:
new_index = "0x%02x" % (int(ret_indexes[0]) + 1)
Expand Down

0 comments on commit 25cfab0

Please sign in to comment.