File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1423,8 +1423,8 @@ static inline int __do_cpuid_func(struct kvm_cpuid_array *array, u32 function)
1423
1423
}
1424
1424
break ;
1425
1425
case 0xa : { /* Architectural Performance Monitoring */
1426
- union cpuid10_eax eax ;
1427
- union cpuid10_edx edx ;
1426
+ union cpuid10_eax eax = { } ;
1427
+ union cpuid10_edx edx = { } ;
1428
1428
1429
1429
if (!enable_pmu || !static_cpu_has (X86_FEATURE_ARCH_PERFMON )) {
1430
1430
entry -> eax = entry -> ebx = entry -> ecx = entry -> edx = 0 ;
@@ -1440,8 +1440,6 @@ static inline int __do_cpuid_func(struct kvm_cpuid_array *array, u32 function)
1440
1440
1441
1441
if (kvm_pmu_cap .version )
1442
1442
edx .split .anythread_deprecated = 1 ;
1443
- edx .split .reserved1 = 0 ;
1444
- edx .split .reserved2 = 0 ;
1445
1443
1446
1444
entry -> eax = eax .full ;
1447
1445
entry -> ebx = kvm_pmu_cap .events_mask ;
@@ -1759,7 +1757,7 @@ static inline int __do_cpuid_func(struct kvm_cpuid_array *array, u32 function)
1759
1757
break ;
1760
1758
/* AMD Extended Performance Monitoring and Debug */
1761
1759
case 0x80000022 : {
1762
- union cpuid_0x80000022_ebx ebx ;
1760
+ union cpuid_0x80000022_ebx ebx = { } ;
1763
1761
1764
1762
entry -> ecx = entry -> edx = 0 ;
1765
1763
if (!enable_pmu || !kvm_cpu_cap_has (X86_FEATURE_PERFMON_V2 )) {
You can’t perform that action at this time.
0 commit comments