|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v1 11/25] xen/domctl: wrap around XEN_DOMCTL_{getvcpuaffinity,setvcpuaffinity}
Function vcpu_affinity_domctl() is responsible for
XEN_DOMCTL_{getvcpuaffinity,setvcpuaffinity} domctl-op, tracking its calling
chain, the following function shall be wrapped too:
- vcpu_set_soft_affinity
Signed-off-by: Penny Zheng <Penny.Zheng@xxxxxxx>
---
xen/common/sched/core.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/xen/common/sched/core.c b/xen/common/sched/core.c
index 2ab4313517..14f27fe70f 100644
--- a/xen/common/sched/core.c
+++ b/xen/common/sched/core.c
@@ -1402,10 +1402,12 @@ int vcpu_set_hard_affinity(struct vcpu *v, const
cpumask_t *affinity)
return vcpu_set_affinity(v, affinity, v->sched_unit->cpu_hard_affinity);
}
+#ifdef CONFIG_DOMCTL
static int vcpu_set_soft_affinity(struct vcpu *v, const cpumask_t *affinity)
{
return vcpu_set_affinity(v, affinity, v->sched_unit->cpu_soft_affinity);
}
+#endif /* CONFIG_DOMCTL */
/* Block the currently-executing domain until a pertinent event occurs. */
void vcpu_block(void)
@@ -1693,6 +1695,7 @@ int vcpuaffinity_params_invalid(const struct
xen_domctl_vcpuaffinity *vcpuaff)
guest_handle_is_null(vcpuaff->cpumap_soft.bitmap));
}
+#ifdef CONFIG_DOMCTL
int vcpu_affinity_domctl(struct domain *d, uint32_t cmd,
struct xen_domctl_vcpuaffinity *vcpuaff)
{
@@ -1802,6 +1805,7 @@ int vcpu_affinity_domctl(struct domain *d, uint32_t cmd,
return ret;
}
+#endif /* CONFIG_DOMCTL */
bool alloc_affinity_masks(struct affinity_masks *affinity)
{
--
2.34.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |