x86: Add tests for Guest Last Branch Recording (LBR)
This unit-test is intended to test the KVM's support for the Last Branch Recording (LBR) which is a performance monitor unit (PMU) feature on Intel processors. If the LBR bit is set to 1 in the DEBUGCTLMSR, the processor will record a running trace of the most recent branches guest taken in the LBR entries for guest to read. This is a basic check that looks for the MSR LBR (via #GP check), does some branches, and checks that the FROM_IP/TO_IP are good. To run this test, use the QEMU option "-cpu host,migratable=no". Signed-off-by:Like Xu <like.xu@linux.intel.com> Message-Id: <20210201045751.243231-1-like.xu@linux.intel.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Loading
Please register or sign in to comment