Skip to content

Commit

Permalink
Add preallocate context support to memory_backend_* object
Browse files Browse the repository at this point in the history
Signed-off-by: Zixi Chen <[email protected]>
  • Loading branch information
zixi-chen committed Feb 29, 2024
1 parent 66e5d61 commit 57829bb
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 57829bb

Please sign in to comment.