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

[Xen-devel] [PATCH 0 of 2] vpmu: Add Intel BTS functionality


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>
  • Date: Mon, 13 Feb 2012 14:01:28 +0100
  • Cc: "Shan, Haitao" <haitao.shan@xxxxxxxxx>
  • Delivery-date: Mon, 13 Feb 2012 13:03:02 +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=iKF6mPF1FqjhLGMcGk/ZiOiQpk2aPcOzUYeSbnpf/9iZxPs9PCG2Xsk8 zBIz53U/Swv6SO273WX4dB7jwb70cNswVZ45HgoZEgekMXeCCYRtVhgxX NqH6/IzxooYBIOf+I26k7Oz0iYjvU5dK+ELNQ2KRtxw+5qFvhK/PJV7YB oGCVsZFrJGqeSYPD6x0M6sSuoD6+GiQpk6rL4HBrlfDbucG51yzfPmkcO 41zbFpDaE5qdRO6l+8RtIH23DmvmI;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi,

these 2 patches add BTS (Branch Trace Store) functionality of Intel Core2
cpus to the vpmu.

This feature gets switched on if the cpu is generally supported from the vpmu
and if the cpu supports the DS (Debug Store) bit in the cpuid.eax[0x1].edx[21]
and if BTS is supported in the MSR_IA32_MISC_ENABLE.
If the cpu supports CPL-qualified BTS in the cpuid, this is also supported
here.

The interface of the struct arch_vpmu_ops was extended with a new function
pointer do_cpuid. The function gets called in vmx_cpuid_intercept() allowing
the vpmu handling to switch on the DS bit in the guest. If this is not
wanted the user must configure this bit in the guest configuration file with
the command "cpuid=..."

xen/arch/x86/hvm/vmx/vmx.c               |    2 +
 xen/arch/x86/hvm/vmx/vpmu_core2.c        |    7 +
 xen/arch/x86/hvm/vpmu.c                  |   10 +
 xen/include/asm-x86/hvm/vpmu.h           |    5 +
 xen/arch/x86/hvm/vmx/vmx.c               |   12 +-
 xen/arch/x86/hvm/vmx/vpmu_core2.c        |  156 +++++++++++++++++++++++++-----
 xen/include/asm-x86/hvm/vmx/vpmu_core2.h |    1 +
 xen/include/asm-x86/hvm/vpmu.h           |    3 +
 xen/include/asm-x86/msr-index.h          |    5 +
 9 files changed, 172 insertions(+), 29 deletions(-)

Thanks.

Dietmar.

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