]> xenbits.xensource.com Git - libvirt.git/commit
cpu_s390: Don't check match attribute for host-model CPUs
authorJiri Denemark <jdenemar@redhat.com>
Tue, 12 Nov 2019 14:27:45 +0000 (15:27 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 25 Nov 2019 14:29:19 +0000 (15:29 +0100)
commit0a24331c6ede568a05468c53644396585ec6ba24
treeec8d075837cd4aa3dd667b681bc1ae432ab20931
parentaf8e39921acafa123fbd215602c98cf90a16cbf9
cpu_s390: Don't check match attribute for host-model CPUs

The match attribute is only relevant for custom mode CPUs. Reporting
failure when match == 'minimum' regardless on CPU mode can cause
unexpected failures. We should only report the error for custom CPUs. In
fact, calling virCPUs390Update on a custom mode CPU should always report
an error as optional features are not supported on s390 either.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/cpu/cpu_s390.c