[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3 4/4] libxc/arm: allocate xenstore and console pages
On Fri, 2012-07-20 at 15:49 +0100, Stefano Stabellini wrote: > + > + for (i = 0; i < NR_MAGIC_PAGES; i++) > + p2m[i] = dom->rambase_pfn + dom->total_pages + i; > + > + rc = xc_domain_populate_physmap_exact( > + dom->xch, dom->guest_domid, NR_MAGIC_PAGES, > + 0, 0, &p2m[i]); This isn't right -- it should be just "p2m" not "&p2m[i]" -- the latter only made sense when the call was in a loop, now it just means we point off the end of the array. I'll send a patch tomorrow, right now I have to run. > + if ( rc < 0 ) > + return rc; > + > + console_pfn = dom->rambase_pfn + dom->total_pages + CONSOLE_PFN_OFFSET; > + store_pfn = dom->rambase_pfn + dom->total_pages + XENSTORE_PFN_OFFSET; > + > + xc_clear_domain_page(dom->xch, dom->guest_domid, console_pfn); > + xc_clear_domain_page(dom->xch, dom->guest_domid, store_pfn); > + xc_set_hvm_param(dom->xch, dom->guest_domid, HVM_PARAM_CONSOLE_PFN, > + console_pfn); > + xc_set_hvm_param(dom->xch, dom->guest_domid, HVM_PARAM_STORE_PFN, > + store_pfn); > + > return 0; > } > _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |