From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Yang, Sheng" Subject: [PATCH 4/6] KVM: Export necessary function for EPT Date: Fri, 18 Apr 2008 17:29:23 +0800 Message-ID: <200804181729.23640.sheng.yang@intel.com> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_znGCIg86hX0PuIr" To: kvm-devel@lists.sourceforge.net Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org --Boundary-00=_znGCIg86hX0PuIr Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =46rom 5d4a79e5edfc09b54bd83a3a289cbb82058e3daa Mon Sep 17 00:00:00 2001 =46rom: Sheng Yang Date: Fri, 18 Apr 2008 17:05:20 +0800 Subject: [PATCH 4/5] KVM: Export necessary function for EPT The function gfn_to_gva is necessary for handling EPT violation. Signed-off-by: Sheng Yang =2D-- virt/kvm/kvm_main.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 0998455..d028e07 100644 =2D-- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -522,6 +522,7 @@ unsigned long gfn_to_hva(struct kvm *kvm, gfn_t gfn) return bad_hva(); return (slot->userspace_addr + (gfn - slot->base_gfn) * PAGE_SIZE); } +EXPORT_SYMBOL_GPL(gfn_to_hva); /* * Requires current->mm->mmap_sem to be held =2D- 1.5.4.5 --Boundary-00=_znGCIg86hX0PuIr Content-Type: text/x-diff; charset="utf-8"; name="0004-KVM-Export-necessary-function-for-EPT.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0004-KVM-Export-necessary-function-for-EPT.patch" =46rom 5d4a79e5edfc09b54bd83a3a289cbb82058e3daa Mon Sep 17 00:00:00 2001 =46rom: Sheng Yang Date: Fri, 18 Apr 2008 17:05:20 +0800 Subject: [PATCH 4/5] KVM: Export necessary function for EPT Signed-off-by: Sheng Yang =2D-- virt/kvm/kvm_main.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 0998455..d028e07 100644 =2D-- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -522,6 +522,7 @@ unsigned long gfn_to_hva(struct kvm *kvm, gfn_t gfn) return bad_hva(); return (slot->userspace_addr + (gfn - slot->base_gfn) * PAGE_SIZE); } +EXPORT_SYMBOL_GPL(gfn_to_hva); =20 /* * Requires current->mm->mmap_sem to be held =2D-=20 1.5.4.5 --Boundary-00=_znGCIg86hX0PuIr Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone --Boundary-00=_znGCIg86hX0PuIr Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel --Boundary-00=_znGCIg86hX0PuIr--