From 046156902f3a27dac946305470a0487f3456df6d Mon Sep 17 00:00:00 2001 From: pharra Date: Sun, 12 May 2024 23:48:44 +0800 Subject: [PATCH 1/2] Add qemu-override section --- CHANGELOG.md | 1 + generate-xml/domain.nix | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19d832f..b6c2316 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ * Update section `clock` * Allow in feature section, customization of the `ioapic` option * add section `cputune` + * add section `qemu:override` ## [0.5.0] * Lib: diff --git a/generate-xml/domain.nix b/generate-xml/domain.nix index 6d91fcf..b32457f 100644 --- a/generate-xml/domain.nix +++ b/generate-xml/domain.nix @@ -401,6 +401,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 From 319093d43107d7548c47f672e3e2c3ff05dd35b0 Mon Sep 17 00:00:00 2001 From: pharra Date: Mon, 13 May 2024 00:05:48 +0800 Subject: [PATCH 2/2] update section hostdev --- CHANGELOG.md | 1 + generate-xml/domain.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6c2316..fa2b653 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ * Allow in feature section, customization of the `ioapic` option * add section `cputune` * add section `qemu:override` + * Updated section `hostdev` ## [0.5.0] * Lib: diff --git a/generate-xml/domain.nix b/generate-xml/domain.nix index b32457f..b830865 100644 --- a/generate-xml/domain.nix +++ b/generate-xml/domain.nix @@ -310,6 +310,7 @@ let [ (subelem "source" [ ] [ addresselem ]) (subelem "boot" [ (subattr "order" typeInt) ] [ ]) + addresselem ] ) (subelem "shmem"