File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -4351,11 +4351,6 @@ static int svm_leave_smm(struct kvm_vcpu *vcpu, const char *smstate)
4351
4351
if (svm_allocate_nested (svm ))
4352
4352
return 1 ;
4353
4353
4354
- vmcb12 = map .hva ;
4355
-
4356
- nested_load_control_from_vmcb12 (svm , & vmcb12 -> control );
4357
-
4358
- ret = enter_svm_guest_mode (vcpu , vmcb12_gpa , vmcb12 );
4359
4354
kvm_vcpu_unmap (vcpu , & map , true);
4360
4355
4361
4356
/*
@@ -4369,6 +4364,13 @@ static int svm_leave_smm(struct kvm_vcpu *vcpu, const char *smstate)
4369
4364
svm_copy_vmrun_state (& svm -> vmcb01 .ptr -> save ,
4370
4365
map_save .hva + 0x400 );
4371
4366
4367
+ /*
4368
+ * Enter the nested guest now
4369
+ */
4370
+ vmcb12 = map .hva ;
4371
+ nested_load_control_from_vmcb12 (svm , & vmcb12 -> control );
4372
+ ret = enter_svm_guest_mode (vcpu , vmcb12_gpa , vmcb12 );
4373
+
4372
4374
kvm_vcpu_unmap (vcpu , & map_save , true);
4373
4375
}
4374
4376
}
You can’t perform that action at this time.
0 commit comments