[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • 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;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi list,

I looked at the xenoprof, did some sampling and got results I don't fully 
understand.
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 
source!
Thanks.

Dietmar.

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.