File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed
src/vmm/src/cpu_config/x86_64/cpuid/intel Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -398,22 +398,21 @@ mod tests {
398398
399399 #[ test]
400400 fn test_update_extended_feature_flags_entry ( ) {
401- let mut cpuid =
402- crate :: cpu_config:: x86_64:: cpuid:: IntelCpuid ( std:: collections:: BTreeMap :: from ( [ (
403- crate :: cpu_config:: x86_64:: cpuid:: CpuidKey {
404- leaf : 0x7 ,
405- subleaf : 0 ,
406- } ,
407- crate :: cpu_config:: x86_64:: cpuid:: CpuidEntry {
408- flags : crate :: cpu_config:: x86_64:: cpuid:: KvmCpuidFlags :: SIGNIFICANT_INDEX ,
409- ..Default :: default ( )
410- } ,
411- ) ] ) ) ;
401+ let mut cpuid = IntelCpuid ( BTreeMap :: from ( [ (
402+ CpuidKey {
403+ leaf : 0x7 ,
404+ subleaf : 0 ,
405+ } ,
406+ CpuidEntry {
407+ flags : KvmCpuidFlags :: SIGNIFICANT_INDEX ,
408+ ..Default :: default ( )
409+ } ,
410+ ) ] ) ) ;
412411
413412 cpuid. update_extended_feature_flags_entry ( ) . unwrap ( ) ;
414413
415414 let leaf_7_0 = cpuid
416- . get ( & crate :: cpu_config :: x86_64 :: cpuid :: CpuidKey {
415+ . get ( & CpuidKey {
417416 leaf : 0x7 ,
418417 subleaf : 0 ,
419418 } )
You can’t perform that action at this time.
0 commit comments