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 /include | |
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 'include')
-rw-r--r-- | include/linux/kvm_host.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 782bfb185f8a..3c44687b3425 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -253,7 +253,12 @@ int kvm_set_memory_region(struct kvm *kvm, | |||
253 | int __kvm_set_memory_region(struct kvm *kvm, | 253 | int __kvm_set_memory_region(struct kvm *kvm, |
254 | struct kvm_userspace_memory_region *mem, | 254 | struct kvm_userspace_memory_region *mem, |
255 | int user_alloc); | 255 | int user_alloc); |
256 | int kvm_arch_set_memory_region(struct kvm *kvm, | 256 | int kvm_arch_prepare_memory_region(struct kvm *kvm, |
257 | struct kvm_memory_slot *memslot, | ||
258 | struct kvm_memory_slot old, | ||
259 | struct kvm_userspace_memory_region *mem, | ||
260 | int user_alloc); | ||
261 | void kvm_arch_commit_memory_region(struct kvm *kvm, | ||
257 | struct kvm_userspace_memory_region *mem, | 262 | struct kvm_userspace_memory_region *mem, |
258 | struct kvm_memory_slot old, | 263 | struct kvm_memory_slot old, |
259 | int user_alloc); | 264 | int user_alloc); |