From: "Jan Beulich" Subject: Re: resume of HVM guest without PV drivers Date: Fri, 07 Aug 2009 10:13:24 +0100 Message-ID: <4A7C0C54020000780000E970@vpn.id2.novell.com> References: <4A7C0321020000780000E942@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Meanwhile I thought of a (theoretical) way, but to my surprise it wouldn't work: The guest vCPU-s could check their registered runstate areas' state field, which should be stale (i.e. not RUNSTATE_running), but the surprise (to me) was that this gets updated only on context switch in, not on switch out (which means that at present that field also cannot be used to determine whether a remote vCPU is currently running - another thing that I intended to exploit [accepting that the state maybe stale by the time it gets evaluated/used]). Fixing this is obviously trivial (under the premise that you'd take such a patch), but expected functionality then of course will depend upon this patch being present in hypervisors derived from older code bases. Jan >>> Keir Fraser 07.08.09 11:01 >>> No. Perhaps something could be added if it's useful. -- Keir On 07/08/2009 09:34, "Jan Beulich" wrote: > Does a HVM guest without PV drivers have any way to know it got resumed > after a migration or save/restore cycle? >=20 > Thanks, Jan >=20 >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com=20 > http://lists.xensource.com/xen-devel=20