Skip to content

Commit 64d788c

Browse files
author
Jinrong Liang
committed
KVM: x86/PVM: Add PVM_FAILED_VMENTRY_VECTOR exit reason handling
Introduce a condition in the pvm_get_syscall_exit_reason() to check for PVM_FAILED_VMENTRY_VECTOR and provide the exit reason. Suggested-by: Lai Jiangshan <jiangshan.ljs@antgroup.com> Signed-off-by: Jinrong Liang <cloudliang@tencent.com>
1 parent 2b6dbe2 commit 64d788c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/x86/kvm/pvm/pvm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2455,6 +2455,8 @@ static u32 pvm_get_syscall_exit_reason(struct kvm_vcpu *vcpu)
24552455
return PVM_EXIT_REASONS_ERETU;
24562456
else if (rip == pvm->msr_rets_rip_plus2)
24572457
return PVM_EXIT_REASONS_ERETS;
2458+
else if (pvm->exit_vector == PVM_FAILED_VMENTRY_VECTOR)
2459+
return PVM_FAILED_VMENTRY_VECTOR;
24582460
else
24592461
return pvm_get_hypercall_exit_reason(vcpu);
24602462
}

0 commit comments

Comments
 (0)