diff options
author | Tim Deegan <Tim.Deegan@xensource.com> | 2007-01-30 18:30:27 +0000 |
---|---|---|
committer | Tim Deegan <Tim.Deegan@xensource.com> | 2007-01-30 18:30:27 +0000 |
commit | 11e16a75a0ff0e57b270ee92cc3439b4238a1059 (patch) | |
tree | e974603ddafd5e0e2f76eb62c969b2b776dc6f1f /xen/arch/x86/hvm/i8254.c | |
parent | 880562ad8b6fa0e48f6ae8b1bb7376f9fb4489da (diff) | |
download | xen-11e16a75a0ff0e57b270ee92cc3439b4238a1059.tar.gz xen-11e16a75a0ff0e57b270ee92cc3439b4238a1059.tar.bz2 xen-11e16a75a0ff0e57b270ee92cc3439b4238a1059.zip |
[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 <Tim.Deegan@xensource.com>
Diffstat (limited to 'xen/arch/x86/hvm/i8254.c')
-rw-r--r-- | xen/arch/x86/hvm/i8254.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]); } |