Merge branch 'x86-seves-for-paolo' of https://git.kernel.org/pub/scm/linux/kernel...
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Sep 2020 10:43:17 +0000 (06:43 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Sep 2020 10:43:17 +0000 (06:43 -0400)
1  2 
arch/arm64/kvm/arm.c
arch/arm64/kvm/hyp/include/hyp/switch.h
arch/x86/kvm/emulate.c
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/svm/nested.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c

Simple merge
Simple merge
Simple merge
index e90bc436f5849b3bbe4727a5cd6e59d5b687c8d1,28036629abf8d7a4e655245081de4e5ffe51c3dc..598a769f19617a81baf6af473b1da6f79c41e847
@@@ -1128,18 -1139,21 +1141,24 @@@ static int svm_set_nested_state(struct 
         * contains saved L1 state.
         */
        copy_vmcb_control_area(&hsave->control, &svm->vmcb->control);
-       hsave->save = save;
+       hsave->save = *save;
  
        svm->nested.vmcb = kvm_state->hdr.svm.vmcb_pa;
-       load_nested_vmcb_control(svm, &ctl);
+       load_nested_vmcb_control(svm, ctl);
        nested_prepare_vmcb_control(svm);
  
 +      if (!nested_svm_vmrun_msrpm(svm))
 +              return -EINVAL;
 +
  out_set_gif:
        svm_set_gif(svm, !!(kvm_state->flags & KVM_STATE_NESTED_GIF_SET));
-       return 0;
+       ret = 0;
+ out_free:
+       kfree(save);
+       kfree(ctl);
+       return ret;
  }
  
  struct kvm_x86_nested_ops svm_nested_ops = {
Simple merge
Simple merge
Simple merge