]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_driver: hook up query-cpu-model-comparison
authorCollin Walling <walling@linux.ibm.com>
Thu, 19 Sep 2019 20:25:05 +0000 (16:25 -0400)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 7 Oct 2019 08:10:17 +0000 (10:10 +0200)
commit47a1edaa464aaa158f6f6b57290872985763285e
tree41dd8da5b75d07c6ba1d02bc7cc2124032533aa9
parentd11c4ddbfb59517c282c56b9d1dd7a0cea70e2b1
qemu_driver: hook up query-cpu-model-comparison

This command is hooked into the virsh hypervisor-cpu-compare command.
As such, the CPU model XML provided to the command will be compared
to the hypervisor CPU contained in the QEMU capabilities file for the
appropriate QEMU binary (for s390x, this CPU definition can be observed
via virsh domcapabilities).

QMP will report that the XML CPU is either identical to, a subset of,
or incompatible with the hypervisor CPU. s390 can also report that
the XML CPU is a "superset" of the hypervisor CPU. This response is
presented as incompatible, as this CPU model would not be able to run
on the hypervisor.

Signed-off-by: Collin Walling <walling@linux.ibm.com>
Reviewed-by: Daniel Henrique Barboza <danielh413@gmail.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Message-Id: <1568924706-2311-15-git-send-email-walling@linux.ibm.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_driver.c