projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
880562a
)
[HVM] Save/restore: Reset PIT period correctly
author
Tim Deegan
<Tim.Deegan@xensource.com>
Tue, 30 Jan 2007 18:30:27 +0000
(18:30 +0000)
committer
Tim Deegan
<Tim.Deegan@xensource.com>
Tue, 30 Jan 2007 18:30:27 +0000
(18:30 +0000)
This fixes some time-speedup after restore in guests that use the PIT.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
xen/arch/x86/hvm/i8254.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/hvm/i8254.c
b/xen/arch/x86/hvm/i8254.c
index 61f997c051af22195fabfd185a029d13530f277d..2fe8ad5f5f4811b464f3652694c0f2455d22a20a 100644
(file)
--- 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]);
}