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:
Jan Beulich committed 2026-08-03 16:34:50 +02:00
1 parent d9605dee5c
commit 7a01c8179c
2 files changed
+4

No files matched your search

+2
View File
@@ -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(
+2
View File
@@ -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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.