From: "Jan Beulich" Subject: Re: Last Branch Record (LBR) in Xen Date: Fri, 26 Jun 2009 15:01:52 +0100 Message-ID: <4A44F0F00200007800007CF4@vpn.id2.novell.com> References: <89093.26435.qm@web7906.mail.in.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <89093.26435.qm@web7906.mail.in.yahoo.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Abhinav Srivastava Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> Abhinav Srivastava 26.06.09 15:50 >>> >As far as I understand (please correct me if I am wrong), you meant that = HVM guests have to enable the LBR recording, and >this action cannot be initiated/controlled by Xen. I was thinking like = other kind of actions, such as single stepping on instruction, >single stepping on branch etc. that can be controlled from the hypervisor = and guests behave accordingly, the LBR feature can >also be set/reset from the hypervisor. And, if that is not the case then = I think any malicious programs can turn off this feature >inside HVM guests and can bypass the debugger. Moreover, I assumed = anything that a guest can do, can also be done from >the hypervisor by setting guest MSR registers or bitmap from the = hypervisor. Oh, of course this can be done from the hypervisor, but that wasn't the = purpose of the patch. You'd have to code this for yourself. Jan