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)
commit24e09cbf480a72f9c952af4ca77b159503dca44b
treef1f321963c620d26172f8fd0878374d9598c0ad0
parentf65c229c3e7743c6654c16b9ec6248466b5eef21
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