XSM: make .hvm_param*() hooks dependent upon HVM=y

They're 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:36:13 +02:00
1 parent 754ae0860a
commit 29df230854
3 files changed
+10

No files matched your search

+4
View File
@@ -569,6 +569,8 @@ static XSM_INLINE int cf_check xsm_map_gmfn_foreign(
return xsm_default_action(action, d, t);
}
#ifdef CONFIG_HVM
static XSM_INLINE int cf_check xsm_hvm_param(
XSM_DEFAULT_ARG struct domain *d, unsigned long op)
{
@@ -583,6 +585,8 @@ static XSM_INLINE int cf_check xsm_hvm_param_altp2mhvm(
return xsm_default_action(action, current->domain, d);
}
#endif /* CONFIG_HVM */
#ifdef CONFIG_ALTP2M
static XSM_INLINE int cf_check xsm_hvm_altp2mhvm_op(
XSM_DEFAULT_ARG struct domain *d, uint64_t mode, uint32_t op)
+2
View File
@@ -104,8 +104,10 @@ XSM_HOOK(int, pci_config_permission, struct domain *, uint32_t, uint16_t,
XSM_HOOK(int, hypfs_op)
#endif
#ifdef CONFIG_HVM
XSM_HOOK(int, hvm_param, struct domain *, unsigned long)
XSM_HOOK(int, hvm_param_altp2mhvm, struct domain *)
#endif
#ifdef CONFIG_ALTP2M
XSM_HOOK(int, hvm_altp2mhvm_op, struct domain *, uint64_t, uint32_t)
+4
View File
@@ -1368,6 +1368,8 @@ static int cf_check flask_map_gmfn_foreign(struct domain *d, struct domain *t)
return domain_has_perm(d, t, SECCLASS_MMU, MMU__MAP_READ | MMU__MAP_WRITE);
}
#ifdef CONFIG_HVM
static int cf_check flask_hvm_param(struct domain *d, unsigned long op)
{
uint32_t perm;
@@ -1393,6 +1395,8 @@ static int cf_check flask_hvm_param_altp2mhvm(struct domain *d)
return current_has_perm(d, SECCLASS_HVM, HVM__ALTP2MHVM);
}
#endif /* CONFIG_HVM */
#ifdef CONFIG_ALTP2M
static int cf_check flask_hvm_altp2mhvm_op(struct domain *d, uint64_t mode, uint32_t op)
{
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.