x86: don't allow MSI pIRQ mapping on unowned device
authorJan Beulich <jbeulich@suse.com>
Thu, 12 Oct 2017 12:35:14 +0000 (14:35 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 12 Oct 2017 12:35:14 +0000 (14:35 +0200)
commit3308374b1be7d43e23bd2e9eaf23ec06d7959882
treea02940d3afb65e10d6d3fda440fc06cdf4282082
parente3aca60843d603fc33eb0d1eab80ad7c2867ded1
x86: don't allow MSI pIRQ mapping on unowned device

MSI setup should be permitted only for existing devices owned by the
respective guest (the operation may still be carried out by the domain
controlling that guest).

This is part of XSA-237.

Reported-by: HW42 <hw42@ipsumj.de>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/irq.c