qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] 回??: [PATCH 2/2] um em: chardevice for kvm postcopy


From: Isaku Yamahata
Subject: Re: [Qemu-devel] 回??: [PATCH 2/2] um em: chardevice for kvm postcopy
Date: Thu, 5 Jan 2012 19:48:06 +0900
User-agent: Mutt/1.5.19 (2009-01-05)

On Thu, Jan 05, 2012 at 12:08:50PM +0800, thfbjyddx wrote:
> hi,
> I've tried to use this patch,

Oh great! Can we share your results?


> but it doesn't work for compiling error on
>  
>  page = alloc_page_vma(GFP_HIGHUSER_MOVABLE, vma, vmf->address);//vmf->
> virtual_address?
>  
> I guess it's for the wrong kernel version?
> can you give me some detail about this or any clue?
> 3x 

Thank you for report. The following should fix.
It depends on kernel configuration. My config didn't catch it.

diff --git a/drivers/char/umem.c b/drivers/char/umem.c
index 4d031b5..853f1ce 100644
--- a/drivers/char/umem.c
+++ b/drivers/char/umem.c
@@ -129,7 +129,7 @@ static int umem_minor_fault(struct umem *umem,
         * vmf->page = fake_vmf->page;
         */
 
-       page = alloc_page_vma(GFP_HIGHUSER_MOVABLE, vma, vmf->address);
+       page = alloc_page_vma(GFP_HIGHUSER_MOVABLE, vma, vmf->virtual_address);
        if (!page)
                return VM_FAULT_OOM;
        if (mem_cgroup_cache_charge(page, vma->vm_mm, GFP_KERNEL)) {



-- 
yamahata



reply via email to

[Prev in Thread] Current Thread [Next in Thread]