aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/hpet.c
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2010-12-15 10:21:05 +0000
committerKeir Fraser <keir@xen.org>2010-12-15 10:21:05 +0000
commite03284b00e3690bc96e0092dfc248bb6e5290ee4 (patch)
tree10bf3dbffd9d507015ca0a0b7ccce3762650de30 /xen/arch/x86/hvm/hpet.c
parent16f40060bcea71509daef897ecb80e91cfbaef99 (diff)
downloadxen-e03284b00e3690bc96e0092dfc248bb6e5290ee4.tar.gz
xen-e03284b00e3690bc96e0092dfc248bb6e5290ee4.tar.bz2
xen-e03284b00e3690bc96e0092dfc248bb6e5290ee4.zip
hvm save: Introduce hvm_load_entry_zeroextend().
In certain cases this will allow us to load old HVM save images where an HVM saved chunk has subsequently been extended with new fields. Rather than fail to load the chunk, we can pad the extended structure with zeroes, if the caller knows how to handle that. Signed-off-by: Keir Fraser <keir@xen.org> Acked-by: Tim Deegan <Tim.Deegan@citrix.com>
Diffstat (limited to 'xen/arch/x86/hvm/hpet.c')
-rw-r--r--xen/arch/x86/hvm/hpet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/hvm/hpet.c b/xen/arch/x86/hvm/hpet.c
index 25acad8e3e..fecfff253e 100644
--- a/xen/arch/x86/hvm/hpet.c
+++ b/xen/arch/x86/hvm/hpet.c
@@ -546,7 +546,7 @@ static int hpet_load(struct domain *d, hvm_domain_context_t *h)
spin_lock(&hp->lock);
/* Reload the HPET registers */
- if ( _hvm_check_entry(h, HVM_SAVE_CODE(HPET), HVM_SAVE_LENGTH(HPET)) )
+ if ( _hvm_check_entry(h, HVM_SAVE_CODE(HPET), HVM_SAVE_LENGTH(HPET), 1) )
{
spin_unlock(&hp->lock);
return -EINVAL;