From: Abhinav Srivastava <abhinavs_iitkgp@yahoo.co.in>
To: xen-devel@lists.xensource.com
Subject: Last Branch Record (LBR) in Xen
Date: Thu, 25 Jun 2009 22:27:15 +0530 (IST) [thread overview]
Message-ID: <342778.78582.qm@web7904.mail.in.yahoo.com> (raw)
Hi there,
I am trying to achieve Last Branch Recording (LBR) functionality on Intel Core 2 Quad processor from Xen hypervisor. However, I could not get it working. I am using Xen-3.2.2 (which I agree is a bit old, however, there is not much change in the code related to this functionality in Xen-3.4).
I looked into the patch provided by Keir and Jan Beulich, and still I did not understand how to make it work. I got some success in creating single step on branch feature by setting bit 1 of GUEST_DEBUGCTL_MSR register. However, when I am trying to achieve LBR functionality (which requires reading LASTBRANCH_TO_IP and LASTBRANC_FROM_IP registers too), it is not working.
I must admit that by looking into the patch I got little bit confused. It would be really good if someone could tell me what are the steps required in the hypervisor to enable this feature. Since I want to control this feature from the hypervisor without doing anything inside guest, how should I approach to this problem.
Any help in this regard would be appreciated.
Thanks,
Abhinav
Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com
next reply other threads:[~2009-06-25 16:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-25 16:57 Abhinav Srivastava [this message]
2009-06-26 7:41 ` Last Branch Record (LBR) in Xen Jan Beulich
-- strict thread matches above, loose matches on Subject: below --
2009-06-26 13:50 Abhinav Srivastava
2009-06-26 14:01 ` Jan Beulich
2009-06-26 14:18 Abhinav Srivastava
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=342778.78582.qm@web7904.mail.in.yahoo.com \
--to=abhinavs_iitkgp@yahoo.co.in \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.