Skip to content

Commit

Permalink
Merge pull request AshleyYakeley#37 from pharra/master
Browse files Browse the repository at this point in the history
Add qemu-override section
  • Loading branch information
AshleyYakeley authored May 12, 2024
2 parents 71389ed + 319093d commit eaa7646
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* Update section `clock`
* Allow in feature section, customization of the `ioapic` option
* add section `cputune`
* add section `qemu:override`
* Updated section `hostdev`

## [0.5.0]
* Lib:
Expand Down
17 changes: 17 additions & 0 deletions generate-xml/domain.nix
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ let
[
(subelem "source" [ ] [ addresselem ])
(subelem "boot" [ (subattr "order" typeInt) ] [ ])
addresselem
]
)
(subelem "shmem"
Expand Down Expand Up @@ -401,6 +402,22 @@ let
(subelem "arg" [ (subattr "value" typeString) ] [ ])
(subelem "env" [ (subattr "name" typeString) (subattr "value" typeString) ] [ ])
]))
(sub "qemu-override" (elem "override"
[ (attr "xmlns" (typeConstant "http://libvirt.org/schemas/domain/qemu/1.0")) ]
[
(subelem "device"
[
(subattr "alias" typeString)
]
[
(subelem "frontend" [ ]
[
(subelem "property"
[ (subattr "name" typeString) (subattr "type" typeString) (subattr "value" typeString) ]
[ ])
])
])
]))
];

in
Expand Down

0 comments on commit eaa7646

Please sign in to comment.