]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: enable LBR virtualization
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 13 Feb 2008 17:58:47 +0000 (18:58 +0100)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Apr 2008 08:53:21 +0000 (11:53 +0300)
commit897fca831e200962daa4e30df2f5f2e56eaf0bdd
treef1f321963c620d26172f8fd0878374d9598c0ad0
parent85c41163fdfa9123495aa7b9ab816637f535460e
KVM: SVM: enable LBR virtualization

This patch implements the Last Branch Record Virtualization (LBRV) feature of
the AMD Barcelona and Phenom processors into the kvm-amd module. It will only
be enabled if the guest enables last branch recording in the DEBUG_CTL MSR. So
there is no increased world switch overhead when the guest doesn't use these
MSRs.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Markus Rechberger <markus.rechberger@amd.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/svm.c