From f531a8a03597368e0c85a374a0facbdc4e4f452e Mon Sep 17 00:00:00 2001 From: Anushree-Mathur Date: Mon, 8 Jun 2026 00:39:56 +0530 Subject: [PATCH] Skip RTC time recovery on Power architecture RTC interrupt reinjection is not supported on Power pseries machines, causing virsh domtime --now to fail. Skip time recovery on ppc64/ppc64le while maintaining functionality on x86. Signed-off-by: Anushree-Mathur --- .../tests/src/virsh_cmd/domain/virsh_domtime.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/libvirt/tests/src/virsh_cmd/domain/virsh_domtime.py b/libvirt/tests/src/virsh_cmd/domain/virsh_domtime.py index b699a3a6898..168d792b1d2 100644 --- a/libvirt/tests/src/virsh_cmd/domain/virsh_domtime.py +++ b/libvirt/tests/src/virsh_cmd/domain/virsh_domtime.py @@ -2,6 +2,7 @@ import logging as log import re import time +import platform from avocado.utils import process @@ -426,11 +427,16 @@ def stop_vm(): utils_time.sync_timezone_linux(vm) # Sync guest time with host if channel and agent and not shutdown: - res = virsh.domtime(vm_name, now=restore_time) - if res.exit_status: - session.close() - test.error("Failed to recover guest time:\n%s" - % res) + # Skip time recovery on Power architecture - RTC reinjection not supported + if platform.machine() in ['ppc64', 'ppc64le']: + logging.warning("Skipping time recovery on Power architecture - " + "RTC interrupt reinjection not available") + else: + res = virsh.domtime(vm_name, now=restore_time) + if res.exit_status: + session.close() + test.error("Failed to recover guest time:\n%s" + % res) session.close() finally: # Restore VM XML