aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorIzik Eidus <izike@qumranet.com>2007-10-01 16:14:18 -0400
committerAvi Kivity <avi@qumranet.com>2008-01-30 10:52:50 -0500
commit195aefde9cc2cee38dd54ef92a866721fba4413e (patch)
treee9d7f47e8a462ee193a53cc4c21e5b3c7254956c /drivers/kvm/kvm.h
parent290fc38da8187b53b78dd4d5ab27a20b88ef8b61 (diff)
KVM: Add general accessors to read and write guest memory
Signed-off-by: Izik Eidus <izike@qumranet.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r--drivers/kvm/kvm.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index 80cfb99fffe0..1965438f18cc 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -559,6 +559,15 @@ extern hpa_t bad_page_address;
559 559
560gfn_t unalias_gfn(struct kvm *kvm, gfn_t gfn); 560gfn_t unalias_gfn(struct kvm *kvm, gfn_t gfn);
561struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn); 561struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn);
562int kvm_read_guest_page(struct kvm *kvm, gfn_t gfn, void *data, int offset,
563 int len);
564int kvm_read_guest(struct kvm *kvm, gpa_t gpa, void *data, unsigned long len);
565int kvm_write_guest_page(struct kvm *kvm, gfn_t gfn, const void *data,
566 int offset, int len);
567int kvm_write_guest(struct kvm *kvm, gpa_t gpa, const void *data,
568 unsigned long len);
569int kvm_clear_guest_page(struct kvm *kvm, gfn_t gfn, int offset, int len);
570int kvm_clear_guest(struct kvm *kvm, gpa_t gpa, unsigned long len);
562struct kvm_memory_slot *gfn_to_memslot(struct kvm *kvm, gfn_t gfn); 571struct kvm_memory_slot *gfn_to_memslot(struct kvm *kvm, gfn_t gfn);
563void mark_page_dirty(struct kvm *kvm, gfn_t gfn); 572void mark_page_dirty(struct kvm *kvm, gfn_t gfn);
564 573