aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2010-09-10 11:30:51 -0400
committerAvi Kivity <avi@redhat.com>2010-10-24 04:52:37 -0400
commitec92fe44e7ff94d04d8305e49efcffd8773e1cf6 (patch)
treea1f3c9e47e5c05a83d0d507d0616f810234c80a4 /arch/x86/include
parent6539e738f65a8f1fc7806295d5d701fba4008343 (diff)
KVM: X86: Add kvm_read_guest_page_mmu function
This patch adds a function which can read from the guests physical memory or from the guest's guest physical memory. This will be used in the two-dimensional page table walker. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/kvm_host.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index 8ec3547c433d..08bc383083ff 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -657,6 +657,9 @@ void kvm_queue_exception_e(struct kvm_vcpu *vcpu, unsigned nr, u32 error_code);
657void kvm_requeue_exception(struct kvm_vcpu *vcpu, unsigned nr); 657void kvm_requeue_exception(struct kvm_vcpu *vcpu, unsigned nr);
658void kvm_requeue_exception_e(struct kvm_vcpu *vcpu, unsigned nr, u32 error_code); 658void kvm_requeue_exception_e(struct kvm_vcpu *vcpu, unsigned nr, u32 error_code);
659void kvm_inject_page_fault(struct kvm_vcpu *vcpu); 659void kvm_inject_page_fault(struct kvm_vcpu *vcpu);
660int kvm_read_guest_page_mmu(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu,
661 gfn_t gfn, void *data, int offset, int len,
662 u32 access);
660bool kvm_require_cpl(struct kvm_vcpu *vcpu, int required_cpl); 663bool kvm_require_cpl(struct kvm_vcpu *vcpu, int required_cpl);
661 664
662int kvm_pic_set_irq(void *opaque, int irq, int level); 665int kvm_pic_set_irq(void *opaque, int irq, int level);