Skip to content

Commit

Permalink
Merge pull request #3800 from quanwenli/vfio-fix
Browse files Browse the repository at this point in the history
Add_pcidevice: format cmd line to json
  • Loading branch information
YongxueHong authored Dec 6, 2023
2 parents be4af65 + 3b23d2e commit d798d84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions virttest/qemu_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,9 @@ def add_pcidevice(devices, host, params, device_driver="pci-assign",
pci_bus='pci.0'):
if devices.has_device(device_driver):
dev = QDevice(device_driver, parent_bus=pci_bus)
set_cmdline_format_by_cfg(dev,
self._get_cmdline_format_cfg(),
'nics')
else:
dev = qdevices.QCustomDevice('pcidevice', parent_bus=pci_bus)
help_cmd = "%s -device %s,\? 2>&1" % (qemu_binary, device_driver)
Expand Down

0 comments on commit d798d84

Please sign in to comment.