Re: [PATCH v2] x86/irq: Skip unmap_domain_pirq XSM during destruction

2022-04-08 Thread Roger Pau Monné
On Fri, Apr 08, 2022 at 02:04:56PM +0200, Jan Beulich wrote: > On 08.04.2022 13:10, Roger Pau Monné wrote: > > On Thu, Apr 07, 2022 at 10:51:50AM -0400, Jason Andryuk wrote: > >> xsm_unmap_domain_irq was seen denying unmap_domain_pirq when called from > >> complete_domain_destroy as an RCU callback

Re: [PATCH v2] x86/irq: Skip unmap_domain_pirq XSM during destruction

2022-04-08 Thread Jan Beulich
On 08.04.2022 13:10, Roger Pau Monné wrote: > On Thu, Apr 07, 2022 at 10:51:50AM -0400, Jason Andryuk wrote: >> xsm_unmap_domain_irq was seen denying unmap_domain_pirq when called from >> complete_domain_destroy as an RCU callback. The source context was an >> unexpected, random domain. Since thi

Re: [PATCH v2] x86/irq: Skip unmap_domain_pirq XSM during destruction

2022-04-08 Thread Roger Pau Monné
On Thu, Apr 07, 2022 at 10:51:50AM -0400, Jason Andryuk wrote: > xsm_unmap_domain_irq was seen denying unmap_domain_pirq when called from > complete_domain_destroy as an RCU callback. The source context was an > unexpected, random domain. Since this is a xen-internal operation, > going through th

Re: [PATCH v2] x86/irq: Skip unmap_domain_pirq XSM during destruction

2022-04-08 Thread Jan Beulich
On 07.04.2022 16:51, Jason Andryuk wrote: > xsm_unmap_domain_irq was seen denying unmap_domain_pirq when called from > complete_domain_destroy as an RCU callback. The source context was an > unexpected, random domain. Since this is a xen-internal operation, > going through the XSM hook is inappro

[PATCH v2] x86/irq: Skip unmap_domain_pirq XSM during destruction

2022-04-07 Thread Jason Andryuk
xsm_unmap_domain_irq was seen denying unmap_domain_pirq when called from complete_domain_destroy as an RCU callback. The source context was an unexpected, random domain. Since this is a xen-internal operation, going through the XSM hook is inapproriate. Check d->is_dying and skip the XSM hook wh