Skip to content

Commit

Permalink
Update memoryBacking section to include all modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Libadoxon committed Apr 12, 2024
1 parent da57bc8 commit e3bf16d
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 @@ -6,6 +6,7 @@
* Allow in feature section, customization of the `smbios` option
* Allow in cpu section, customization of the `feature` and `cache` option
* Add section `sysinfo`
* 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 @@ -46,8 +46,15 @@ let
)
(subelem "memoryBacking" [ ]
[
(subelem "hugepages" [ ] [
(subelem "page" [ (subattr "size" typeString) (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" typeString) ] [ ])
(subelem "discard" [ ] [ ])
]
)
(subelem "features" [ ]
Expand Down

0 comments on commit e3bf16d

Please sign in to comment.