]> xenbits.xensource.com Git - libvirt.git/commit
qemu: monitor: Don't hardcode QOM path of first CPU
authorPeter Krempa <pkrempa@redhat.com>
Mon, 7 Feb 2022 10:45:18 +0000 (11:45 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 7 Feb 2022 17:04:52 +0000 (18:04 +0100)
commit715846b6eaf73bdd40cb9d5016c49e593475809b
treeb9d1004679b694a6cf1d3a2f700643d0f92f4d40
parent476e8641864dcf04a74cb7f98a4f5d2fab53b1fa
qemu: monitor: Don't hardcode QOM path of first CPU

Convert all code using the 'QOM_CPU_PATH' macro to accept the QOM path
as an argument.

For now the new helper for fetching the path 'qemuProcessGetVCPUQOMPath'
will always return the same hard-coded value.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.h
src/qemu/qemu_process.c
tests/qemumonitorjsontest.c