@@ -2333,7 +2333,7 @@ static int emulator_has_longmode(struct x86_emulate_ctxt *ctxt)
23332333
23342334 eax = 0x80000001 ;
23352335 ecx = 0 ;
2336- ctxt -> ops -> get_cpuid (ctxt , & eax , & ebx , & ecx , & edx );
2336+ ctxt -> ops -> get_cpuid (ctxt , & eax , & ebx , & ecx , & edx , false );
23372337 return edx & bit (X86_FEATURE_LM );
23382338}
23392339
@@ -2636,7 +2636,7 @@ static bool vendor_intel(struct x86_emulate_ctxt *ctxt)
26362636 u32 eax , ebx , ecx , edx ;
26372637
26382638 eax = ecx = 0 ;
2639- ctxt -> ops -> get_cpuid (ctxt , & eax , & ebx , & ecx , & edx );
2639+ ctxt -> ops -> get_cpuid (ctxt , & eax , & ebx , & ecx , & edx , false );
26402640 return ebx == X86EMUL_CPUID_VENDOR_GenuineIntel_ebx
26412641 && ecx == X86EMUL_CPUID_VENDOR_GenuineIntel_ecx
26422642 && edx == X86EMUL_CPUID_VENDOR_GenuineIntel_edx ;
@@ -2656,7 +2656,7 @@ static bool em_syscall_is_enabled(struct x86_emulate_ctxt *ctxt)
26562656
26572657 eax = 0x00000000 ;
26582658 ecx = 0x00000000 ;
2659- ops -> get_cpuid (ctxt , & eax , & ebx , & ecx , & edx );
2659+ ops -> get_cpuid (ctxt , & eax , & ebx , & ecx , & edx , false );
26602660 /*
26612661 * Intel ("GenuineIntel")
26622662 * remark: Intel CPUs only support "syscall" in 64bit
@@ -3551,7 +3551,7 @@ static int em_movbe(struct x86_emulate_ctxt *ctxt)
35513551 /*
35523552 * Check MOVBE is set in the guest-visible CPUID leaf.
35533553 */
3554- ctxt -> ops -> get_cpuid (ctxt , & eax , & ebx , & ecx , & edx );
3554+ ctxt -> ops -> get_cpuid (ctxt , & eax , & ebx , & ecx , & edx , false );
35553555 if (!(ecx & FFL (MOVBE )))
35563556 return emulate_ud (ctxt );
35573557
@@ -3865,7 +3865,7 @@ static int em_cpuid(struct x86_emulate_ctxt *ctxt)
38653865
38663866 eax = reg_read (ctxt , VCPU_REGS_RAX );
38673867 ecx = reg_read (ctxt , VCPU_REGS_RCX );
3868- ctxt -> ops -> get_cpuid (ctxt , & eax , & ebx , & ecx , & edx );
3868+ ctxt -> ops -> get_cpuid (ctxt , & eax , & ebx , & ecx , & edx , true );
38693869 * reg_write (ctxt , VCPU_REGS_RAX ) = eax ;
38703870 * reg_write (ctxt , VCPU_REGS_RBX ) = ebx ;
38713871 * reg_write (ctxt , VCPU_REGS_RCX ) = ecx ;
@@ -3924,7 +3924,7 @@ static int check_fxsr(struct x86_emulate_ctxt *ctxt)
39243924{
39253925 u32 eax = 1 , ebx , ecx = 0 , edx ;
39263926
3927- ctxt -> ops -> get_cpuid (ctxt , & eax , & ebx , & ecx , & edx );
3927+ ctxt -> ops -> get_cpuid (ctxt , & eax , & ebx , & ecx , & edx , false );
39283928 if (!(edx & FFL (FXSR )))
39293929 return emulate_ud (ctxt );
39303930
0 commit comments