From 11e16a75a0ff0e57b270ee92cc3439b4238a1059 Mon Sep 17 00:00:00 2001 From: Tim Deegan Date: Tue, 30 Jan 2007 18:30:27 +0000 Subject: [PATCH] [HVM] Save/restore: Reset PIT period correctly This fixes some time-speedup after restore in guests that use the PIT. Signed-off-by: Tim Deegan --- xen/arch/x86/hvm/i8254.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/i8254.c b/xen/arch/x86/hvm/i8254.c index 61f997c051..2fe8ad5f5f 100644 --- a/xen/arch/x86/hvm/i8254.c +++ b/xen/arch/x86/hvm/i8254.c @@ -439,7 +439,7 @@ static int pit_load(hvm_domain_context_t *h, void *opaque, int version_id) * we hope the guest can handle it. */ for(i = 0; i < 3; i++) { - pit_load_count(pit, i, pit_get_count(pit, i)); + pit_load_count(pit, i, pit->hw.channels[i].count); pit->pt[i].last_plt_gtime = hvm_get_guest_time(d->vcpu[0]); } -- 2.30.2