mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
XSM: make .iomem_mapping_vpci() hook dependent upon HAS_VPCI=y
It's unreachable / dead otherwise. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Daniel P. Smith <dpsmith@apertussolutions.com
This commit is contained in:
1 parent
d9605dee5c
commit
7a01c8179c
2 files changed
+4
No files matched your search
@@ -525,12 +525,14 @@ static XSM_INLINE int cf_check xsm_iomem_mapping(
|
||||
return xsm_default_action(action, current->domain, d);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_HAS_VPCI
|
||||
static XSM_INLINE int cf_check xsm_iomem_mapping_vpci(
|
||||
XSM_DEFAULT_ARG struct domain *d, uint64_t s, uint64_t e, uint8_t allow)
|
||||
{
|
||||
XSM_ASSERT_ACTION(XSM_HOOK);
|
||||
return xsm_default_action(action, current->domain, d);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_HAS_PCI
|
||||
static XSM_INLINE int cf_check xsm_pci_config_permission(
|
||||
|
||||
@@ -79,7 +79,9 @@ XSM_HOOK(int, irq_permission, struct domain *, int, uint8_t)
|
||||
XSM_HOOK(int, iomem_permission, struct domain *, uint64_t, uint64_t, uint8_t)
|
||||
|
||||
XSM_HOOK(int, iomem_mapping, struct domain *, uint64_t, uint64_t, uint8_t)
|
||||
#ifdef CONFIG_HAS_VPCI
|
||||
XSM_HOOK(int, iomem_mapping_vpci, struct domain *, uint64_t, uint64_t, uint8_t)
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_HAS_PASSTHROUGH) && defined(CONFIG_HAS_PCI)
|
||||
XSM_HOOK(int, resource_plug_pci, uint32_t)
|
||||
|
||||