[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v2 14/26] xen/domctl: wrap arch-specific arch_get_info_guest() with CONFIG_MGMT_HYPERCALLS
Arch-specific function arch_get_info_guest() is responsible for XEN_DOMCTL_getvcpucontext domctl-op, and shall be wrapped with CONFIG_MGMT_HYPERCALLS Wrap XEN_DOMCTL_getvcpucontext-case transiently with CONFIG_MGMT_HYPERCALLS, and it will be removed when introducing CONFIG_MGMT_HYPERCALLS on the common/domctl.c in the last. Signed-off-by: Penny Zheng <Penny.Zheng@xxxxxxx> --- v1 -> v2: - adapt to changes of "unify DOMCTL to MGMT_HYPERCALLS" - wrap XEN_DOMCTL_getvcpucontext-case transiently --- xen/arch/arm/domctl.c | 2 ++ xen/arch/x86/domctl.c | 2 ++ xen/common/domctl.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/xen/arch/arm/domctl.c b/xen/arch/arm/domctl.c index ad914c915f..d3263e4d03 100644 --- a/xen/arch/arm/domctl.c +++ b/xen/arch/arm/domctl.c @@ -184,6 +184,7 @@ long arch_do_domctl(struct xen_domctl *domctl, struct domain *d, } } +#ifdef CONFIG_MGMT_HYPERCALLS void arch_get_info_guest(struct vcpu *v, vcpu_guest_context_u c) { struct vcpu_guest_context *ctxt = c.nat; @@ -199,6 +200,7 @@ void arch_get_info_guest(struct vcpu *v, vcpu_guest_context_u c) if ( !test_bit(_VPF_down, &v->pause_flags) ) ctxt->flags |= VGCF_online; } +#endif /* CONFIG_MGMT_HYPERCALLS */ /* * Local variables: diff --git a/xen/arch/x86/domctl.c b/xen/arch/x86/domctl.c index 6153e3c07e..ea5f5b20cf 100644 --- a/xen/arch/x86/domctl.c +++ b/xen/arch/x86/domctl.c @@ -1370,6 +1370,7 @@ long arch_do_domctl( return ret; } +#ifdef CONFIG_MGMT_HYPERCALLS #ifdef CONFIG_COMPAT #define xen_vcpu_guest_context vcpu_guest_context #define fpu_ctxt fpu_ctxt.x @@ -1562,6 +1563,7 @@ void arch_get_info_guest(struct vcpu *v, vcpu_guest_context_u c) c(vm_assist = d->vm_assist); #undef c } +#endif /* CONFIG_MGMT_HYPERCALLS */ /* * Local variables: diff --git a/xen/common/domctl.c b/xen/common/domctl.c index 6660f13e9e..6048a87826 100644 --- a/xen/common/domctl.c +++ b/xen/common/domctl.c @@ -538,6 +538,7 @@ long do_domctl(XEN_GUEST_HANDLE_PARAM(xen_domctl_t) u_domctl) copyback = 1; break; +#ifdef CONFIG_MGMT_HYPERCALLS case XEN_DOMCTL_getvcpucontext: { vcpu_guest_context_u c = { .nat = NULL }; @@ -586,6 +587,7 @@ long do_domctl(XEN_GUEST_HANDLE_PARAM(xen_domctl_t) u_domctl) xfree(c.nat); break; } +#endif /* CONFIG_MGMT_HYPERCALLS */ case XEN_DOMCTL_getvcpuinfo: { -- 2.34.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |