File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1350,6 +1350,10 @@ void kvm_lapic_set_base(struct kvm_vcpu *vcpu, u64 value)
1350
1350
return ;
1351
1351
}
1352
1352
1353
+ if (!kvm_vcpu_is_bsp (apic -> vcpu ))
1354
+ value &= ~MSR_IA32_APICBASE_BSP ;
1355
+ vcpu -> arch .apic_base = value ;
1356
+
1353
1357
/* update jump label if enable bit changes */
1354
1358
if ((vcpu -> arch .apic_base ^ value ) & MSR_IA32_APICBASE_ENABLE ) {
1355
1359
if (value & MSR_IA32_APICBASE_ENABLE )
@@ -1359,10 +1363,6 @@ void kvm_lapic_set_base(struct kvm_vcpu *vcpu, u64 value)
1359
1363
recalculate_apic_map (vcpu -> kvm );
1360
1364
}
1361
1365
1362
- if (!kvm_vcpu_is_bsp (apic -> vcpu ))
1363
- value &= ~MSR_IA32_APICBASE_BSP ;
1364
-
1365
- vcpu -> arch .apic_base = value ;
1366
1366
if ((old_value ^ value ) & X2APIC_ENABLE ) {
1367
1367
if (value & X2APIC_ENABLE ) {
1368
1368
u32 id = kvm_apic_id (apic );
Original file line number Diff line number Diff line change @@ -8283,8 +8283,7 @@ static void load_vmcs12_host_state(struct kvm_vcpu *vcpu,
8283
8283
vcpu -> arch .cr4_guest_owned_bits = ~vmcs_readl (CR4_GUEST_HOST_MASK );
8284
8284
kvm_set_cr4 (vcpu , vmcs12 -> host_cr4 );
8285
8285
8286
- if (nested_cpu_has_ept (vmcs12 ))
8287
- nested_ept_uninit_mmu_context (vcpu );
8286
+ nested_ept_uninit_mmu_context (vcpu );
8288
8287
8289
8288
kvm_set_cr3 (vcpu , vmcs12 -> host_cr3 );
8290
8289
kvm_mmu_reset_context (vcpu );
You can’t perform that action at this time.
0 commit comments