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
8 changes: 6 additions & 2 deletions libvirt/tests/src/libvirt_mem.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,12 @@ def check_dom_xml(at_mem=False, dt_mem=False):
xml_max_mem_rt = int(dom_xml.max_mem_rt)
xml_max_mem = int(dom_xml.max_mem)
xml_cur_mem = int(dom_xml.current_mem)
assert int(max_mem_rt) == xml_max_mem_rt

if 'ppc64' in arch:
# for arch ppc64 and hugepages, the run time max memory grows and never shrinks.
# libvirt rounded max memory boundaries to align with memory block size (usually 64 MiB or 128 MiB)
assert int(max_mem_rt) <= xml_max_mem_rt
else:
assert int(max_mem_rt) == xml_max_mem_rt
# Check attached/detached memory
logging.info("at_mem=%s,dt_mem=%s", at_mem, dt_mem)
logging.info("detach_device is %s", detach_device)
Expand Down