From: Ian Campbell Subject: Re: [PATCH 2/6] hvm: add HVM_PARAM_VM_GENERATION_ID_ADDR Date: Tue, 10 Jun 2014 11:27:07 +0100 Message-ID: <1402396027.1250.18.camel@kazak.uk.xensource.com> References: <1401801340-6196-1-git-send-email-david.vrabel@citrix.com> <1401801340-6196-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.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WuJGu-0001B2-43 for xen-devel@lists.xenproject.org; Tue, 10 Jun 2014 10:27:16 +0000 In-Reply-To: <1401801340-6196-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: Keir Fraser , Stefano Stabellini , Ian Jackson , Tim Deegan , Jan Beulich , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Tue, 2014-06-03 at 14:15 +0100, 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 Acked-by: Ian Campbell It's a bit ambiguous for hvm params which the hypervisor doesn't actually interpret but strictly speaking this needs to be CCd to the h/v guys. Added Jan/Keir.Tim. > --- > 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..4d7c692 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 physical address space. */ > +#define HVM_PARAM_VM_GENERATION_ID_ADDR 32 > + > +#define HVM_NR_PARAMS 33 > > #endif /* __XEN_PUBLIC_HVM_PARAMS_H__ */