aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/hpet.c
diff options
context:
space:
mode:
authorTim Deegan <Tim.Deegan@xensource.com>2007-02-05 11:38:22 +0000
committerTim Deegan <Tim.Deegan@xensource.com>2007-02-05 11:38:22 +0000
commit12d64eed3d3b117f44af1f6927b21464513358fb (patch)
tree369536c2db17dd77068542faebe68caffb57fb1c /xen/arch/x86/hvm/hpet.c
parentec48ab815b556a8f0a2ba9c5287b13fd4cf39607 (diff)
downloadxen-12d64eed3d3b117f44af1f6927b21464513358fb.tar.gz
xen-12d64eed3d3b117f44af1f6927b21464513358fb.tar.bz2
xen-12d64eed3d3b117f44af1f6927b21464513358fb.zip
[HVM] Save/restore: misc tidying
- Don't save PIT's last-load-time or CPU's vmx-assist bits - Reorder save as cpu, PICs, irqs, timers - Save the correct value in the HPET's counter. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Diffstat (limited to 'xen/arch/x86/hvm/hpet.c')
-rw-r--r--xen/arch/x86/hvm/hpet.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/arch/x86/hvm/hpet.c b/xen/arch/x86/hvm/hpet.c
index dcc6ca3a4d..6269e149a8 100644
--- a/xen/arch/x86/hvm/hpet.c
+++ b/xen/arch/x86/hvm/hpet.c
@@ -383,6 +383,9 @@ static int hpet_save(struct domain *d, hvm_domain_context_t *h)
{
HPETState *hp = &d->arch.hvm_domain.pl_time.vhpet;
+ /* Write the proper value into the main counter */
+ hp->hpet.mc64 = hp->mc_offset + hvm_get_guest_time(hp->vcpu);
+
/* Save the HPET registers */
return hvm_save_entry(HPET, 0, h, &hp->hpet);
}