From: Ian Campbell Subject: Re: [PATCH 5/5] libxl: add libxl_vm_generation_id_set() Date: Wed, 21 May 2014 17:10:07 +0100 Message-ID: <1400688607.7272.37.camel@kazak.uk.xensource.com> References: <1400678467-23559-1-git-send-email-david.vrabel@citrix.com> <1400678467-23559-6-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wn96F-0007la-SP for xen-devel@lists.xenproject.org; Wed, 21 May 2014 16:10:40 +0000 In-Reply-To: <1400678467-23559-6-git-send-email-david.vrabel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel Cc: xen-devel@lists.xenproject.org, Andrew Cooper , Ian Jackson , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Wed, 2014-05-21 at 14:21 +0100, David Vrabel wrote: > Add a function to allow a toolstack to set a domain's VM generation > ID. > > Although the specification requires that a ACPI Notify event is raised > if the generation ID is changed, in practice this appears not to be > necessary if the generation ID is changed while the Windows VM is > suspended. Er, ok, that sounds suspicious though, can it be relied on for Windows 2015? Is generating the event so difficult? (I thought we had a libxl function to do it...) > > +/* > + * Set a HVM domain's VM Generation ID. > + * > + * Toolstacks should call this after building or restoring the domain, > + * but before unpausing it. This would suggest that libxl_domain_config is the right place for it then, and it should be handled within the library. But I'll await completion of the discussion in 0/5 before committing 100% to that... > + * > + * For further details, refer to the "Virtual Machine Generation ID" > + * document from Microsoft. You linked to this in 0/5 -- perhaps include that in wherever this comment ends up too? > + */