Skip to contentSkip to conversation

xen/arch: irq: drop unreachable pirq callbacks

PATCH In review Grygorii Strashko 2 participants 5 messages Aug 5, 2025 RISC-V

lore
Share & tools
lore
#0 lore raw

v2 cover xen/arch: irq: drop unreachable pirq callbacks

From: Grygorii Strashko <[email protected]>

Hence prerequisite patch was merged [1] arch specific pIRQ callback can now be dropped for arches without pIRQ support as those callback become unreachable.

[1] commit 341f271cf86f ("xen/evtchn: fully restrict concept of pIRQ for arches with pIRQ support only")

Changes in v2:
- reworded commit messages as requested
- added reviewer's tags

Grygorii Strashko (3):
xen/arm: irq: drop unreachable pirq callbacks
xen/ppc: irq: drop unreachable pirq callbacks
xen/riscv: irq: drop unreachable pirq callbacks

 xen/arch/arm/irq.c     | 29 -----------------------------
 xen/arch/ppc/stubs.c   | 20 --------------------
 xen/arch/riscv/stubs.c | 20 --------------------
 3 files changed, 69 deletions(-)
Signature · 1 line
2.34.1
#1 lore raw

PATCH v2 1/3 xen/arm: irq: drop unreachable pirq callbacks

From: Grygorii Strashko <[email protected]>

Since commit 341f271cf86f ("xen/evtchn: fully restrict concept of pIRQ for arches with pIRQ support only"), the corresponding Arm arch pIRQ callbacks become unreachable, so drop them.

---
 xen/arch/arm/irq.c | 29 -----------------------------
 1 file changed, 29 deletions(-)
xen/arch/arm/irq.c +0 -29
index 03fbb90c6c43..4bbf0b0664df 100644
@@ -595,35 +595,6 @@ unlock:
     return ret;
 }
 
-/*
- * pirq event channels. We don't use these on ARM, instead we use the
- * features of the GIC to inject virtualised normal interrupts.
- */
-struct pirq *alloc_pirq_struct(struct domain *d)
-{
-    return NULL;
-}
-
-/*
- * These are all unreachable given an alloc_pirq_struct
- * which returns NULL, all callers try to lookup struct pirq first
- * which will fail.
- */
-int pirq_guest_bind(struct vcpu *v, struct pirq *pirq, int will_share)
-{
-    BUG();
-}
-
-void pirq_guest_unbind(struct domain *d, struct pirq *pirq)
-{
-    BUG();
-}
-
-void pirq_set_affinity(struct domain *d, int pirq, const cpumask_t *mask)
-{
-    BUG();
-}
-
 static bool irq_validate_new_type(unsigned int curr, unsigned int new)
 {
     return (curr == IRQ_TYPE_INVALID || curr == new );
Signature · 1 line
2.34.1
Acked-by on v2 1/3
#2 lore raw

Re: [PATCH v2 1/3] xen/arm: irq: drop unreachable pirq callbacks

Hi,

Quoted 9 lines · Grygorii Strashko

From: Grygorii Strashko <[email protected]>

Since commit 341f271cf86f ("xen/evtchn: fully restrict concept of pIRQ for arches with pIRQ support only"), the corresponding Arm arch pIRQ callbacks become unreachable, so drop them.

Cheers,

Signature · 1 line
Julien Grall
#3 lore raw

PATCH v2 2/3 xen/ppc: irq: drop unreachable pirq callbacks

In reply to Grygorii Strashko

From: Grygorii Strashko <[email protected]>

Since commit 341f271cf86f ("xen/evtchn: fully restrict concept of pIRQ for arches with pIRQ support only"), the corresponding PPC arch pIRQ callbacks become unreachable, so drop them.

---
 xen/arch/ppc/stubs.c | 20 --------------------
 1 file changed, 20 deletions(-)
xen/arch/ppc/stubs.c +0 -20
index 671e71aa0a60..bdaf474c5cc0 100644
@@ -103,26 +103,6 @@ void smp_send_call_function_mask(const cpumask_t *mask)
 
 /* irq.c */
 
-struct pirq *alloc_pirq_struct(struct domain *d)
-{
-    BUG_ON("unimplemented");
-}
-
-int pirq_guest_bind(struct vcpu *v, struct pirq *pirq, int will_share)
-{
-    BUG_ON("unimplemented");
-}
-
-void pirq_guest_unbind(struct domain *d, struct pirq *pirq)
-{
-    BUG_ON("unimplemented");
-}
-
-void pirq_set_affinity(struct domain *d, int pirq, const cpumask_t *mask)
-{
-    BUG_ON("unimplemented");
-}
-
 void irq_ack_none(struct irq_desc *desc)
 {
     BUG_ON("unimplemented");
Signature · 1 line
2.34.1
#4 lore raw

PATCH v2 3/3 xen/riscv: irq: drop unreachable pirq callbacks

In reply to Grygorii Strashko

From: Grygorii Strashko <[email protected]>

Since commit 341f271cf86f ("xen/evtchn: fully restrict concept of pIRQ for arches with pIRQ support only"), the corresponding RISCV arch pIRQ callbacks become unreachable, so drop them.

---
 xen/arch/riscv/stubs.c | 20 --------------------
 1 file changed, 20 deletions(-)
xen/arch/riscv/stubs.c +0 -20
index 8918cebf35c6..1a8c86cd8da2 100644
@@ -82,26 +82,6 @@ void smp_send_call_function_mask(const cpumask_t *mask)
 
 /* irq.c */
 
-struct pirq *alloc_pirq_struct(struct domain *d)
-{
-    BUG_ON("unimplemented");
-}
-
-int pirq_guest_bind(struct vcpu *v, struct pirq *pirq, int will_share)
-{
-    BUG_ON("unimplemented");
-}
-
-void pirq_guest_unbind(struct domain *d, struct pirq *pirq)
-{
-    BUG_ON("unimplemented");
-}
-
-void pirq_set_affinity(struct domain *d, int pirq, const cpumask_t *mask)
-{
-    BUG_ON("unimplemented");
-}
-
 void irq_ack_none(struct irq_desc *desc)
 {
     BUG_ON("unimplemented");
Signature · 1 line
2.34.1