]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Don't error out on 'unknown' memory model in qemuMonitorJSONGetMemoryDeviceInfo() v9.1.0-rc2
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 27 Feb 2023 09:23:12 +0000 (10:23 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 27 Feb 2023 13:05:13 +0000 (14:05 +0100)
commitd427102fbd690cb2f43dbf33751cc5194a5b16ce
tree2cf4e8ad33224c6b51c26fd2ece0d5e8b97d4d0e
parente37e1b018e9065832d344007d9345c1a5ccc544b
qemu: Don't error out on 'unknown' memory model in qemuMonitorJSONGetMemoryDeviceInfo()

When starting QEMU (or when reconnecting to a running one),
qemuMonitorJSONGetMemoryDeviceInfo() is called to refresh info on
memory devices. In here, query-memory-devices is called which
returns info on all memory devices. The result is then iterated
over and for some memory models runtime information is updated.
The rest is to be ignored. Except, when introducing SGX support,
this was turned into an error leaving us unable to start any
domain with virtio-pmem memory device (as virtio-pmem is to be
ignored).

Fixes: ddb1bc051959eef4ad7ed6ac47b57056632bdb5e
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
src/qemu/qemu_monitor_json.c