]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cpu_x86: Use array of models in CPU map
authorJiri Denemark <jdenemar@redhat.com>
Wed, 18 May 2016 13:24:05 +0000 (15:24 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 20 May 2016 07:18:56 +0000 (09:18 +0200)
commit6f46bf7fcb728a2639b06ec7942e466ca6eb7f1d
treecbd6eec6ba0ad15b29cb16211826ddb4beec3a48
parentd25a3051fe9eff2840bc4336fc734b825315226a
cpu_x86: Use array of models in CPU map

There's no reason for keeping the models in a linked list. Especially
when we know upfront the total number of models we are loading.

As a nice side effect, this fixes x86GetModels to always return a
NULL-terminated list of models.

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