Skip to content

Commit

Permalink
Merge pull request #22 from Svenum/add-devices
Browse files Browse the repository at this point in the history
Add devices (hostdev, shmem)
  • Loading branch information
AshleyYakeley authored Apr 6, 2024
2 parents f8eea71 + 08cbf1d commit 13de70e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Lib:
* XML generation:
* Allow in feature section, customization of the `kvm` options, in domains
* Allow in device section, devices of type `shmem` and `hostdev`

## [0.4.2]

Expand Down
19 changes: 19 additions & 0 deletions generate-xml/domain.nix
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,25 @@ let
targetelem
addresselem
])
(subelem "hostdev"
[
(subattr "mode" typeString)
(subattr "type" typeString)
(subattr "managed" typeBoolYesNo)
]
[
(subelem "source" [] [ addresselem ])
]
)
(subelem "shmem"
[
(subattr "name" typeString)
]
[
(subelem "model" [ (subattr "type" typeString) ] [])
(subelem "size" [ (subattr "unit" typeString) ] (sub "count" typeInt))
]
)
(subelem "interface"
[
(subattr "type" typeString)
Expand Down

0 comments on commit 13de70e

Please sign in to comment.