Skip to content

Commit

Permalink
Merge pull request #29 from Libadoxon/memory-backing
Browse files Browse the repository at this point in the history
Update memoryBacking section to include all modules
  • Loading branch information
AshleyYakeley authored Apr 12, 2024
2 parents ca4ab48 + 9afed0d commit 8f8f61f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Add section `sysinfo`
* add bootorder for device `disk` and `hostdev`
* add section `iothreads`
* Updated section `memoryBacking`

## [0.5.0]
* Lib:
Expand Down
7 changes: 7 additions & 0 deletions generate-xml/domain.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,15 @@ let
)
(subelem "memoryBacking" [ ]
[
(subelem "hugepages" [ ] [
(subelem "page" [ (subattr "size" typeInt) (subattr "unit" typeString) (subattr "nodeset" typeString) ] [ ])
])
(subelem "nosharepages" [ ] [ ])
(subelem "locked" [ ] [ ])
(subelem "source" [ (subattr "type" typeString) ] [ ])
(subelem "access" [ (subattr "mode" typeString) ] [ ])
(subelem "allocation" [ (subattr "mode" typeString) (subattr "threads" typeInt) ] [ ])
(subelem "discard" [ ] [ ])
]
)
(subelem "features" [ ]
Expand Down

0 comments on commit 8f8f61f

Please sign in to comment.