|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] libxc: correctly unmap pages after core-dumping a pv guest
Quoting Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>: Markus Groà writes ("[Xen-devel] libxc: correctly unmap pages after core-dumping a pv guest"):But to unmap the pages later, the dinfo->p2m_size has to be set accordingly. This was not done, instead a variable named p2m_size was set. This way P2M_FL_ENTRIES was always zero and the pages were left mapped. The following patch fixes this.Thanks. The existing code here is pretty unfortunate. In xc_domain_dumpcore_via_callback where you make your change, "dinfo" refers to a struct domain_info_context which is local to that function. But in the called function xc_core_arch_map_p2m_rw, "dinfo" refers to another identical structure allocated locally to the small wrapper function xc_core_arch_map_p2m. All rather tangled. But, anyway, your change is correct so I have applied it. Next time, though, can you please be sure to add a Signed-off-by line, to signify your certification in accordance with the Developer's Certificate of Origin ? In this case I'll go ahead as it's only a couple of lines. Thanks, Ian. Thanks, although I did repost the patch with a Signed-off-by line here: http://lists.xensource.com/archives/html/xen-devel/2011-05/msg01469.html Cheers, Markus _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |