diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2007-12-20 19:18:23 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 11:01:20 -0500 |
commit | 7ec54588210df29ea637e6054489bc942c0ef371 (patch) | |
tree | a21f672f29965a7fa35d90b3c3fe034150ae9ec7 /include/linux | |
parent | 10589a4699bb978c781ce73bbae8ca942c5250c9 (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.h | 2 |
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); | |||
167 | void kvm_release_page_dirty(struct page *page); | 167 | void kvm_release_page_dirty(struct page *page); |
168 | int kvm_read_guest_page(struct kvm *kvm, gfn_t gfn, void *data, int offset, | 168 | int kvm_read_guest_page(struct kvm *kvm, gfn_t gfn, void *data, int offset, |
169 | int len); | 169 | int len); |
170 | int kvm_read_guest_atomic(struct kvm *kvm, gpa_t gpa, void *data, | ||
171 | unsigned long len); | ||
170 | int kvm_read_guest(struct kvm *kvm, gpa_t gpa, void *data, unsigned long len); | 172 | int kvm_read_guest(struct kvm *kvm, gpa_t gpa, void *data, unsigned long len); |
171 | int kvm_write_guest_page(struct kvm *kvm, gfn_t gfn, const void *data, | 173 | int kvm_write_guest_page(struct kvm *kvm, gfn_t gfn, const void *data, |
172 | int offset, int len); | 174 | int offset, int len); |