Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions libvirt/tests/src/cpu/vcpu_misc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging as log
import os
import platform
import re

from avocado.utils import process
Expand Down Expand Up @@ -92,6 +93,10 @@ def update_cpu_xml(vmxml, params, test):
with_topology = "yes" == params.get("with_topology", "no")
customize_cpu_features = "yes" == params.get("customize_cpu_features", "no")

# Check for machine type for mode as maximum
if (platform.machine() in ['ppc64', 'ppc64le']) and (cpu_mode == "maximum"):
test.cancel("\"maximum\" mode is not supported in power arch")

# Create cpu xml for test
if vmxml.xmltreefile.find('cpu'):
cpu_xml = vmxml.cpu
Expand Down