aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/include/asm/kvm_ppc.h2
-rw-r--r--arch/powerpc/kvm/book3s_hv.c4
-rw-r--r--arch/powerpc/kvm/book3s_pr.c2
-rw-r--r--arch/powerpc/kvm/booke.c2
-rw-r--r--arch/powerpc/kvm/powerpc.c13
5 files changed, 11 insertions, 12 deletions
diff --git a/arch/powerpc/include/asm/kvm_ppc.h b/arch/powerpc/include/asm/kvm_ppc.h
index 44a657adf416..44fa9ad1d62c 100644
--- a/arch/powerpc/include/asm/kvm_ppc.h
+++ b/arch/powerpc/include/asm/kvm_ppc.h
@@ -152,7 +152,7 @@ extern int kvmppc_core_prepare_memory_region(struct kvm *kvm,
152 struct kvm_userspace_memory_region *mem); 152 struct kvm_userspace_memory_region *mem);
153extern void kvmppc_core_commit_memory_region(struct kvm *kvm, 153extern void kvmppc_core_commit_memory_region(struct kvm *kvm,
154 struct kvm_userspace_memory_region *mem, 154 struct kvm_userspace_memory_region *mem,
155 struct kvm_memory_slot old); 155 const struct kvm_memory_slot *old);
156extern int kvm_vm_ioctl_get_smmu_info(struct kvm *kvm, 156extern int kvm_vm_ioctl_get_smmu_info(struct kvm *kvm,
157 struct kvm_ppc_smmu_info *info); 157 struct kvm_ppc_smmu_info *info);
158extern void kvmppc_core_flush_memslot(struct kvm *kvm, 158extern void kvmppc_core_flush_memslot(struct kvm *kvm,
diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c
index 80dcc53a1aba..1e521baf9a7d 100644
--- a/arch/powerpc/kvm/book3s_hv.c
+++ b/arch/powerpc/kvm/book3s_hv.c
@@ -1639,12 +1639,12 @@ int kvmppc_core_prepare_memory_region(struct kvm *kvm,
1639 1639
1640void kvmppc_core_commit_memory_region(struct kvm *kvm, 1640void kvmppc_core_commit_memory_region(struct kvm *kvm,
1641 struct kvm_userspace_memory_region *mem, 1641 struct kvm_userspace_memory_region *mem,
1642 struct kvm_memory_slot old) 1642 const struct kvm_memory_slot *old)
1643{ 1643{
1644 unsigned long npages = mem->memory_size >> PAGE_SHIFT; 1644 unsigned long npages = mem->memory_size >> PAGE_SHIFT;
1645 struct kvm_memory_slot *memslot; 1645 struct kvm_memory_slot *memslot;
1646 1646
1647 if (npages && old.npages) { 1647 if (npages && old->npages) {
1648 /* 1648 /*
1649 * If modifying a memslot, reset all the rmap dirty bits. 1649 * If modifying a memslot, reset all the rmap dirty bits.
1650 * If this is a new memslot, we don't need to do anything 1650 * If this is a new memslot, we don't need to do anything
diff --git a/arch/powerpc/kvm/book3s_pr.c b/arch/powerpc/kvm/book3s_pr.c
index 5e93438afb06..286e23e6b92d 100644
--- a/arch/powerpc/kvm/book3s_pr.c
+++ b/arch/powerpc/kvm/book3s_pr.c
@@ -1283,7 +1283,7 @@ int kvmppc_core_prepare_memory_region(struct kvm *kvm,
1283 1283
1284void kvmppc_core_commit_memory_region(struct kvm *kvm, 1284void kvmppc_core_commit_memory_region(struct kvm *kvm,
1285 struct kvm_userspace_memory_region *mem, 1285 struct kvm_userspace_memory_region *mem,
1286 struct kvm_memory_slot old) 1286 const struct kvm_memory_slot *old)
1287{ 1287{
1288} 1288}
1289 1289
diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c
index 020923e43134..eb88fa621073 100644
--- a/arch/powerpc/kvm/booke.c
+++ b/arch/powerpc/kvm/booke.c
@@ -1531,7 +1531,7 @@ int kvmppc_core_prepare_memory_region(struct kvm *kvm,
1531 1531
1532void kvmppc_core_commit_memory_region(struct kvm *kvm, 1532void kvmppc_core_commit_memory_region(struct kvm *kvm,
1533 struct kvm_userspace_memory_region *mem, 1533 struct kvm_userspace_memory_region *mem,
1534 struct kvm_memory_slot old) 1534 const struct kvm_memory_slot *old)
1535{ 1535{
1536} 1536}
1537 1537
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c
index 934413cd3a1b..7b5d4d20cdc5 100644
--- a/arch/powerpc/kvm/powerpc.c
+++ b/arch/powerpc/kvm/powerpc.c
@@ -411,18 +411,17 @@ int kvm_arch_create_memslot(struct kvm_memory_slot *slot, unsigned long npages)
411} 411}
412 412
413int kvm_arch_prepare_memory_region(struct kvm *kvm, 413int kvm_arch_prepare_memory_region(struct kvm *kvm,
414 struct kvm_memory_slot *memslot, 414 struct kvm_memory_slot *memslot,
415 struct kvm_memory_slot old, 415 struct kvm_userspace_memory_region *mem,
416 struct kvm_userspace_memory_region *mem, 416 enum kvm_mr_change change)
417 bool user_alloc)
418{ 417{
419 return kvmppc_core_prepare_memory_region(kvm, memslot, mem); 418 return kvmppc_core_prepare_memory_region(kvm, memslot, mem);
420} 419}
421 420
422void kvm_arch_commit_memory_region(struct kvm *kvm, 421void kvm_arch_commit_memory_region(struct kvm *kvm,
423 struct kvm_userspace_memory_region *mem, 422 struct kvm_userspace_memory_region *mem,
424 struct kvm_memory_slot old, 423 const struct kvm_memory_slot *old,
425 bool user_alloc) 424 enum kvm_mr_change change)
426{ 425{
427 kvmppc_core_commit_memory_region(kvm, mem, old); 426 kvmppc_core_commit_memory_region(kvm, mem, old);
428} 427}