There is no need to ‘restore’ a zero page as this is what the host machine will give you when ever the guest touches a new page.
Andreas On 12/08/2015 15:30, "gem5-dev on behalf of Ishan" <[email protected] on behalf of [email protected]> wrote: > >Andreas Hansson <Andreas.Hansson@...> writes: > >> >> Hi, >> >> Imagine simulating a system with terabytes of memory. Most likely a lot >>of >> this memory will be untouched, and the host system can get away without >> ever allocating the pages. If we now take a checkpoint and later >>restore, >> we want to make sure this property does not go away. Hence, we avoid >> touching the pages that are 0. >> >> Andreas > > > >Thanks for the response! So I understand what you are saying >but what if a region of memory is actually 0 >(i.e maybe there is an array of millions of >elements which are all 0). >Doesn't this code never restore that portion of memory? > > > > >_______________________________________________ >gem5-dev mailing list >[email protected] >http://m5sim.org/mailman/listinfo/gem5-dev -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2557590 ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2548782 _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
