From: Jan Beulich Date: Fri, 12 Jun 2015 10:02:12 +0000 (+0200) Subject: domctl: prefer is_..._domain() over is_..._vcpu() X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~3105 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ee78176f98f60ad6de32faabba46d863b75ceb28;p=xen.git domctl: prefer is_..._domain() over is_..._vcpu() ... when the domain pointer is already available. Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper Acked-by: Ian Campbell --- diff --git a/xen/common/domctl.c b/xen/common/domctl.c index e571e762bc..ce517a76be 100644 --- a/xen/common/domctl.c +++ b/xen/common/domctl.c @@ -495,7 +495,7 @@ long do_domctl(XEN_GUEST_HANDLE_PARAM(xen_domctl_t) u_domctl) break; #ifdef CONFIG_COMPAT - if ( !is_pv_32on64_vcpu(v) ) + if ( !is_pv_32on64_domain(d) ) ret = copy_from_guest(c.nat, op->u.vcpucontext.ctxt, 1); else ret = copy_from_guest(c.cmp, @@ -901,7 +901,7 @@ long do_domctl(XEN_GUEST_HANDLE_PARAM(xen_domctl_t) u_domctl) vcpu_unpause(v); #ifdef CONFIG_COMPAT - if ( !is_pv_32on64_vcpu(v) ) + if ( !is_pv_32on64_domain(d) ) ret = copy_to_guest(op->u.vcpucontext.ctxt, c.nat, 1); else ret = copy_to_guest(guest_handle_cast(op->u.vcpucontext.ctxt,