From f2aba4f387b67238cd3293167ee3ee6b674d5b4f Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Thu, 2 Feb 2012 15:18:19 +0000 Subject: 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 Committed-by: Keir Fraser --- xen/arch/x86/irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xen/arch/x86/irq.c') 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", -- cgit v1.2.3