diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2009-12-23 11:35:18 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-01 10:35:44 -0500 |
commit | f7784b8ec9b6a041fa828cfbe9012fe51933f5ac (patch) | |
tree | dc67f35e585bb06492852c01776aea4b737db48b /arch/powerpc | |
parent | fef9cce0eb28a67e688a411cc30b73625e49002b (diff) |
KVM: split kvm_arch_set_memory_region into prepare and commit
Required for SRCU convertion later.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kvm/powerpc.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c index f06cf93b178e..4633e7850dd2 100644 --- a/arch/powerpc/kvm/powerpc.c +++ b/arch/powerpc/kvm/powerpc.c | |||
@@ -165,14 +165,24 @@ long kvm_arch_dev_ioctl(struct file *filp, | |||
165 | return -EINVAL; | 165 | return -EINVAL; |
166 | } | 166 | } |
167 | 167 | ||
168 | int kvm_arch_set_memory_region(struct kvm *kvm, | 168 | int kvm_arch_prepare_memory_region(struct kvm *kvm, |
169 | struct kvm_userspace_memory_region *mem, | 169 | struct kvm_memory_slot *memslot, |
170 | struct kvm_memory_slot old, | 170 | struct kvm_memory_slot old, |
171 | int user_alloc) | 171 | struct kvm_userspace_memory_region *mem, |
172 | int user_alloc) | ||
172 | { | 173 | { |
173 | return 0; | 174 | return 0; |
174 | } | 175 | } |
175 | 176 | ||
177 | void kvm_arch_commit_memory_region(struct kvm *kvm, | ||
178 | struct kvm_userspace_memory_region *mem, | ||
179 | struct kvm_memory_slot old, | ||
180 | int user_alloc) | ||
181 | { | ||
182 | return; | ||
183 | } | ||
184 | |||
185 | |||
176 | void kvm_arch_flush_shadow(struct kvm *kvm) | 186 | void kvm_arch_flush_shadow(struct kvm *kvm) |
177 | { | 187 | { |
178 | } | 188 | } |