Skip to content

Commit

Permalink
Merge pull request #3787 from yiqianwei/itco
Browse files Browse the repository at this point in the history
Add itco watchdog to qemu_vm
  • Loading branch information
luckyh authored Nov 15, 2023
2 parents b2324bc + 8d36593 commit 2aaff10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion virttest/qemu_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,10 @@ def add_sga(devices):
def add_watchdog(devices, device_type=None, action="reset"):
watchdog_devs = []
parent_bus = None
if device_type and devices.has_device(device_type):
if device_type == "itco":
dev = qdevices.QGlobal('ICH9-LPC', 'noreboot', 'off')
watchdog_devs.append(dev)
elif device_type and devices.has_device(device_type):
if devices.is_pci_device(device_type):
parent_bus = self._get_pci_bus(self.params, None, False)
dev = QDevice(device_type, parent_bus=parent_bus)
Expand Down

0 comments on commit 2aaff10

Please sign in to comment.