Software Archive
Read-only legacy content
17061 Discussions

LBR and Virtualization

Yoav_A_
Beginner
1,072 Views

I'm using LBR to trace guest execution, each time before vm_enter I overwrite the MSR_LASTBRANCH_(N-1)_FROM_IP/TO values with a magic value (0xdeadbabe) and execute a few instructions and read out the values. sometimes a record is skipped in the LBR and contains the magic value.
why would this ever happen? I've look at the errata for haswell and didn't see anything similar, and running a similar code on the host outputs a perfect sequential trace. could this be an hardware bug related to vmx?
Regards
Yoav

0 Kudos
1 Reply
Quoc-Thai_L_Intel
1,072 Views

You might want to check with open-source community to see how they would handle the issue that you are having. 

Here are some examples of Virtualization code:

-Thai

0 Kudos
Reply