aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2009-12-23 11:35:18 -0500
committerMarcelo Tosatti <mtosatti@redhat.com>2010-03-01 10:35:44 -0500
commitf7784b8ec9b6a041fa828cfbe9012fe51933f5ac (patch)
treedc67f35e585bb06492852c01776aea4b737db48b /include/linux/kvm_host.h
parentfef9cce0eb28a67e688a411cc30b73625e49002b (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/linux/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h7
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,
253int __kvm_set_memory_region(struct kvm *kvm, 253int __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);
256int kvm_arch_set_memory_region(struct kvm *kvm, 256int 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);
261void 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);