From: Wei Liu Subject: Re: [PATCH v3 01/19] xen: dump vNUMA information with debug key "u" Date: Tue, 13 Jan 2015 16:45:20 +0000 Message-ID: <20150113164520.GR4226@zion.uk.xensource.com> References: <1421151107-20842-1-git-send-email-wei.liu2@citrix.com> <1421151107-20842-2-git-send-email-wei.liu2@citrix.com> <54B558190200007800054838@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <54B558190200007800054838@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: dario.faggioli@citrix.com, Wei Liu , Elena Ufimsteva , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, Jan 13, 2015 at 04:38:33PM +0000, Jan Beulich wrote: > >>> On 13.01.15 at 13:11, wrote: > > @@ -408,6 +413,49 @@ static void dump_numa(unsigned char key) > > > > for_each_online_node ( i ) > > printk(" Node %u: %u\n", i, page_num_node[i]); > > + > > + if ( !d->vnuma ) > > + continue; > > + > > + vnuma = d->vnuma; > > I'm sorry for noticing this only now, but don't you need to try to > acquire d->vnuma_rwlock for reading, and skip any printing if > the acquire attempt fails, to avoid a XEN_DOMCTL_setvnumainfo > invocation to make the information go away under your feet? > I will fix this. Wei. > Jan