From 4ddbe02f09325e6b688c1e59f757d532129e8284 Mon Sep 17 00:00:00 2001 From: liang-cong-red-hat Date: Thu, 29 Aug 2024 23:10:38 -0400 Subject: [PATCH] Raise exception when huge page fail to set up Signed-off-by: liang-cong-red-hat --- libvirt/tests/src/memory/memory_misc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libvirt/tests/src/memory/memory_misc.py b/libvirt/tests/src/memory/memory_misc.py index 3f8369fbee..667f3084af 100644 --- a/libvirt/tests/src/memory/memory_misc.py +++ b/libvirt/tests/src/memory/memory_misc.py @@ -266,8 +266,8 @@ def _setup_mbxml(): test, pg_size=default_page_size, hp_size=pagesize, hp_list=[mount_pagesize]) vm_mem_size = vmxml.memory hp_cfg = test_setup.HugePageConfig(params) - hp_cfg.set_kernel_hugepages(pagesize, vm_mem_size // pagesize) - hp_cfg.set_kernel_hugepages(mount_pagesize, mem_device_size // mount_pagesize) + hp_cfg.set_kernel_hugepages(pagesize, vm_mem_size // pagesize, False) + hp_cfg.set_kernel_hugepages(mount_pagesize, mem_device_size // mount_pagesize, False) set_vmxml(vmxml, params) _setup_mbxml() vmxml.sync()