Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a25eb114 authored by Arthur Chunqi Li's avatar Arthur Chunqi Li Committed by Paolo Bonzini
Browse files

KVM: nVMX: Set success rflags when emulate VMXON/VMXOFF in nested virt



Set rflags after successfully emulateing VMXON/VMXOFF in VMX.

Signed-off-by: default avatarArthur Chunqi Li <yzt356@gmail.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 0658fbaa
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -5667,6 +5667,7 @@ static int handle_vmon(struct kvm_vcpu *vcpu)
	vmx->nested.vmxon = true;

	skip_emulated_instruction(vcpu);
	nested_vmx_succeed(vcpu);
	return 1;
}

@@ -5751,6 +5752,7 @@ static int handle_vmoff(struct kvm_vcpu *vcpu)
		return 1;
	free_nested(to_vmx(vcpu));
	skip_emulated_instruction(vcpu);
	nested_vmx_succeed(vcpu);
	return 1;
}