diff options
author | Paul Mackerras <paulus@samba.org> | 2011-06-28 20:19:22 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-07-12 06:16:50 -0400 |
commit | f9e0554deca54a42fb2cf7f68c05a4a37461c205 (patch) | |
tree | e81771fec16fe3d4466e51f902ccf8ccd3e85c14 /arch/powerpc/kvm/booke.c | |
parent | 3cf658b605393d793ea52416c2306b86fbde9d9a (diff) |
KVM: PPC: Pass init/destroy vm and prepare/commit memory region ops down
This arranges for the top-level arch/powerpc/kvm/powerpc.c file to
pass down some of the calls it gets to the lower-level subarchitecture
specific code. The lower-level implementations (in booke.c and book3s.c)
are no-ops. The coming book3s_hv.c will need this.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm/booke.c')
-rw-r--r-- | arch/powerpc/kvm/booke.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c index 9f2e4a5e1c4d..9066325b23b2 100644 --- a/arch/powerpc/kvm/booke.c +++ b/arch/powerpc/kvm/booke.c | |||
@@ -865,6 +865,26 @@ int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm, struct kvm_dirty_log *log) | |||
865 | return -ENOTSUPP; | 865 | return -ENOTSUPP; |
866 | } | 866 | } |
867 | 867 | ||
868 | int kvmppc_core_prepare_memory_region(struct kvm *kvm, | ||
869 | struct kvm_userspace_memory_region *mem) | ||
870 | { | ||
871 | return 0; | ||
872 | } | ||
873 | |||
874 | void kvmppc_core_commit_memory_region(struct kvm *kvm, | ||
875 | struct kvm_userspace_memory_region *mem) | ||
876 | { | ||
877 | } | ||
878 | |||
879 | int kvmppc_core_init_vm(struct kvm *kvm) | ||
880 | { | ||
881 | return 0; | ||
882 | } | ||
883 | |||
884 | void kvmppc_core_destroy_vm(struct kvm *kvm) | ||
885 | { | ||
886 | } | ||
887 | |||
868 | int __init kvmppc_booke_init(void) | 888 | int __init kvmppc_booke_init(void) |
869 | { | 889 | { |
870 | unsigned long ivor[16]; | 890 | unsigned long ivor[16]; |