diff options
author | 2024-08-01 15:02:58 +0200 | |
---|---|---|
committer | 2024-08-01 15:02:58 +0200 | |
commit | 212febf72900c12405591dcc5902d4cfa11173bf (patch) | |
tree | 7a093fae6f723d02b6c4a573669615024fe65e4d /0052-evtchn-build-fix-for-Arm.patch | |
parent | Xen 4.17.4-pre-patchset-1 (diff) | |
download | xen-upstream-patches-212febf72900c12405591dcc5902d4cfa11173bf.tar.gz xen-upstream-patches-212febf72900c12405591dcc5902d4cfa11173bf.tar.bz2 xen-upstream-patches-212febf72900c12405591dcc5902d4cfa11173bf.zip |
Xen 4.18.3-pre-patchset-04.18.3-pre-patchset-0
Signed-off-by: Tomáš Mózes <tomas.mozes@gmail.com>
Diffstat (limited to '0052-evtchn-build-fix-for-Arm.patch')
-rw-r--r-- | 0052-evtchn-build-fix-for-Arm.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/0052-evtchn-build-fix-for-Arm.patch b/0052-evtchn-build-fix-for-Arm.patch new file mode 100644 index 0000000..6cbeb10 --- /dev/null +++ b/0052-evtchn-build-fix-for-Arm.patch @@ -0,0 +1,43 @@ +From 45c5333935628e7c80de0bd5a9d9eff50b305b16 Mon Sep 17 00:00:00 2001 +From: Jan Beulich <jbeulich@suse.com> +Date: Thu, 4 Jul 2024 16:57:29 +0200 +Subject: [PATCH 52/56] 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@suse.com> +--- + 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 b1a6215c37..e6ec556603 100644 +--- a/xen/common/event_channel.c ++++ b/xen/common/event_channel.c +@@ -643,7 +643,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; + } + +@@ -713,8 +715,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; +-- +2.45.2 + |