From: George Dunlap Subject: [PATCH] xenalyze: Fix cr3_switch not to access hvm struct before it's initialized Date: Wed, 02 Mar 2011 20:12:52 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: george.dunlap@eu.citrix.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User George Dunlap # Date 1299096700 0 # Node ID cf2f412606b355508f25d9781f7b5fc8bf02f389 # Parent 3448fc7df9669c29a1eb8427fd840bf7152973eb xenalyze: Fix cr3_switch not to access hvm struct before it's initialized Signed-off-by: George Dunlap diff -r 3448fc7df966 -r cf2f412606b3 xenalyze.c --- a/xenalyze.c Mon Jan 17 16:46:35 2011 +0000 +++ b/xenalyze.c Wed Mar 02 20:11:40 2011 +0000 @@ -3873,6 +3873,9 @@ unsigned long long now = P.now; unsigned long long gmfn = val >> 12; + if ( !h->init ) + return; + if(opt.with_cr3_enumeration) { if(v->cr3.data) { struct cr3_value_struct *cur = v->cr3.data;