aboutsummaryrefslogtreecommitdiffstats
path: root/xen/xsm/dummy.c
diff options
context:
space:
mode:
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>2012-02-02 15:18:19 +0000
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>2012-02-02 15:18:19 +0000
commitf2aba4f387b67238cd3293167ee3ee6b674d5b4f (patch)
tree3df81d4ee5cdb96a508abc490f591ed61f3f53b9 /xen/xsm/dummy.c
parent99b70ee44e330cac545b13eae7085baffeb74ac0 (diff)
downloadxen-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/xsm/dummy.c')
-rw-r--r--xen/xsm/dummy.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xen/xsm/dummy.c b/xen/xsm/dummy.c
index 83e5dba811..7027ee79c5 100644
--- a/xen/xsm/dummy.c
+++ b/xen/xsm/dummy.c
@@ -375,6 +375,11 @@ static char *dummy_show_irq_sid (int irq)
return NULL;
}
+static int dummy_map_domain_pirq (struct domain *d, int irq, void *data)
+{
+ return 0;
+}
+
static int dummy_irq_permission (struct domain *d, int pirq, uint8_t allow)
{
return 0;
@@ -660,6 +665,7 @@ void xsm_fixup_ops (struct xsm_operations *ops)
set_to_dummy_if_null(ops, schedop_shutdown);
set_to_dummy_if_null(ops, show_irq_sid);
+ set_to_dummy_if_null(ops, map_domain_pirq);
set_to_dummy_if_null(ops, irq_permission);
set_to_dummy_if_null(ops, iomem_permission);
set_to_dummy_if_null(ops, pci_config_permission);