diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2013-10-07 12:48:00 -0400 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-10-17 09:49:23 -0400 |
commit | 5587027ce9d59a57aecaa190be1c8e560aaff45d (patch) | |
tree | 866ecafdd194b2ce1669fa4ecfc47c4f24202fa0 /arch/powerpc | |
parent | 2ba9f0d8875073a2ed802fca0c25c9bfc4338439 (diff) |
kvm: Add struct kvm arg to memslot APIs
We will use that in the later patch to find the kvm ops handler
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/include/asm/kvm_ppc.h | 6 | ||||
-rw-r--r-- | arch/powerpc/kvm/book3s.c | 4 | ||||
-rw-r--r-- | arch/powerpc/kvm/booke.c | 4 | ||||
-rw-r--r-- | arch/powerpc/kvm/powerpc.c | 9 |
4 files changed, 13 insertions, 10 deletions
diff --git a/arch/powerpc/include/asm/kvm_ppc.h b/arch/powerpc/include/asm/kvm_ppc.h index c13f15db476c..20f461637090 100644 --- a/arch/powerpc/include/asm/kvm_ppc.h +++ b/arch/powerpc/include/asm/kvm_ppc.h | |||
@@ -134,9 +134,11 @@ extern struct page *kvm_alloc_hpt(unsigned long nr_pages); | |||
134 | extern void kvm_release_hpt(struct page *page, unsigned long nr_pages); | 134 | extern void kvm_release_hpt(struct page *page, unsigned long nr_pages); |
135 | extern int kvmppc_core_init_vm(struct kvm *kvm); | 135 | extern int kvmppc_core_init_vm(struct kvm *kvm); |
136 | extern void kvmppc_core_destroy_vm(struct kvm *kvm); | 136 | extern void kvmppc_core_destroy_vm(struct kvm *kvm); |
137 | extern void kvmppc_core_free_memslot(struct kvm_memory_slot *free, | 137 | extern void kvmppc_core_free_memslot(struct kvm *kvm, |
138 | struct kvm_memory_slot *free, | ||
138 | struct kvm_memory_slot *dont); | 139 | struct kvm_memory_slot *dont); |
139 | extern int kvmppc_core_create_memslot(struct kvm_memory_slot *slot, | 140 | extern int kvmppc_core_create_memslot(struct kvm *kvm, |
141 | struct kvm_memory_slot *slot, | ||
140 | unsigned long npages); | 142 | unsigned long npages); |
141 | extern int kvmppc_core_prepare_memory_region(struct kvm *kvm, | 143 | extern int kvmppc_core_prepare_memory_region(struct kvm *kvm, |
142 | struct kvm_memory_slot *memslot, | 144 | struct kvm_memory_slot *memslot, |
diff --git a/arch/powerpc/kvm/book3s.c b/arch/powerpc/kvm/book3s.c index 39d2994f9d27..130fe1d75bac 100644 --- a/arch/powerpc/kvm/book3s.c +++ b/arch/powerpc/kvm/book3s.c | |||
@@ -761,13 +761,13 @@ int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm, struct kvm_dirty_log *log) | |||
761 | return kvmppc_ops->get_dirty_log(kvm, log); | 761 | return kvmppc_ops->get_dirty_log(kvm, log); |
762 | } | 762 | } |
763 | 763 | ||
764 | void kvmppc_core_free_memslot(struct kvm_memory_slot *free, | 764 | void kvmppc_core_free_memslot(struct kvm *kvm, struct kvm_memory_slot *free, |
765 | struct kvm_memory_slot *dont) | 765 | struct kvm_memory_slot *dont) |
766 | { | 766 | { |
767 | kvmppc_ops->free_memslot(free, dont); | 767 | kvmppc_ops->free_memslot(free, dont); |
768 | } | 768 | } |
769 | 769 | ||
770 | int kvmppc_core_create_memslot(struct kvm_memory_slot *slot, | 770 | int kvmppc_core_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot, |
771 | unsigned long npages) | 771 | unsigned long npages) |
772 | { | 772 | { |
773 | return kvmppc_ops->create_memslot(slot, npages); | 773 | return kvmppc_ops->create_memslot(slot, npages); |
diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c index 1769354d0bf8..cb2d986a3382 100644 --- a/arch/powerpc/kvm/booke.c +++ b/arch/powerpc/kvm/booke.c | |||
@@ -1662,12 +1662,12 @@ int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm, struct kvm_dirty_log *log) | |||
1662 | return -ENOTSUPP; | 1662 | return -ENOTSUPP; |
1663 | } | 1663 | } |
1664 | 1664 | ||
1665 | void kvmppc_core_free_memslot(struct kvm_memory_slot *free, | 1665 | void kvmppc_core_free_memslot(struct kvm *kvm, struct kvm_memory_slot *free, |
1666 | struct kvm_memory_slot *dont) | 1666 | struct kvm_memory_slot *dont) |
1667 | { | 1667 | { |
1668 | } | 1668 | } |
1669 | 1669 | ||
1670 | int kvmppc_core_create_memslot(struct kvm_memory_slot *slot, | 1670 | int kvmppc_core_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot, |
1671 | unsigned long npages) | 1671 | unsigned long npages) |
1672 | { | 1672 | { |
1673 | return 0; | 1673 | return 0; |
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c index 9aaa07efa4b6..b103d747934a 100644 --- a/arch/powerpc/kvm/powerpc.c +++ b/arch/powerpc/kvm/powerpc.c | |||
@@ -417,15 +417,16 @@ long kvm_arch_dev_ioctl(struct file *filp, | |||
417 | return -EINVAL; | 417 | return -EINVAL; |
418 | } | 418 | } |
419 | 419 | ||
420 | void kvm_arch_free_memslot(struct kvm_memory_slot *free, | 420 | void kvm_arch_free_memslot(struct kvm *kvm, struct kvm_memory_slot *free, |
421 | struct kvm_memory_slot *dont) | 421 | struct kvm_memory_slot *dont) |
422 | { | 422 | { |
423 | kvmppc_core_free_memslot(free, dont); | 423 | kvmppc_core_free_memslot(kvm, free, dont); |
424 | } | 424 | } |
425 | 425 | ||
426 | int kvm_arch_create_memslot(struct kvm_memory_slot *slot, unsigned long npages) | 426 | int kvm_arch_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot, |
427 | unsigned long npages) | ||
427 | { | 428 | { |
428 | return kvmppc_core_create_memslot(slot, npages); | 429 | return kvmppc_core_create_memslot(kvm, slot, npages); |
429 | } | 430 | } |
430 | 431 | ||
431 | void kvm_arch_memslots_updated(struct kvm *kvm) | 432 | void kvm_arch_memslots_updated(struct kvm *kvm) |