aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/intercept.c
diff options
context:
space:
mode:
authorTim Deegan <Tim.Deegan@xensource.com>2007-01-31 10:28:47 +0000
committerTim Deegan <Tim.Deegan@xensource.com>2007-01-31 10:28:47 +0000
commit221012416bdb1bf62788be68f8eb9a6c6241f3b0 (patch)
tree63359e900d92fb4e868c14e7f83efc1f774b7ed9 /xen/arch/x86/hvm/intercept.c
parent674ccf326621592d655c3137cb2799a815857c58 (diff)
downloadxen-221012416bdb1bf62788be68f8eb9a6c6241f3b0.tar.gz
xen-221012416bdb1bf62788be68f8eb9a6c6241f3b0.tar.bz2
xen-221012416bdb1bf62788be68f8eb9a6c6241f3b0.zip
[HVM] Save/restore: save RTC state.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Diffstat (limited to 'xen/arch/x86/hvm/intercept.c')
-rw-r--r--xen/arch/x86/hvm/intercept.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/xen/arch/x86/hvm/intercept.c b/xen/arch/x86/hvm/intercept.c
index d5a9393c1d..802f67e077 100644
--- a/xen/arch/x86/hvm/intercept.c
+++ b/xen/arch/x86/hvm/intercept.c
@@ -161,10 +161,12 @@ static inline void hvm_mmio_access(struct vcpu *v,
static struct {
hvm_save_handler save;
hvm_load_handler load;
-} hvm_sr_handlers [HVM_SAVE_CODE_MAX + 1] = {{NULL, NULL},};
+ const char *name;
+} hvm_sr_handlers [HVM_SAVE_CODE_MAX + 1] = {{NULL, NULL, "<?>"},};
/* Init-time function to add entries to that list */
void hvm_register_savevm(uint16_t typecode,
+ const char *name,
hvm_save_handler save_state,
hvm_load_handler load_state)
{
@@ -173,6 +175,7 @@ void hvm_register_savevm(uint16_t typecode,
ASSERT(hvm_sr_handlers[typecode].load == NULL);
hvm_sr_handlers[typecode].save = save_state;
hvm_sr_handlers[typecode].load = load_state;
+ hvm_sr_handlers[typecode].name = name;
}
@@ -211,6 +214,7 @@ int hvm_save(struct domain *d, hvm_domain_context_t *h)
handler = hvm_sr_handlers[i].save;
if ( handler != NULL )
{
+ gdprintk(XENLOG_INFO, "HVM save: %s\n", hvm_sr_handlers[i].name);
if ( handler(d, h) != 0 )
{
gdprintk(XENLOG_ERR,
@@ -312,6 +316,8 @@ int hvm_load(struct domain *d, hvm_domain_context_t *h)
}
/* Load the entry */
+ gdprintk(XENLOG_INFO, "HVM restore: %s %"PRIu16"\n",
+ hvm_sr_handlers[desc->typecode].name, desc->instance);
if ( handler(d, h) != 0 )
{
gdprintk(XENLOG_ERR,