diff options
author | Daniel P. Berrange | 2017-05-09 15:27:35 +0200 |
---|---|---|
committer | Eduardo Habkost | 2017-05-11 15:54:04 +0200 |
commit | 4ed3d478c63dc65a02eba774c35116618ea5ff10 (patch) | |
tree | 79441f5428a795b00e8836bf7969b36f8361848c /include/hw/boards.h | |
parent | Merge remote-tracking branch 'armbru/tags/pull-qapi-2017-05-04-v3' into staging (diff) | |
download | qemu-4ed3d478c63dc65a02eba774c35116618ea5ff10.tar.gz qemu-4ed3d478c63dc65a02eba774c35116618ea5ff10.tar.xz qemu-4ed3d478c63dc65a02eba774c35116618ea5ff10.zip |
i386: rewrite way CPUID index is validated
Change the nested if statements into a flat format, to make
it clearer what validation / capping is being performed on
different CPUID index values.
NB this changes behaviour when "index > env->cpuid_xlevel2".
This won't have any guest-visible effect because no there is
no CPUID[0xC0000001] feature supported by TCG, and KVM code
will never call cpu_x86_cpuid() with such an index value.
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <20170509132736.10071-2-berrange@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include/hw/boards.h')
0 files changed, 0 insertions, 0 deletions