]> git.karo-electronics.de Git - linux-beck.git/commit
KVM: SVM: Use svm_msrpm_offset in nested_svm_exit_handled_msr
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 1 Mar 2010 14:34:38 +0000 (15:34 +0100)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:15:13 +0000 (12:15 +0300)
commit0d6b35378e80c555e20ca3aa3d3cc609b403cbb6
tree1a6ca5829b5a9073efc4774d6c1bc7c734682449
parent323c3d809b8bd42d6d557c734d4bdfdefa110445
KVM: SVM: Use svm_msrpm_offset in nested_svm_exit_handled_msr

There is a generic function now to calculate msrpm offsets.
Use that function in nested_svm_exit_handled_msr() remove
the duplicate logic (which had a bug anyway).

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/svm.c