diff mbox series

[2/2] i386/cpuid: Remove subleaf constraint on CPUID leaf 1F

Message ID 20220712021249.3227256-3-xiaoyao.li@intel.com (mailing list archive)
State New, archived
Headers show
Series i386/cpuid: Minor fixes for CPUID leaf 1f setup | expand

Commit Message

Xiaoyao Li July 12, 2022, 2:12 a.m. UTC
No such constraint that subleaf index needs to be less than 64.

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
---
 target/i386/kvm/kvm.c | 4 ----
 1 file changed, 4 deletions(-)
diff mbox series

Patch

diff --git a/target/i386/kvm/kvm.c b/target/i386/kvm/kvm.c
index a0b412a1129f..3efa524b4b93 100644
--- a/target/i386/kvm/kvm.c
+++ b/target/i386/kvm/kvm.c
@@ -1843,10 +1843,6 @@  int kvm_arch_init_vcpu(CPUState *cs)
                     break;
                 }
 
-                if (i == 0x1f && j == 64) {
-                    break;
-                }
-
                 c->function = i;
                 c->flags = KVM_CPUID_FLAG_SIGNIFCANT_INDEX;
                 c->index = j;