On Tue, Oct 20, 2026 at 00:15:01 -0400, Rorie Reyes wrote:
> The qemu-cpu-model-comparison QMP command can return a
> "responsible-properties" array identifying which CPU properties
> caused an incompatibility result.  Expose this through the JSON
> monitor layer by adding an optional `responsibleProps` output
> parameter (char ***) to qemuMonitorJSONGetCPUModelComparison() and
> its public wrapper qemuMonitorGetCPUModelComparison().
> 
> When the caller passes a non-NULL pointer the array is populated
> from the QMP response; passing NULL preserves the existing
> behaviour.  The existing caller in qemuConnectCPUModelComparison()
> is updated to pass NULL so the build continues to work.
> 
> Signed-off-by: Rorie Reyes <[email protected]>
> ---
>  src/qemu/qemu_driver.c       |  2 +-
>  src/qemu/qemu_monitor.c      |  8 +++++---
>  src/qemu/qemu_monitor.h      |  3 ++-
>  src/qemu/qemu_monitor_json.c | 15 ++++++++++++++-
>  src/qemu/qemu_monitor_json.h |  3 ++-
>  tests/qemumonitorjsontest.c  |  8 ++++----
>  6 files changed, 28 insertions(+), 11 deletions(-)

Reviewed-by: Jiri Denemark <[email protected]>

Reply via email to