aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Iooss <nicolas.iooss_linux@m4x.org>2015-06-29 06:39:23 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2015-07-03 12:55:19 -0400
commitb0996ae48285364710bce812e70ce67771ea6ef7 (patch)
tree3434dc43f136fb5d6295c550fd6f7a076b3979be
parent431dae778aea4eed31bd12e5ee82edc571cd4d70 (diff)
KVM: x86: remove data variable from kvm_get_msr_common
Commit 609e36d372ad ("KVM: x86: pass host_initiated to functions that read MSRs") modified kvm_get_msr_common function to use msr_info->data instead of data but missed one occurrence. Replace it and remove the unused local variable. Fixes: 609e36d372ad ("KVM: x86: pass host_initiated to functions that read MSRs") Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--arch/x86/kvm/x86.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index ac165c2fb8e5..bbaf44e8f0d3 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -2379,8 +2379,6 @@ static int get_msr_hyperv(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata)
2379 2379
2380int kvm_get_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info) 2380int kvm_get_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
2381{ 2381{
2382 u64 data;
2383
2384 switch (msr_info->index) { 2382 switch (msr_info->index) {
2385 case MSR_IA32_PLATFORM_ID: 2383 case MSR_IA32_PLATFORM_ID:
2386 case MSR_IA32_EBL_CR_POWERON: 2384 case MSR_IA32_EBL_CR_POWERON:
@@ -2453,7 +2451,7 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
2453 /* TSC increment by tick */ 2451 /* TSC increment by tick */
2454 msr_info->data = 1000ULL; 2452 msr_info->data = 1000ULL;
2455 /* CPU multiplier */ 2453 /* CPU multiplier */
2456 data |= (((uint64_t)4ULL) << 40); 2454 msr_info->data |= (((uint64_t)4ULL) << 40);
2457 break; 2455 break;
2458 case MSR_EFER: 2456 case MSR_EFER:
2459 msr_info->data = vcpu->arch.efer; 2457 msr_info->data = vcpu->arch.efer;