]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_capabilities: Inroduce virQEMUCapsGetCPUModelX86Data
authorJiri Denemark <jdenemar@redhat.com>
Mon, 25 Feb 2019 08:39:17 +0000 (09:39 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 5 Mar 2019 13:47:49 +0000 (14:47 +0100)
commit30e4faac2f3e72aec29be9963d7a5394153e812f
tree18b28c6c0e9deb520b876f05992f642b52527771
parent5ced12decea42f1d588f2cb28b10ca7a5772098e
qemu_capabilities: Inroduce virQEMUCapsGetCPUModelX86Data

The code for transforming qemuMonitorCPUModelInfo data from QEMU into
virCPUDefPtr consumable by virCPU* APIs was hidden inside
virQEMUCapsInitCPUModelX86. This patch moves it into a new function to
make it usable in tests.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capspriv.h