Skip to content

Commit

Permalink
x86/svm: Fix valid condition in svm_get_pending_event()
Browse files Browse the repository at this point in the history
Fixes: 9864841 ("x86/vm_event: add support for VM_EVENT_REASON_INTERRUPT")
Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
  • Loading branch information
iamahuman authored and andyhhp committed Aug 18, 2023
1 parent cd36188 commit b2865c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xen/arch/x86/hvm/svm/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2415,7 +2415,7 @@ static bool cf_check svm_get_pending_event(
{
const struct vmcb_struct *vmcb = v->arch.hvm.svm.vmcb;

if ( vmcb->event_inj.v )
if ( !vmcb->event_inj.v )
return false;

info->vector = vmcb->event_inj.vector;
Expand Down

0 comments on commit b2865c2

Please sign in to comment.