Skip to content

Commit

Permalink
Add more attributes to domain.devices.memballoon
Browse files Browse the repository at this point in the history
This commit adds the attributes `autodeflate` and `freePageReporting`
into the `domain.devices.memballoon` model.

Documentation:

    https://libvirt.org/formatdomain.html#memory-balloon-device
  • Loading branch information
diamondburned committed May 5, 2024
1 parent f6bc308 commit 082530a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion generate-xml/domain.nix
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,13 @@ let
(subelem "backend" [ (subattr "model" typeString) ] (sub "source" typePath))
addresselem
])
(subelem "memballoon" [ (subattr "model" typeString) ] [ addresselem ])
(subelem "memballoon"
[
(subattr "model" typeString)
(subattr "autodeflate" typeBoolYesNo)
(subattr "freePageReporting" typeBoolYesNo)
]
[ addresselem ])
]
)
(sub "qemu-commandline" (elem "commandline"
Expand Down

0 comments on commit 082530a

Please sign in to comment.