xen/arch: irq: drop unreachable pirq callbacks
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
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
@@ -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
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.Signed-off-by Grygorii Strashko <[email protected]>Acked-by Andrew Cooper <[email protected]>Reviewed-by Denis Mukhin <[email protected]>
Cheers,
Signature · 1 line
Julien Grall
PATCH v2 2/3 xen/ppc: irq: drop unreachable pirq callbacks
In reply to Grygorii StrashkoFrom: 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
@@ -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
PATCH v2 3/3 xen/riscv: irq: drop unreachable pirq callbacks
In reply to Grygorii StrashkoFrom: 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
@@ -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