<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 8, 2023 at 12:16 PM Michal Privoznik <<a href="mailto:mprivozn@redhat.com">mprivozn@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">While it's true that anybody who's interested in getting<br>
.host-nodes attribute value can just use<br>
virJSONValueObjectGetArray() (and that's exactly what<br>
qemuBuildThreadContextProps() is doing, btw), it somebody is<br></blockquote><div><br></div><div>*if<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
interested in getting the actual virBitmap, they would have to<br>
parse the JSON array.<br>
<br>
Instead, introduce an argument to qemuBuildMemoryBackendProps()<br>
which is set to corresponding value used when formatting the<br>
attribute.<br>
<br>
Signed-off-by: Michal Privoznik <<a href="mailto:mprivozn@redhat.com" target="_blank">mprivozn@redhat.com</a>><br>
---<br>
 src/qemu/qemu_command.c | 40 ++++++++++++++++++++++++----------------<br>
 src/qemu/qemu_command.h |  4 +++-<br>
 src/qemu/qemu_hotplug.c |  2 +-<br>
 3 files changed, 28 insertions(+), 18 deletions(-)<br></blockquote><div><br></div><div> <div>Reviewed-by: Kristina Hanicova <<a href="mailto:khanicov@redhat.com" target="_blank">khanicov@redhat.com</a>> <br></div><font style="--darkreader-inline-color: #b2a696;" color="#888888"><div><br></div><div>Kristina</div></font></div></div></div>