From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mats Petersson Subject: Re: Image format for an HVM domain Date: Wed, 14 Nov 2012 14:48:25 +0000 Message-ID: <50A3AF39.3050107@citrix.com> References: <121149b56ff3ce2fa58c8a539828fe3b@helkyn.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <121149b56ff3ce2fa58c8a539828fe3b@helkyn.dyndns.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 14/11/12 14:31, Jean-Yves Migeon (NetBSD) wrote: > Hi list, > > Is there a documentation somewhere where the image format for > xc_domain_save/_restore is specified, or at least described? I'm not aware of anything besides the source code itself. libxc/xc_domain_restore, particularly apply_batch and pagebuf_get_one are fairly straight forward. > > I am looking for one regarding an HVM domU, but can't find any in the > wiki -- Most notably, I am interested in knowing how the P2M translation > tables are dumped, in case they are differences from the one for a PV > domU. Purpose is to add its support to our NetBSD crash(8) program. > The main differences between pv and hvm can be found by searching for "hvm", such as: region_mfn[i] = hvm ? pfn : ctx->p2m[pfn]; Obviously, xc_domain_save is what produces the output, and will also contain the corresponding "if (hvm)" and "if (!hvm)" type of constructions to do things that only happen in PV or HVM guests. The actual content format is the same, the difference is derived from "is this PV or HVM". -- Mats > > Cheers, >