From: Tim Deegan Subject: Re: [PATCH 7/8] HVM save restore: shadow fix Date: Thu, 18 Jan 2007 16:31:13 +0000 Message-ID: <20070118163113.GI18763@york.uk.xensource.com> References: <20070111141231.GA2909@edwin-gen.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Return-path: Content-Disposition: inline In-Reply-To: <20070111141231.GA2909@edwin-gen.sh.intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Zhai, Edwin" Cc: Ian Pratt , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org At 22:12 +0800 on 11 Jan (1168553551), Zhai, Edwin wrote: > [PATCH 7/8] HVM save restore: shadow fix > > Signed-off-by: Zhai Edwin > > fix 2 shadow issues: > * restored guest's mem type_info are not correct In what way? And why are you fixing that in the shadow pagetable-promotion path rather than the restore path? If the pagetable pages are wrong, are other pages wrong too? > + { > + struct page_info *page = mfn_to_page(gmfn); > + /* XXX: add it to emulate a touched page */ > + if ((page->u.inuse.type_info & PGT_type_mask) == PGT_none){ > + page->u.inuse.type_info |= (PGT_writable_page | PGT_validated); > + } > + } > + Should this be gated to only happen to HVM guests? Cheers, Tim.