| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Why does xc_map_foreign_range() refuse to map pfns below 1M from a domU
 On 12/03/2013 08:07 PM, Konrad Rzeszutek Wilk wrote: I recall I wasn't seeing anything, the pv domU was just hanging super early in the boot then. The way we worked around it is via attached patch (applied to PV domU's kernel, in our case stubdom hosting qemu process). It keeps the <1M safeguard for local mapping but allows foreign mappings (detected via _PAGE_SPECIAL flag).On Tue, Dec 03, 2013 at 06:36:48PM +0100, Tomasz Wroblewski wrote:On 12/03/2013 05:09 PM, Ian Campbell wrote:On Tue, 2013-12-03 at 17:59 +0200, Razvan Cojocaru wrote:The Linux domU is perfectly able to map (using xc_map_foreign_range()) pages from the Windows domU, except for pages below 1M.With no XSM how does it have the privilege to do this?What I meant to say is that the domU is being allowed to do this sort of thing, i.e. the problem is definitely not caused by XSM.OK, so XSM is involved but you are 101% certain that it is not preventing the mappings? Razvan, you can try attached patch as well applied to your pv domU kernel to see if it helps you. I think the goal of check was to only stop <1M mapping of its own memory in order to stop pvops kernel boot messing it, but by ricochet it also prevents mapping of foreign domain <1M ranges...Duh! That was certainly unintentional. Attachment:
stubdom-allow-foreign-lowmem-map _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel 
 
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |