KVM: SVM: Use get_host_vmcb function in svm_get_msr for TSC
authorJoerg Roedel <joerg.roedel@amd.com>
Tue, 30 Nov 2010 17:04:01 +0000 (18:04 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:30:17 +0000 (11:30 +0200)
commit4cc703100b1fd97c71804e2fa5c9c377c5b37dc5
tree3fa1e619f50f44fb4e6ba27fc626c1ebbad1407b
parent8a05a1b8693371547bbb2d06f842595cebd16687
KVM: SVM: Use get_host_vmcb function in svm_get_msr for TSC

This patch replaces the open-coded vmcb-selection for the
TSC calculation with the new get_host_vmcb helper function
introduced in this patchset.

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