From b2d4ae0ec3b4330d96849fce6d97ca2870d42041 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Wed, 16 Mar 2022 11:27:48 +0100 Subject: [PATCH] qemu: domain: Add XML namespace code for overriding device config Implement the XML parser and formatter for overriding of device properties such as: Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- src/conf/schemas/domaincommon.rng | 42 ++++ src/qemu/qemu_domain.c | 218 ++++++++++++++++++ src/qemu/qemu_domain.h | 33 +++ .../qemu-ns.x86_64-4.0.0.args | 2 +- .../qemu-ns.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/qemu-ns.xml | 14 ++ .../qemu-ns.x86_64-latest.xml | 14 ++ 7 files changed, 323 insertions(+), 2 deletions(-) diff --git a/src/conf/schemas/domaincommon.rng b/src/conf/schemas/domaincommon.rng index 34bccee2f5..3326946842 100644 --- a/src/conf/schemas/domaincommon.rng +++ b/src/conf/schemas/domaincommon.rng @@ -80,6 +80,9 @@ + + + @@ -7560,6 +7563,45 @@ + + + + + + string + signed + unsigned + bool + remove + + + + + + + + + + + + + + + + + + + + + + + + + + + + +