]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cpu: Move check for NULL CPU model inside the driver
authorAndrea Bolognani <abologna@redhat.com>
Fri, 14 Aug 2015 14:04:18 +0000 (16:04 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 21 Aug 2015 22:42:38 +0000 (15:42 -0700)
commit5750149fedb2ec7f1aaaad8286650255718c861d
tree4d19ff5ba8725e086f74168e27c80cf6540bf9a9
parent2f913162ed615faa7227d7366b39fa59b23f233d
cpu: Move check for NULL CPU model inside the driver

While the check is appropriate for eg. the x86 and generic drivers,
there are some valid ppc64 guest configurations where the CPU
model is supposed to be NULL.

Moving this check from the generic code to the drivers makes it
possible to accomodate both use cases.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1251927
src/cpu/cpu.c
src/cpu/cpu_generic.c
src/cpu/cpu_ppc64.c
src/cpu/cpu_x86.c