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

[xen staging-4.17] evtchn: build fix for Arm



commit 43d5f8f079a53ee905b3d0ccff3b871cd54a853b
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Thu Jul 4 16:59:03 2024 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Jul 4 16:59:03 2024 +0200

    evtchn: build fix for Arm
    
    When backporting daa90dfea917 ("pirq_cleanup_check() leaks") I neglected
    to pay attention to it depending on 13a7b0f9f747 ("restrict concept of
    pIRQ to x86"). That one doesn't want backporting imo, so use / adjust
    custom #ifdef-ary to address the immediate issue of pirq_cleanup_check()
    not being available on Arm.
    
    Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---
 xen/common/event_channel.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c
index 7eb719f0de..7b59535ee3 100644
--- a/xen/common/event_channel.c
+++ b/xen/common/event_channel.c
@@ -618,7 +618,9 @@ static int evtchn_bind_pirq(evtchn_bind_pirq_t *bind)
     if ( rc != 0 )
     {
         info->evtchn = 0;
+#ifdef CONFIG_X86
         pirq_cleanup_check(info, d);
+#endif
         goto out;
     }
 
@@ -688,8 +690,8 @@ int evtchn_close(struct domain *d1, int port1, bool guest)
                  * The successful path of unmap_domain_pirq_emuirq() will have
                  * called pirq_cleanup_check() already.
                  */
-#endif
                 pirq_cleanup_check(pirq, d1);
+#endif
         }
         unlink_pirq_port(chn1, d1->vcpu[chn1->notify_vcpu_id]);
         break;
--
generated by git-patchbot for /home/xen/git/xen.git#staging-4.17



 


Rackspace

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