diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-09-13 09:01:29 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-09-13 09:20:55 -0400 |
commit | ad53e35ae529e65cbd8e75a1e66fdcd10275c8d9 (patch) | |
tree | 89638c031980400e2a7927e4b77afd9b3d6b6a7a /virt | |
parent | 6f90f1d1d2d853b2745afdd83800b170996fab50 (diff) | |
parent | aad9e5ba243336d2b133e7fa9aace1a51d6fdae6 (diff) |
Merge branch 'kvm-ppc-next' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc into HEAD
Paul Mackerras writes:
The highlights are:
* Reduced latency for interrupts from PCI pass-through devices, from
Suresh Warrier and me.
* Halt-polling implementation from Suraj Jitindar Singh.
* 64-bit VCPU statistics, also from Suraj.
* Various other minor fixes and improvements.
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/kvm_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index b3fa12ce1166..a00f8e4045cf 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -3619,7 +3619,7 @@ static int vm_stat_get_per_vm(void *data, u64 *val) | |||
3619 | { | 3619 | { |
3620 | struct kvm_stat_data *stat_data = (struct kvm_stat_data *)data; | 3620 | struct kvm_stat_data *stat_data = (struct kvm_stat_data *)data; |
3621 | 3621 | ||
3622 | *val = *(u32 *)((void *)stat_data->kvm + stat_data->offset); | 3622 | *val = *(ulong *)((void *)stat_data->kvm + stat_data->offset); |
3623 | 3623 | ||
3624 | return 0; | 3624 | return 0; |
3625 | } | 3625 | } |
@@ -3649,7 +3649,7 @@ static int vcpu_stat_get_per_vm(void *data, u64 *val) | |||
3649 | *val = 0; | 3649 | *val = 0; |
3650 | 3650 | ||
3651 | kvm_for_each_vcpu(i, vcpu, stat_data->kvm) | 3651 | kvm_for_each_vcpu(i, vcpu, stat_data->kvm) |
3652 | *val += *(u32 *)((void *)vcpu + stat_data->offset); | 3652 | *val += *(u64 *)((void *)vcpu + stat_data->offset); |
3653 | 3653 | ||
3654 | return 0; | 3654 | return 0; |
3655 | } | 3655 | } |