Re: [PATCH 05/24] XSM: make .iomem_mapping_vcpi() hook dependent upon HAS_VPCI=y
"Daniel P. Smith" <[email protected]> Sun, 2 Aug 2026 10:56:04 -0400
| Newsgroups | org.xenproject.lists.xen-devel |
|---|---|
| Message-ID | <[email protected]> |
nit: typo in subject, .iomem_mapping_vcpi --> .iomem_mapping_vpci On 7/28/26 9:15 AM, Jan Beulich wrote: > It's unreachable / dead otherwise. > > Signed-off-by: Jan Beulich <[email protected]> > > --- a/xen/include/xsm/dummy.h > +++ b/xen/include/xsm/dummy.h > @@ -525,12 +525,14 @@ static XSM_INLINE int cf_check xsm_iomem > 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( > --- a/xen/include/xsm/hooks.h > +++ b/xen/include/xsm/hooks.h > @@ -79,7 +79,9 @@ XSM_HOOK(int, irq_permission, struct dom > 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) > Outside of the typo, Acked-by: Daniel P. Smith <[email protected]