]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Support removing features when converting data to CPU
authorJiri Denemark <jdenemar@redhat.com>
Wed, 14 Apr 2010 15:41:32 +0000 (17:41 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 22 Apr 2010 08:20:41 +0000 (10:20 +0200)
commit53c4f9fa1cc8621ebe20236b262ba23595188d77
tree49067fa3a3b4d9c18a516267e47646307cc1f592
parent60aef9e4677e9aa6ad99546ff58fde0a2272ee45
Support removing features when converting data to CPU

So far, when CPUID data were converted into CPU model and features, the
features can only be added to the model. As a result, when a guest asked
for something like "qemu64,-svm" it would get a qemu32 plus a bunch of
additional features instead.

This patch adds support for removing feature from the base model.
Selection algorithm remains the same: the best CPU model is the model
which requires lowest number of features to be added/removed from it.
src/cpu/cpu_x86.c
src/qemu/qemu_conf.c