Skip to content

KVM: add low_mem_nxhp and high_mem_nxhp testcase#563

Open
atlarator wants to merge 2 commits intointel:mainfrom
atlarator:hugepage
Open

KVM: add low_mem_nxhp and high_mem_nxhp testcase#563
atlarator wants to merge 2 commits intointel:mainfrom
atlarator:hugepage

Conversation

@atlarator
Copy link
Contributor

OK, this seems like a breaking change, it firstly changes the default testing script for 2M hugepage and 1G hugepage to test/boot_hugepage.py, some default configuration are changed due to create failure of virtual machines due to memory alignment issue.

Please review this pull request carefully as part of this commit is modify by chatgpt-codex-5.4 built in github copilot.

for testcases, lgtm.

Screenshot 2026-03-19 173554

@atlarator
Copy link
Contributor Author

It seems that the merging for boot.py and boot_hugepage.py is ok.
But these hugepage related cases should never run with multi_vms testcases, as the virtual machines created by multi_vms should be manually killed after running.

if params.get("reboot_method"):
hugepage_config = None
try:
_update_dynamic_params(test, params)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should have a check before calling it directly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only the 2 new adding tests need this function call, right?

if params.get_boolean("manual_hugepage_setup"):
hugepage_config = _setup_manual_hugepages(params)

vm_name = params["main_vm"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

boot.py is used by boot_vm_in_hugepage.cfg and multi_vms.cfg, did you test both of their cases?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that when testcases in these two fields run separately (like only hugepage or only multi_vm) should have no problem, but when mixed, like running both hugepage and multi_vm testcases in one run, the hugepage cases will fail, the way to fix this is kill the qemu process manually.

@xhao22
Copy link
Contributor

xhao22 commented Mar 20, 2026

@fanchen2 Can you help to review this tests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants