Skip to content

Commit

Permalink
Merge pull request avocado-framework#3854 from zixi-chen/prealloc_con…
Browse files Browse the repository at this point in the history
…text

Add preallocate context support to memory_backend_* object
  • Loading branch information
YongxueHong authored Feb 29, 2024
2 parents 66e5d61 + 57829bb commit aec9250
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions virttest/qemu_devices/qdevices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1545,25 +1545,26 @@ class Memory(QObject):
__attributes__ = {"memory-backend-ram": ["size", "prealloc", "backend",
"policy", "host-nodes", "share",
"merge", "dump", "prealloc-threads",
"reserve",
"prealloc-context", "reserve",
"x-use-canonical-path-for-ramblock-id"],
"memory-backend-file": ["size", "prealloc", "mem-path",
"backend", "policy", "host-nodes",
"share", "merge", "dump", "pmem",
"discard-data", "align",
"prealloc-threads", "readonly",
"reserve",
"prealloc-context", "reserve",
"x-use-canonical-path-for-ramblock-id"],
"memory-backend-memfd": ["size", "prealloc", "backend",
"seal", "policy", "host-nodes",
"share", "merge", "dump",
"hugetlb", "hugetlbsize",
"prealloc-threads", "reserve",
"prealloc-threads",
"prealloc-context", "reserve",
"x-use-canonical-path-for-ramblock-id"],
"memory-backend-epc": ["size", "prealloc", "backend",
"policy", "host-nodes", "share",
"merge", "dump", "prealloc-threads",
"reserve",
"prealloc-context", "reserve",
"x-use-canonical-path-for-ramblock-id"]}

def __init__(self, backend, params=None):
Expand Down

0 comments on commit aec9250

Please sign in to comment.