Skip to content

Commit

Permalink
Merge pull request #5901 from Yingshun/viommu_rm
Browse files Browse the repository at this point in the history
vIOMMU: Remove the iommu device before attaching it
  • Loading branch information
chloerh authored Sep 20, 2024
2 parents 104a0fc + d168af8 commit c46091b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libvirt/tests/src/sriov/vIOMMU/attach_iommu_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def run(test, params, env):
vmxml.sync()
err_msg = ''

libvirt_vmxml.remove_vm_devices_by_type(vm, 'iommu')
iommu_dev = libvirt_vmxml.create_vm_device_by_type('iommu', iommu_dict)
test.log.debug(f"iommu device: {iommu_dev}")
res = virsh.attach_device(vm.name, iommu_dev.xml, debug=True,
Expand Down

0 comments on commit c46091b

Please sign in to comment.