direct-io.hg

changeset 13735:abd140fe5f6c

[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>
author Tim Deegan <Tim.Deegan@xensource.com>
date Tue Jan 30 18:30:27 2007 +0000 (2007-01-30)
parents fa8843d22450
children 61262143a4b0
files xen/arch/x86/hvm/i8254.c
line diff
     1.1 --- a/xen/arch/x86/hvm/i8254.c	Tue Jan 30 17:50:39 2007 +0000
     1.2 +++ b/xen/arch/x86/hvm/i8254.c	Tue Jan 30 18:30:27 2007 +0000
     1.3 @@ -439,7 +439,7 @@ static int pit_load(hvm_domain_context_t
     1.4       * we hope the guest can handle it. */
     1.5  
     1.6      for(i = 0; i < 3; i++) {
     1.7 -        pit_load_count(pit, i, pit_get_count(pit, i));
     1.8 +        pit_load_count(pit, i, pit->hw.channels[i].count);
     1.9          pit->pt[i].last_plt_gtime = hvm_get_guest_time(d->vcpu[0]);
    1.10      }
    1.11