Jacob Gorm Hansen
2004-Jan-21 17:35 UTC
[Xen-devel] Do the suspend/resume tools work with current Xen?
hi, I noticed that in arch/xeno/kernel/setup.c the contents of phys_to_machine_mapping[] are initialised on boot, but not upon resumption after suspend, which may be a problem with the newer Xen mmu_update semantics, as XenoLinux will now need to access this mapping to be able to correctly specify machine addresses, even after having been moved to a set of new machine pages. Has anyone used the save and restore tools with a recent Xen and do they still work, or is it correct that this mapping needs to be reinitialised? thanks, Jacob ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Keir Fraser
2004-Jan-21 18:09 UTC
Re: [Xen-devel] Do the suspend/resume tools work with current Xen?
> hi, > > I noticed that in arch/xeno/kernel/setup.c the contents of > phys_to_machine_mapping[] are initialised on boot, but not upon > resumption after suspend, which may be a problem with the newer Xen > mmu_update semantics, as XenoLinux will now need to access this mapping > to be able to correctly specify machine addresses, even after having > been moved to a set of new machine pages. > > Has anyone used the save and restore tools with a recent Xen and do they > still work, or is it correct that this mapping needs to be > reinitialised?The page frames containing the phys_to_machine_mapping[] are referred to in the suspend record written by Xenolinux when it is suspended. The mapping array is then rewritten by xc_linux_restore before resuming the Xenolinux instance. So yes -- that mapping does need to be reinitialised somewhere. The default tools already do this. -- Keir ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Jacob Gorm Hansen
2004-Jan-22 00:50 UTC
Re: [Xen-devel] Do the suspend/resume tools work with current Xen?
On Wed, 2004-01-21 at 19:09, Keir Fraser wrote:> So yes -- that mapping does need to be reinitialised somewhere. The > default tools already do this.Sorry, shows my lack of understanding of your resume code... Anyways, going over this again actually cleared some things up for me, hopefully my resume will actually work some day. thanks, Jacob ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel