diff options
author | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2012-02-02 15:18:19 +0000 |
---|---|---|
committer | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2012-02-02 15:18:19 +0000 |
commit | f2aba4f387b67238cd3293167ee3ee6b674d5b4f (patch) | |
tree | 3df81d4ee5cdb96a508abc490f591ed61f3f53b9 /xen/arch/x86/irq.c | |
parent | 99b70ee44e330cac545b13eae7085baffeb74ac0 (diff) | |
download | xen-f2aba4f387b67238cd3293167ee3ee6b674d5b4f.tar.gz xen-f2aba4f387b67238cd3293167ee3ee6b674d5b4f.tar.bz2 xen-f2aba4f387b67238cd3293167ee3ee6b674d5b4f.zip |
xsm: Add xsm_map_domain_pirq hook
When checking permissions in map_domain_pirq, the msi_desc field of
the irq_desc is not yet populated with the PCI device being used. Pass
in the msi_info structure which contains the intended PCI device whose
label will be used in the security check.
Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/irq.c')
-rw-r--r-- | xen/arch/x86/irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/irq.c b/xen/arch/x86/irq.c index 6d17ec018f..bbcfa0988a 100644 --- a/xen/arch/x86/irq.c +++ b/xen/arch/x86/irq.c @@ -1828,7 +1828,7 @@ int map_domain_pirq( return 0; } - ret = xsm_irq_permission(d, irq, 1); + ret = xsm_map_domain_pirq(d, irq, data); if ( ret ) { dprintk(XENLOG_G_ERR, "dom%d: could not permit access to irq %d mapping to pirq %d\n", |