Message ID | 20250506143905.4961-5-philmd@linaro.org |
---|---|
State | Superseded |
Headers | show |
Series | hw/i386/pc: Remove deprecated 2.4 and 2.5 PC machines | expand |
On Tue, May 06, 2025 at 04:38:50PM +0200, Philippe Mathieu-Daudé wrote: > Date: Tue, 6 May 2025 16:38:50 +0200 > From: Philippe Mathieu-Daudé <philmd@linaro.org> > Subject: [PATCH v3 04/19] target/i386/cpu: Remove X86CPU::check_cpuid field > X-Mailer: git-send-email 2.47.1 > > The X86CPU::check_cpuid boolean was only set in the > pc_compat_2_4[] array, via the 'check=off' property. > We removed all machines using that array, lets remove > that CPU property and simplify x86_cpu_realizefn(). > > Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> > Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> > --- > target/i386/cpu.h | 1 - > target/i386/cpu.c | 3 +-- > 2 files changed, 1 insertion(+), 3 deletions(-) Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
diff --git a/target/i386/cpu.h b/target/i386/cpu.h index 54bf9639f19..3a5e17e0741 100644 --- a/target/i386/cpu.h +++ b/target/i386/cpu.h @@ -2168,7 +2168,6 @@ struct ArchCPU { uint8_t hyperv_ver_id_sb; uint32_t hyperv_ver_id_sn; - bool check_cpuid; bool enforce_cpuid; /* * Force features to be enabled even if the host doesn't support them. diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 6f21d5ed222..49179f35812 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -8169,7 +8169,7 @@ static void x86_cpu_realizefn(DeviceState *dev, Error **errp) } } - if (x86_cpu_filter_features(cpu, cpu->check_cpuid || cpu->enforce_cpuid)) { + if (x86_cpu_filter_features(cpu, cpu->enforce_cpuid)) { if (cpu->enforce_cpuid) { error_setg(&local_err, accel_uses_host_cpuid() ? @@ -8808,7 +8808,6 @@ static const Property x86_cpu_properties[] = { DEFINE_PROP_UINT8("hv-version-id-sbranch", X86CPU, hyperv_ver_id_sb, 0), DEFINE_PROP_UINT32("hv-version-id-snumber", X86CPU, hyperv_ver_id_sn, 0), - DEFINE_PROP_BOOL("check", X86CPU, check_cpuid, true), DEFINE_PROP_BOOL("enforce", X86CPU, enforce_cpuid, false), DEFINE_PROP_BOOL("x-force-features", X86CPU, force_features, false), DEFINE_PROP_BOOL("kvm", X86CPU, expose_kvm, true),