Skip to content

Commit

Permalink
Raise exception when huge page fail to set up
Browse files Browse the repository at this point in the history
Signed-off-by: liang-cong-red-hat <[email protected]>
  • Loading branch information
liang-cong-red-hat committed Sep 10, 2024
1 parent 595840c commit 4ddbe02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libvirt/tests/src/memory/memory_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4ddbe02

Please sign in to comment.