x86/irq: skip unmap_domain_pirq XSM during destruction
authorJason Andryuk <jandryuk@gmail.com>
Tue, 7 Jun 2022 11:55:39 +0000 (13:55 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Jun 2022 11:55:39 +0000 (13:55 +0200)
commitb58fb6e81bd55b6bd946abc3070770f7994c9ef9
treea2cca82fd306d6813e42b56aa0cdfc2921615715
parent5be9edb482ab20cf3e7acb05b511465294d1e19b
x86/irq: skip unmap_domain_pirq XSM during destruction

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 when set since this is a cleanup
operation for a domain being destroyed.

Suggested-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
master commit: 2e6f95a942d1927a53f077c301db0b799c54c05a
master date: 2022-04-08 14:51:52 +0200
xen/arch/x86/irq.c