-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qemu_vm: includes support for mem policy and host-nodes #3792
qemu_vm: includes support for mem policy and host-nodes #3792
Conversation
After applying the avocado-vt patch
Now the machine memory includes the policy and host-nodes option
|
@yanan-fu could you review this PR? Thanks ! |
This patch aim to add new options for the machine mem object, so it can bind the machine mem to the specified host numa node. |
virttest/qemu_vm.py
Outdated
if params.get("vm_mem_policy"): | ||
backend_options["policy_mem"] = params.get("vm_mem_policy") | ||
if params.get("vm_mem_host-nodes"): | ||
backend_options["host-nodes"] = params.get("vm_mem_host-nodes") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backend_options["host-nodes"] = params.get("vm_mem_host-nodes") | |
backend_options["host-nodes"] = params.get("vm_mem_host_nodes") |
To align with the current design of the format parameters, I suggest using the underline to split the different keywords.
Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@YongxueHong I understand line 1102 needs to be vm_mem_host_nodes
as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you review again this PR? Thanks!
Includes the support of the policy and host-nodes options for the machine memory backend. Signed-off-by: mcasquer <[email protected]>
8421dd7
to
5c428c2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack
It seems this PR could be merged 😀 |
qemu_vm: includes support for mem policy and host-nodes
Includes the support of the policy and host-nodes options
for the machine memory backend.
ID: 1398
Signed-off-by: mcasquer [email protected]