x86/svm: Fix valid condition in svm_get_pending_event()

Fixes: 9864841914 ("x86/vm_event: add support for VM_EVENT_REASON_INTERRUPT")
Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
This commit is contained in:
Jinoh Kang authored and Andrew Cooper committed 2023-08-18 20:21:44 +01:00
1 parent cd36188b27
commit b2865c2b6f
1 file changed
+1 -1
+1 -1
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.