diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2015-04-07 12:09:20 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-04-07 12:09:20 -0400 |
commit | bf0fb67cf957fc8ecfaaa2819b7d6a0f795e2ef2 (patch) | |
tree | 22697f7deae781dbbacd2e19a5030df2e8551e6a /arch/powerpc | |
parent | 8999602d08a804ae9cb271fdd5378f910058112d (diff) | |
parent | d44758c0dfc5993a4b9952935a7eae4c91ebb6b4 (diff) |
Merge tag 'kvm-arm-for-4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into 'kvm-next'
KVM/ARM changes for v4.1:
- fixes for live migration
- irqfd support
- kvm-io-bus & vgic rework to enable ioeventfd
- page ageing for stage-2 translation
- various cleanups
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kvm/mpic.c | 12 | ||||
-rw-r--r-- | arch/powerpc/kvm/powerpc.c | 4 |
2 files changed, 9 insertions, 7 deletions
diff --git a/arch/powerpc/kvm/mpic.c b/arch/powerpc/kvm/mpic.c index 39b3a8f816f2..4703fadd2737 100644 --- a/arch/powerpc/kvm/mpic.c +++ b/arch/powerpc/kvm/mpic.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include <asm/kvm_para.h> | 34 | #include <asm/kvm_para.h> |
35 | #include <asm/kvm_host.h> | 35 | #include <asm/kvm_host.h> |
36 | #include <asm/kvm_ppc.h> | 36 | #include <asm/kvm_ppc.h> |
37 | #include "iodev.h" | 37 | #include <kvm/iodev.h> |
38 | 38 | ||
39 | #define MAX_CPU 32 | 39 | #define MAX_CPU 32 |
40 | #define MAX_SRC 256 | 40 | #define MAX_SRC 256 |
@@ -1374,8 +1374,9 @@ static int kvm_mpic_write_internal(struct openpic *opp, gpa_t addr, u32 val) | |||
1374 | return -ENXIO; | 1374 | return -ENXIO; |
1375 | } | 1375 | } |
1376 | 1376 | ||
1377 | static int kvm_mpic_read(struct kvm_io_device *this, gpa_t addr, | 1377 | static int kvm_mpic_read(struct kvm_vcpu *vcpu, |
1378 | int len, void *ptr) | 1378 | struct kvm_io_device *this, |
1379 | gpa_t addr, int len, void *ptr) | ||
1379 | { | 1380 | { |
1380 | struct openpic *opp = container_of(this, struct openpic, mmio); | 1381 | struct openpic *opp = container_of(this, struct openpic, mmio); |
1381 | int ret; | 1382 | int ret; |
@@ -1415,8 +1416,9 @@ static int kvm_mpic_read(struct kvm_io_device *this, gpa_t addr, | |||
1415 | return ret; | 1416 | return ret; |
1416 | } | 1417 | } |
1417 | 1418 | ||
1418 | static int kvm_mpic_write(struct kvm_io_device *this, gpa_t addr, | 1419 | static int kvm_mpic_write(struct kvm_vcpu *vcpu, |
1419 | int len, const void *ptr) | 1420 | struct kvm_io_device *this, |
1421 | gpa_t addr, int len, const void *ptr) | ||
1420 | { | 1422 | { |
1421 | struct openpic *opp = container_of(this, struct openpic, mmio); | 1423 | struct openpic *opp = container_of(this, struct openpic, mmio); |
1422 | int ret; | 1424 | int ret; |
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c index 27c0face86f4..24bfe401373e 100644 --- a/arch/powerpc/kvm/powerpc.c +++ b/arch/powerpc/kvm/powerpc.c | |||
@@ -807,7 +807,7 @@ int kvmppc_handle_load(struct kvm_run *run, struct kvm_vcpu *vcpu, | |||
807 | 807 | ||
808 | idx = srcu_read_lock(&vcpu->kvm->srcu); | 808 | idx = srcu_read_lock(&vcpu->kvm->srcu); |
809 | 809 | ||
810 | ret = kvm_io_bus_read(vcpu->kvm, KVM_MMIO_BUS, run->mmio.phys_addr, | 810 | ret = kvm_io_bus_read(vcpu, KVM_MMIO_BUS, run->mmio.phys_addr, |
811 | bytes, &run->mmio.data); | 811 | bytes, &run->mmio.data); |
812 | 812 | ||
813 | srcu_read_unlock(&vcpu->kvm->srcu, idx); | 813 | srcu_read_unlock(&vcpu->kvm->srcu, idx); |
@@ -880,7 +880,7 @@ int kvmppc_handle_store(struct kvm_run *run, struct kvm_vcpu *vcpu, | |||
880 | 880 | ||
881 | idx = srcu_read_lock(&vcpu->kvm->srcu); | 881 | idx = srcu_read_lock(&vcpu->kvm->srcu); |
882 | 882 | ||
883 | ret = kvm_io_bus_write(vcpu->kvm, KVM_MMIO_BUS, run->mmio.phys_addr, | 883 | ret = kvm_io_bus_write(vcpu, KVM_MMIO_BUS, run->mmio.phys_addr, |
884 | bytes, &run->mmio.data); | 884 | bytes, &run->mmio.data); |
885 | 885 | ||
886 | srcu_read_unlock(&vcpu->kvm->srcu, idx); | 886 | srcu_read_unlock(&vcpu->kvm->srcu, idx); |