From 8d36593bf6709a1af5b86e46ac4753ffbd593371 Mon Sep 17 00:00:00 2001 From: Yiqian Wei Date: Mon, 23 Oct 2023 17:30:24 +0800 Subject: [PATCH] Add itco watchdog to qemu_vm Signed-off-by: Yiqian Wei --- virttest/qemu_vm.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virttest/qemu_vm.py b/virttest/qemu_vm.py index 6e3d4aa7fd..adfd7a33f2 100644 --- a/virttest/qemu_vm.py +++ b/virttest/qemu_vm.py @@ -1439,7 +1439,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)