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][XENOPROFILE] Fix profiling of passive HVM guest on x

To: "Keir Fraser" <keir@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH][XENOPROFILE] Fix profiling of passive HVM guest on x86
From: "Santos, Jose Renato G" <joserenato.santos@xxxxxx>
Date: Mon, 18 Dec 2006 13:12:12 -0600
Delivery-date: Mon, 18 Dec 2006 11:12:05 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Accgn9ttmSjYrKKLSTKGCDqu3Y6wjQAFcUHgAIhekLA=
Thread-topic: [PATCH][XENOPROFILE] Fix profiling of passive HVM guest on x86
Keir

Xenoprof code is not working with hvm guests in x86 as reported 
by Ray Bryant from AMD. The following patch fix the
problem. Please apply, hopefully before 3.0.4 is released

Thanks

Renato

===========================================================
Signed-off-by: Jose Renato Santos <jsantos@xxxxxxxxxx>

diff -r 37141c3a3d39 xen/common/xenoprof.c
--- a/xen/common/xenoprof.c     Mon Dec 11 15:06:53 2006 +0000
+++ b/xen/common/xenoprof.c     Fri Dec 15 17:58:03 2006 -0800
@@ -384,7 +384,7 @@ static int add_passive_list(XEN_GUEST_HA
     d->xenoprof->domain_type = XENOPROF_DOMAIN_PASSIVE;
     passive.nbuf = d->xenoprof->nbuf;
     passive.bufsize = d->xenoprof->bufsize;
-    if ( !shadow_mode_translate(d) )
+    if ( !shadow_mode_translate(current->domain) )
         passive.buf_gmaddr = __pa(d->xenoprof->rawbuf);
     else
         xenoprof_shared_gmfn_with_guest(




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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH][XENOPROFILE] Fix profiling of passive HVM guest on x86, Santos, Jose Renato G <=