From patchwork Thu Dec 6 09:06:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [13/13] target-i386: Postpone cpuid_level update to realize time From: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 204187 Message-Id: <1354784817-1340-14-git-send-email-afaerber@suse.de> To: qemu-devel@nongnu.org Cc: Igor Mammedov , =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Thu, 6 Dec 2012 10:06:57 +0100 From: Igor Mammedov Delay capping cpuid_level to 7 to realize time so property setters for cpuid_7_0_ebx_features and "level" could be used in any order/time between x86_cpu_initfn() and x86_cpu_realize(). Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost Signed-off-by: Andreas Färber --- target-i386/cpu.c | 3 --- 1 Datei geändert, 3 Zeilen entfernt(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index a631ae9..f56aa0d 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1381,9 +1381,6 @@ static int cpu_x86_parse_featurestr(x86_def_t *x86_cpu_def, char *features) if (kvm_check_features_against_host(x86_cpu_def) && enforce_cpuid) goto error; } - if (x86_cpu_def->cpuid_7_0_ebx_features && x86_cpu_def->level < 7) { - x86_cpu_def->level = 7; - } return 0; error: