Re: [PATCH] x86/physdev: Call xsm_unmap_domain_irq earlier

2022-03-29 Thread Jason Andryuk
On Mon, Mar 28, 2022 at 8:44 AM Jan Beulich wrote: > > On 28.03.2022 13:40, Roger Pau Monné wrote: > > On Fri, Mar 25, 2022 at 10:18:26AM -0400, Jason Andryuk wrote: > >> Pull the XSM check up out of unmap_domain_pirq into physdev_map_pirq. > >> > >> xsm_unmap_domain_irq was seen denying unmap_dom

Re: [PATCH] x86/physdev: Call xsm_unmap_domain_irq earlier

2022-03-28 Thread Daniel P. Smith
On 3/25/22 10:18, Jason Andryuk wrote: > Pull the XSM check up out of unmap_domain_pirq into physdev_map_pirq. > > 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 t

Re: [PATCH] x86/physdev: Call xsm_unmap_domain_irq earlier

2022-03-28 Thread Jan Beulich
On 28.03.2022 13:40, Roger Pau Monné wrote: > On Fri, Mar 25, 2022 at 10:18:26AM -0400, Jason Andryuk wrote: >> Pull the XSM check up out of unmap_domain_pirq into physdev_map_pirq. >> >> xsm_unmap_domain_irq was seen denying unmap_domain_pirq when called from >> complete_domain_destroy as an RCU c

Re: [PATCH] x86/physdev: Call xsm_unmap_domain_irq earlier

2022-03-28 Thread Roger Pau Monné
On Fri, Mar 25, 2022 at 10:18:26AM -0400, Jason Andryuk wrote: > Pull the XSM check up out of unmap_domain_pirq into physdev_map_pirq. > > 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,

[PATCH] x86/physdev: Call xsm_unmap_domain_irq earlier

2022-03-25 Thread Jason Andryuk
Pull the XSM check up out of unmap_domain_pirq into physdev_map_pirq. 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