From: "Jan Beulich" Subject: Re: [PATCH v3 01/19] xen: dump vNUMA information with debug key "u" Date: Tue, 13 Jan 2015 16:38:33 +0000 Message-ID: <54B558190200007800054838@mail.emea.novell.com> References: <1421151107-20842-1-git-send-email-wei.liu2@citrix.com> <1421151107-20842-2-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1421151107-20842-2-git-send-email-wei.liu2@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: Wei Liu , Elena Ufimsteva Cc: dario.faggioli@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> 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? Jan