From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH v3] xen/common: Properly reference count DOMCTL_{, un}pausedomain hypercalls Date: Wed, 2 Jul 2014 16:41:35 +0100 Message-ID: <53B4282F.9050105@citrix.com> References: <1404313416-25825-1-git-send-email-andrew.cooper3@citrix.com> <53B44167020000780001FAC7@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53B44167020000780001FAC7@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Keir Fraser , Tim Deegan , Ian Jackson , Ian Campbell , Xen-devel List-Id: xen-devel@lists.xenproject.org On 02/07/14 16:29, Jan Beulich wrote: >>>> On 02.07.14 at 17:03, wrote: >> --- a/xen/include/xen/sched.h >> +++ b/xen/include/xen/sched.h >> @@ -366,7 +366,7 @@ struct domain >> /* Is this guest dying (i.e., a zombie)? */ >> enum { DOMDYING_alive, DOMDYING_dying, DOMDYING_dead } is_dying; >> /* Domain is paused by controller software? */ >> - bool_t is_paused_by_controller; >> + atomic_t controller_pause_count; >> /* Domain's VCPUs are pinned 1:1 to physical CPUs? */ >> bool_t is_pinned; >> > Now why did you leave this be an atomic_t, sitting between two > bool_t-s? > > Jan > It is not sitting between two bool_t's. It is sitting next to an enum which has the same natural width and alignment. Given the other holes in this area, moving it elsewhere wouldn't affect the structure size. ~Andrew