
8 Sep
2025
8 Sep
'25
9:20 a.m.
On Thu, Sep 04, 2025 at 16:46:53 +0200, Jiri Denemark via Devel wrote:
From: Jiri Denemark <jdenemar@redhat.com>
When getting enabled CPU features (qemuMonitorJSONGetCPUData), we used to call qemuMonitorJSONGetCPUProperties to get the list of all boolean properties and then queried their values and ignored properties that were not true. By moving the filtering inside qemuMonitorJSONGetCPUProperties we don't need to even add disabled features to any list and also get ready for better QMP interface.
Signed-off-by: Jiri Denemark <jdenemar@redhat.com> --- src/qemu/qemu_monitor_json.c | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-)
Reviewed-by: Peter Krempa <pkrempa@redhat.com>