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

[Xen-devel] [PATCH 0 of 2] vpmu:preparations for using BTS on intel cpus


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>
  • Date: Thu, 19 Jan 2012 14:53:58 +0100
  • Cc: Wei Wang <wei.wang2@xxxxxxx>, Haitao Shan <haitao.shan@xxxxxxxxx>
  • Delivery-date: Thu, 19 Jan 2012 13:54:31 +0000
  • Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:From:To:Cc:Subject:Date:Message-ID: User-Agent:MIME-Version:Content-Transfer-Encoding: Content-Type; b=oMokRXRiYQNsNhwl4HOzLwYihuWrj0U5sSQzNwE9AE5rrNj0VpR0PJTt fNbcq2abRBsYwq6dx9gZabTEN6lC7kXxSuBBYeU7LJN/vy3mZJ9px9ixu Y11CfeAMNNqgRelAtkyiqJxVJI0l4mFULBhpbGL/0ebbO7BPjg2erBLQM uF5Caz72DxAh9XeSenALOKOLVA9qqGd86Mxtl/UV1eK3zbKBJ1Z7AdUoK FK88WsmzgIynPs5l/7tORp7o2WBt+;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi,

These 2 patches extends the vpmu implementation mainly for Intel cpus.
The aim is to get a base for using BTS (branch trace store) and possibly PEBS
(precise event-based sampling) facilities of newer Intel cpus in
HVM domUs following in later patches.

First the initialisiations of the PMU of the different architectures
are moved to the special architecture directories.

Second a new function to handle specical PMU cpuid flags is added.
The aim is, to let access the PMU cpuid flags via libxc-cpuid and
switch these of depending on the boot variable opt_vpmu_enabled and
the existing virtualisation of the feature.

Thanks,
Dietmar.


 xen/arch/x86/hvm/svm/vpmu.c       |  26 ++++++++++++++++++++++
 xen/arch/x86/hvm/vmx/vpmu_core2.c |  31 ++++++++++++++++++++++++++
 xen/arch/x86/hvm/vpmu.c           |  45 +++++---------------------------------
 xen/include/asm-x86/hvm/vpmu.h    |   6 +++-
 tools/libxc/xc_cpuid_x86.c        |   1 +
 xen/arch/x86/hvm/vmx/vmx.c        |   2 +
 xen/arch/x86/hvm/vmx/vpmu_core2.c |  38 +++++++++++++++++++++++++++++++-
 xen/arch/x86/hvm/vpmu.c           |  25 +++++++++++++++------
 xen/include/asm-x86/hvm/vpmu.h    |   6 +++++
 9 files changed, 130 insertions(+), 50 deletions(-)


-- 
Company details: http://ts.fujitsu.com/imprint.html

_______________________________________________
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®.