aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/pmtimer.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-05-20 14:17:15 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-05-20 14:17:15 +0100
commit509529e99148111a429d9ec39d524e462b80332a (patch)
tree3296cf1ed09add9ff8031cd7a4c52b5a855936ff /xen/arch/x86/hvm/pmtimer.c
parentcc62c82dd2086625d42e0cacd2901ab686b23922 (diff)
downloadxen-509529e99148111a429d9ec39d524e462b80332a.tar.gz
xen-509529e99148111a429d9ec39d524e462b80332a.tar.bz2
xen-509529e99148111a429d9ec39d524e462b80332a.zip
x86 hvm: Xen interface and implementation for virtual S3
Signed-off-by: Tian Kevin <kevin.tian@intel.com> Signed-off-by: Yu Ke <ke.yu@intel.com> Signed-off-by: Ke Liping <liping.ke@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/hvm/pmtimer.c')
-rw-r--r--xen/arch/x86/hvm/pmtimer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xen/arch/x86/hvm/pmtimer.c b/xen/arch/x86/hvm/pmtimer.c
index 4924a80687..ee5b58f37d 100644
--- a/xen/arch/x86/hvm/pmtimer.c
+++ b/xen/arch/x86/hvm/pmtimer.c
@@ -276,3 +276,9 @@ void pmtimer_deinit(struct domain *d)
PMTState *s = &d->arch.hvm_domain.pl_time.vpmt;
kill_timer(&s->timer);
}
+
+void pmtimer_reset(struct domain *d)
+{
+ /* Reset the counter. */
+ d->arch.hvm_domain.pl_time.vpmt.pm.tmr_val = 0;
+}