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/
Home Products Support Community News


[Xen-devel] Question to xenoprof and user/kernel mode

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Question to xenoprof and user/kernel mode
From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 29 Apr 2008 16:37:55 +0200
Cc: joserenato.santos@xxxxxx
Delivery-date: Tue, 29 Apr 2008 07:38:21 -0700
Domainkey-signature: s=s768; d=fujitsu-siemens.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:Received:Received: From:To:Subject:Date:User-Agent:Cc:MIME-Version: Content-Type:Content-Transfer-Encoding: Content-Disposition:Message-Id; b=zlfjdIuIxvV5IoEIdvOv7NBeoxyIrmkckSzbrsu2gMTUNrO8WistkQgy rlHdFJUUHuh2LOC2NMOROzdk6kxcjBWjVTvUDHXnac5RCJXF2PgX/Vjo4 MwVIaWrkC50GiqH;
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
User-agent: KMail/1.9.6 (enterprise 20070904.708012)
Hi list,

I looked at the xenoprof, did some sampling and got results I don't fully 
First I tried to sample dom0 user events with
--event CPU_CLK_UNHALTED:100000:0:0:1
Here I saw samples from dom0 user and dom0 kernel. This is OK for me because 
dom0 kernel runs with cpl 3 too. But there were some samples from the 
hypervisor too (symbol validate_gl3e).

Then I tried to sample only do0 kernel events with
--event CPU_CLK_UNHALTED:100000:0:1:0
what means sampling only in cpl 0. But I got samples from dom0-kernel, 
hypervisor and few samples from the user land in dom0 too.

The conclusion is that it seems that sometimes user runs in cpl 0 and 
sometimes hypervisor in cpl > 0.
As I understand from the spec a vmexit leads always to cpl 0. So hypervisor 
code should never run in cpl > 0?
But is there a possibility where user land code runs in cpl 0 in few cases?

Please can anybody give me a light on this behavior or a link in doc or 


Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Question to xenoprof and user/kernel mode, Dietmar Hahn <=