Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=60395224d94945544f1f9dce5566981844bf0e77
Commit:     60395224d94945544f1f9dce5566981844bf0e77
Parent:     e00c8cf29b9798eb9918469b0cce1766e0ae40d7
Author:     Avi Kivity <[EMAIL PROTECTED]>
AuthorDate: Sun Oct 21 11:03:36 2007 +0200
Committer:  Avi Kivity <[EMAIL PROTECTED]>
CommitDate: Wed Jan 30 17:52:55 2008 +0200

    KVM: Add a might_sleep() annotation to gfn_to_page()
    
    This will help trap accesses to guest memory in atomic context.
    
    Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
---
 drivers/kvm/kvm_main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
index a6e3165..453e98e 100644
--- a/drivers/kvm/kvm_main.c
+++ b/drivers/kvm/kvm_main.c
@@ -993,6 +993,8 @@ struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn)
        struct page *page[1];
        int npages;
 
+       might_sleep();
+
        gfn = unalias_gfn(kvm, gfn);
        slot = __gfn_to_memslot(kvm, gfn);
        if (!slot) {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to