]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386/cpu: Remove unnecessary SGX feature words checks
authorZhao Liu <zhao1.liu@intel.com>
Tue, 30 Jul 2024 04:55:41 +0000 (12:55 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 31 Jul 2024 11:13:31 +0000 (13:13 +0200)
commiteee194dd7120f62896d5fbffeba8ab2ec39a09da
treedbc44fd4b63bda5bf553f9dbf1ce04e39e785991
parent39635ccd0b4935ecbf184cf4544fce92d5827de2
target/i386/cpu: Remove unnecessary SGX feature words checks

CPUID.0x7.0.ebx and CPUID.0x7.0.ecx leaves have been expressed as the
feature word lists, and the Host capability support has been checked
in x86_cpu_filter_features().

Therefore, such checks on SGX feature "words" are redundant, and
the follow-up adjustments to those feature "words" will not actually
take effect.

Remove unnecessary SGX feature words related checks.

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20240730045544.2516284-2-zhao1.liu@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c