]> xenbits.xensource.com Git - libvirt.git/commit
cpu: Use virCPUData.arch in cpuDecode
authorJiri Denemark <jdenemar@redhat.com>
Thu, 2 Feb 2017 21:04:25 +0000 (22:04 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 22 Feb 2017 11:09:00 +0000 (12:09 +0100)
commit82ddd0b1550efa899f1bded14adc66410648d120
treecc69c664d1a182475588cb7b6d1d6bbe20d6244a
parent4cd9545d89cf12b386f1e9d10c1b0721fa3f3e94
cpu: Use virCPUData.arch in cpuDecode

virCPUDef.arch is not required to be filled in for guest CPU
definitions. It doesn't make sense to artificially mandate it to be set
when cpuDecode is called especially when virCPUData.arch passed to
cpuDecode already contains the architecture.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/cpu/cpu.c