On 2022/11/22 23:53, Peter Krempa wrote: > On Thu, Nov 17, 2022 at 10:05:33 +0800, Jiang Jiacheng wrote: >> If the 'boot order' is not specified in the xml, we cancel its >> bootindex setting and set it to '0'. However, the bootIndexSpecified >> will be set to false because we cannot parse boot order from XML, >> so copy bootIndexSpecified from origin device when updating it. >> >> Signed-off-by: Jiang Jiacheng <[email protected]> >> --- >> src/qemu/qemu_conf.c | 33 +++++++++++++++++++++++++++++++++ >> src/qemu/qemu_conf.h | 4 ++++ >> src/qemu/qemu_driver.c | 3 +++ >> 3 files changed, 40 insertions(+) > > Rather than doing this qemuDomainUpdateDeviceFlags can parse the XML > twice as it's acutally less work than invoking the copy function (Which > re-formats the XML and parses it again). I'll post patches to adress > that in qemuDomainUpdateDeviceFlags. You can drop this patch. > Thanks for your review and suggetions, I will improve my patches in next version.
- Re: [PATCH 1/7] qemu: Introduce qemuDomainChangeBootIn... Peter Krempa
- Re: [PATCH 1/7] qemu: Introduce qemuDomainChangeBo... Jiang Jiacheng
- [PATCH 4/7] qemu: Support update disk's bootindex Jiang Jiacheng
- Re: [PATCH 4/7] qemu: Support update disk's bootindex Peter Krempa
- Re: [PATCH 4/7] qemu: Support update disk's bootin... Jiang Jiacheng
- [PATCH 5/7] qemu: Support update net's bootindex Jiang Jiacheng
- Re: [PATCH 5/7] qemu: Support update net's bootindex Peter Krempa
- Re: [PATCH 5/7] qemu: Support update net's bootind... Jiang Jiacheng
- [PATCH 7/7] qemu: Reserve bootIndexSpecified when update de... Jiang Jiacheng
- Re: [PATCH 7/7] qemu: Reserve bootIndexSpecified when ... Peter Krempa
- Re: [PATCH 7/7] qemu: Reserve bootIndexSpecified w... Jiang Jiacheng
- [PATCH 6/7] qemu: Support add bootindex = 0 to boothash whe... Jiang Jiacheng
- Re: [PATCH 6/7] qemu: Support add bootindex = 0 to boo... Peter Krempa
- Re: [PATCH 6/7] qemu: Support add bootindex = 0 to... Jiang Jiacheng
