From: "Jan Beulich" Subject: Re: [PATCH v3] xen/common: Properly reference count DOMCTL_{, un}pausedomain hypercalls Date: Wed, 02 Jul 2014 17:06:25 +0100 Message-ID: <53B44A21020000780001FB88@mail.emea.novell.com> References: <1404313416-25825-1-git-send-email-andrew.cooper3@citrix.com> <53B44167020000780001FAC7@mail.emea.novell.com> <53B4282F.9050105@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53B4282F.9050105@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Keir Fraser , Tim Deegan , Ian Jackson , Ian Campbell , Xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 02.07.14 at 17:41, wrote: > 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? > > It is not sitting between two bool_t's. It is sitting next to an enum > which has the same natural width and alignment. Oh, right, the first one is being replaced. But you didn't say why it need to be an atomic_t, while in v1 it was a plain scalar. Jan