x86: don't change affinity with interrupt unmasked
authorJan Beulich <jbeulich@suse.com>
Thu, 26 Mar 2015 10:18:28 +0000 (11:18 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 26 Mar 2015 10:18:28 +0000 (11:18 +0100)
commit1aeb1156fa43fe2cd2b5003995b20466cd19a622
tree26b7e196730bc8d6103d8f9ee91477719d38feca
parent73aa7fc2926c5ae30d8ebd049beadbb48e24d6c6
x86: don't change affinity with interrupt unmasked

With ->startup unmasking the IRQ, setting the affinity afterwards
without masking the IRQ again is invalid namely for MSI (address and
data can't be updated atomically and may - at least for MSI-X - be
cached while unmasked).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/irq.c