Skip to contentSkip to conversation

Last Branch Record (LBR) in Xen

DISCUSSION Abhinav Srivastava 1 participant 1 message Jun 26, 2009

lore
Share & tools
lore
#0 lore raw

Hi Jan,

I got it now. Thanks for the clarification. However, could you please give me some pointers or suggestions to code this thing in the hypervisor?

Thanks,
Abhinav

Quoted 30 lines · Jan Beulich

From: Jan Beulich <[email protected]>
Subject: Re: [Xen-devel] Last Branch Record (LBR) in Xen
To: "Abhinav Srivastava" <[email protected]>
Cc: [email protected]
Date: Friday, 26 June, 2009, 7:31 PM

Quoted 1 line
Quoted 1 line
Quoted 1 line

Abhinav Srivastava

<[email protected]>
26.06.09 15:50 >>>

Quoted 1 line

As far as I understand (please correct me if I am

wrong), you meant that HVM guests have to enable the LBR recording, and

Quoted 1 line

this action cannot be initiated/controlled by Xen. I

was thinking like other kind of actions, such as single stepping on instruction,

Quoted 1 line

single stepping on branch etc. that can be controlled

from the hypervisor and guests behave accordingly, the LBR feature can

Quoted 1 line

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

Quoted 1 line

inside HVM guests and can bypass the debugger.

Moreover, I assumed anything that a guest can do, can also be done from

Quoted 1 line

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.

Quoted 8 lines

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Cricket on your mind? Visit the ultimate cricket website. Enter http://cricket.yahoo.com