Skip to contentSkip to conversation

Image format for an HVM domain

DISCUSSION Jean-Yves Migeon (NetBSD) 3 participants 3 messages Nov 14, 2012

lore
Share & tools
lore
#0 lore raw

Hi list,

Is there a documentation somewhere where the image format for xc_domain_save/_restore is specified, or at least described?

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.

Cheers,

Signature · 2 lines
Jean-Yves Migeon
[email protected]
#1 lore raw
Quoted 4 lines · Jean-Yves Migeon (NetBSD)

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.

Quoted 6 lines

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

Quoted 3 lines

Cheers,

#2 lore raw
Quoted 6 lines · Mats Petersson
Quoted 4 lines · Jean-Yves Migeon (NetBSD)

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.

tools/libxc/xg_save_restore.h has something of a protocol doc at the top.

Ian.