KVM: SVM: Prepare for new bit definition in lbr_ctl
authorJanakarajan Natarajan <Janakarajan.Natarajan@amd.com>
Thu, 6 Jul 2017 20:50:44 +0000 (15:50 -0500)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 12 Jul 2017 20:38:28 +0000 (22:38 +0200)
commit8a77e90966e92759f94087f9845d413290be0d70
tree17bb4aae92b4ebf1aa096e25c7df0d25d70cc252
parentb742c1e6e79ddf4192d76336da2407c65ca7242f
KVM: SVM: Prepare for new bit definition in lbr_ctl

The lbr_ctl variable in the vmcb control area is used to enable or
disable Last Branch Record (LBR) virtualization. However, this is to be
done using only bit 0 of the variable. To correct this and to prepare
for a new feature, change the current usage to work only on a particular
bit.

Signed-off-by: Janakarajan Natarajan <Janakarajan.Natarajan@amd.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/include/asm/svm.h
arch/x86/kvm/svm.c