Skip to content

Commit

Permalink
Merge pull request #3792 from mcasquer/1398_machine_mem_support
Browse files Browse the repository at this point in the history
qemu_vm: includes support for mem policy and host-nodes
  • Loading branch information
YongxueHong authored Nov 13, 2023
2 parents dd81263 + 5c428c2 commit b2324bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions virttest/qemu_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1097,6 +1097,10 @@ def add_memorys(devices, params):
name = "machine_mem"
backend_options = {}
backend_options["size_mem"] = "%sM" % params["mem"]
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")
if params.get("vm_mem_prealloc"):
backend_options["prealloc_mem"] = params.get("vm_mem_prealloc")
if params.get("vm_mem_backend"):
Expand Down

0 comments on commit b2324bc

Please sign in to comment.