From: Ian Campbell Subject: Re: Re: [PATCH] xen: reduce severity of message about using v1 grant tables. Date: Thu, 3 Dec 2009 21:22:30 +0000 Message-ID: <1259875350.31045.117.camel@localhost.localdomain> References: <1259782098-32180-1-git-send-email-Ian.Campbell@citrix.com> <4B16C103.9070105@goop.org> <1259783682.31045.22.camel@localhost.localdomain> <1259836124.23698.10393.camel@zakaz.uk.xensource.com> <20091203120116.GA15460@weybridge.uk.xensource.com> <1259842556.23698.10824.camel@zakaz.uk.xensource.com> <4B181C4E.7040208@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4B181C4E.7040208@goop.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge Cc: Steven Smith , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Thu, 2009-12-03 at 20:15 +0000, Jeremy Fitzhardinge wrote: > On 12/03/09 04:15, Ian Campbell wrote: > > I'm experimenting with this: > > > > Subject: xen: latch grant-table layout at start of day. > > > > It is not possible to switch grant table layout over a save restore > > since entries setup before with the old layout cannot be torn down under > > the new layout. > > > > Doesn't resume implicitly tear them all down? Yes, but the devices will try and tear them down again in their resume handlers. I think the conclusion was (see Steven's last mail) that since changing gnttab version memsets the array to zero and gnttab_end_* happen to be safe (by inspection) when used on a zeroed slot it would be ok. I think it's just safest to avoid the whole issue, we don't care about the downgrade case and in the upgrade case the guest isn't going to have any devices running which need v2 so can just as well stick with v1. Ian.