[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen stable-4.17] x86/svm: Fix valid condition in svm_get_pending_event()



commit a939e953cdd522da3d8f0efeaea84448b5b570f9
Author:     Jinoh Kang <jinoh.kang.kr@xxxxxxxxx>
AuthorDate: Tue Sep 5 08:53:01 2023 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Sep 5 08:53:01 2023 +0200

    x86/svm: Fix valid condition in svm_get_pending_event()
    
    Fixes: 9864841914c2 ("x86/vm_event: add support for 
VM_EVENT_REASON_INTERRUPT")
    Signed-off-by: Jinoh Kang <jinoh.kang.kr@xxxxxxxxx>
    master commit: b2865c2b6f164d2c379177cdd1cb200e4eaba549
    master date: 2023-08-18 20:21:44 +0100
---
 xen/arch/x86/hvm/svm/svm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/x86/hvm/svm/svm.c b/xen/arch/x86/hvm/svm/svm.c
index 5fa945c526..e8f50e7c5e 100644
--- a/xen/arch/x86/hvm/svm/svm.c
+++ b/xen/arch/x86/hvm/svm/svm.c
@@ -2490,7 +2490,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;
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.17



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.