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

RE: [Xen-devel] [Q] Allow rdpmc access from DOM-0

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-devel] [Q] Allow rdpmc access from DOM-0
From: "Mohapatra, Hemant" <Hemant.Mohapatra@xxxxxxx>
Date: Thu, 6 Sep 2007 10:23:53 -0500
Delivery-date: Thu, 06 Sep 2007 08:25:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C305D44E.1533F%Keir.Fraser@xxxxxxxxxxxx>
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>
References: <9BCA02B0979C2A429C5965B8AE292698864888@xxxxxxxxxxxxxxxxx> <C305D44E.1533F%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcfwVQH+9J//LtPURtKs0pYAbvrHOQANtvuAAAKnO7kAAH/EYA==
Thread-topic: [Xen-devel] [Q] Allow rdpmc access from DOM-0
>  From: Keir Fraser [mailto:Keir.Fraser@xxxxxxxxxxxx]
>  Subject: Re: [Xen-devel] [Q] Allow rdpmc access from DOM-0
>  
>  RDPMC is not much use unless you can also set up the
performance-counting
>  MSRs in advance to count appropriate things. Since we do not
virtualise
>  these MSRs, providing access to RDPMC is pointless. You should look
at
>  xenoprof for example usage of performance counter infrastructure in
Xen.


My bad; I should've mentioned this before: I already have allowed access
to the appropriate MSRs and can read/write to them using rdmsr/wrmsr on
DOM-0. It was easy to add them to the white-list since the opcode was
already being trapped and virtualized and it was only a matter of adding
access to the MSRs I needed specifically. 

I have worked with Xenoprof but I am essentially trying to port a few
applications to Xen here and trying to re-write them in conjunction with
Xenoprof seems like the round-about way of doing it. I am trying to
follow the route of how rdmsr/wrmsr were virtualized so that I can do
the same with rdpmc. I see no harm in this since RDMSR is already
allowed from Dom0.

Thanks,
Hemant



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