aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2007-12-20 19:18:23 -0500
committerAvi Kivity <avi@qumranet.com>2008-01-30 11:01:20 -0500
commit7ec54588210df29ea637e6054489bc942c0ef371 (patch)
treea21f672f29965a7fa35d90b3c3fe034150ae9ec7 /include/linux
parent10589a4699bb978c781ce73bbae8ca942c5250c9 (diff)
KVM: Add kvm_read_guest_atomic()
In preparation for a mmu spinlock, add kvm_read_guest_atomic() and use it in fetch() and prefetch_page(). Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/kvm_host.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 9ff5904c5072..a020fb280540 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -167,6 +167,8 @@ void kvm_release_page_clean(struct page *page);
167void kvm_release_page_dirty(struct page *page); 167void kvm_release_page_dirty(struct page *page);
168int kvm_read_guest_page(struct kvm *kvm, gfn_t gfn, void *data, int offset, 168int kvm_read_guest_page(struct kvm *kvm, gfn_t gfn, void *data, int offset,
169 int len); 169 int len);
170int kvm_read_guest_atomic(struct kvm *kvm, gpa_t gpa, void *data,
171 unsigned long len);
170int kvm_read_guest(struct kvm *kvm, gpa_t gpa, void *data, unsigned long len); 172int kvm_read_guest(struct kvm *kvm, gpa_t gpa, void *data, unsigned long len);
171int kvm_write_guest_page(struct kvm *kvm, gfn_t gfn, const void *data, 173int kvm_write_guest_page(struct kvm *kvm, gfn_t gfn, const void *data,
172 int offset, int len); 174 int offset, int len);