KVM: SVM: Move msrpm offset calculation to seperate function
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 1 Mar 2010 14:34:35 +0000 (15:34 +0100)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:15:08 +0000 (12:15 +0300)
commit455716fa941ec7a03c04bd54e1b906698171b15c
tree0bd3cef05eaf333e6c9d9d51d369bb3fcdac723c
parentd24778265ac9b2602889a5e99c6e7ba777a236df
KVM: SVM: Move msrpm offset calculation to seperate function

The algorithm to find the offset in the msrpm for a given
msr is needed at other places too. Move that logic to its
own function.

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