WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] xenalyze: Fix cr3_switch not to access hvm struct be

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] xenalyze: Fix cr3_switch not to access hvm struct before it's initialized
From: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
Date: Wed, 02 Mar 2011 20:12:52 +0000
Cc: george.dunlap@xxxxxxxxxxxxx
Delivery-date: Wed, 02 Mar 2011 12:13:01 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.4.3
# HG changeset patch
# User George Dunlap <george.dunlap@xxxxxxxxxxxxx>
# 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 <george.dunlap@xxxxxxxxxxxxx>

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;

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] xenalyze: Fix cr3_switch not to access hvm struct before it's initialized, George Dunlap <=