From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH 2/5] hvm: add HVM_PARAM_VM_GENERATION_ID_ADDR Date: Wed, 21 May 2014 14:45:23 +0100 Message-ID: <537CADF3.7060401@citrix.com> References: <1400678467-23559-1-git-send-email-david.vrabel@citrix.com> <1400678467-23559-3-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 1Wn6pj-0006Rc-Sf for xen-devel@lists.xenproject.org; Wed, 21 May 2014 13:45:28 +0000 In-Reply-To: <1400678467-23559-3-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, Ian Jackson , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On 21/05/14 14:21, David Vrabel wrote: > HVM_PARAM_VM_GENERATION_ID_ADDR is the guest physical address of the > VM Generation ID. This parameter will be written by hvmloader and read > by the toolstack when updating the gen. ID (e.g., after restoring from a > snapshot). > > A HVM parameter is easier for the save/restore code to work with (than > a XenStore key). > > Signed-off-by: David Vrabel > --- > xen/include/public/hvm/params.h | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/xen/include/public/hvm/params.h b/xen/include/public/hvm/params.h > index 517a184..c972f9e 100644 > --- a/xen/include/public/hvm/params.h > +++ b/xen/include/public/hvm/params.h > @@ -145,6 +145,9 @@ > /* SHUTDOWN_* action in case of a triple fault */ > #define HVM_PARAM_TRIPLE_FAULT_REASON 31 > > -#define HVM_NR_PARAMS 32 > +/* Location of the VM Generation ID in guest address space. */ Might be more clear to say "guest physical address space" ? > +#define HVM_PARAM_VM_GENERATION_ID_ADDR 32 > + > +#define HVM_NR_PARAMS 33 > > #endif /* __XEN_PUBLIC_HVM_PARAMS_H__ */