|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] x86: mapping from Dom0 to DomU
Hi, Jan! On 04/21/2017 06:55 PM, Jan Beulich wrote: On 21.04.17 at 15:04, <andr2000@xxxxxxxxx> wrote: If this is gnttab_map_refs call you mean then, yes, I do that to map grefs see public/grant_table.h's explanation of GNTMAP_host_map used with out without GNTMAP_contains_pte. I know about these options and according to [1] I can useoption to map with "host virtual address", e.g. without GNTMAP_contains_pte flag, because GNTMAP_contains_pte requires me to provide machine address which I don't want. Other mapping attempts have to be refused, or else the accounting done by the grant table code would be undermined. So, either I didn't understand what you mean or was not clear to explain that I see no problem while mapping grefs with gnttab_map_refs, but see the problem when vm_insert_page is called to mmap the pages into user-space (vm_insert_page internally does set_pte_at which it silently fails, but kernel knows nothing about that because no error reported [2]). Jan Thank you, Oleksandr[1] http://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=xen/include/public/grant_table.h;h=e5f04ec57c5bd590b6c81799ee01028c3512aacf;hb=refs/heads/master#l331 [2] http://lxr.free-electrons.com/source/mm/memory.c#L1569 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |