]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
hvm: Only complain about short-period periodic tickers.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 6 Dec 2007 16:15:12 +0000 (16:15 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 6 Dec 2007 16:15:12 +0000 (16:15 +0000)
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   15610:ad1c6cf0baafe149c9fe03be3255b95ffef68a34
xen-unstable date:        Wed Jul 18 11:00:32 2007 +0100

xen/arch/x86/hvm/vpt.c

index cbd1ffa8b72cd3f28eac7f9fa6e093b380cf332b..5ea7303012c3684ade9c2afabf462ce67cd56560 100644 (file)
@@ -260,13 +260,15 @@ void create_periodic_time(
     pt->enabled = 1;
     pt->pending_intr_nr = 0;
 
-    if ( period < 900000 ) /* < 0.9 ms */
+    /* Periodic timer must be at least 0.9ms. */
+    if ( (period < 900000) && !one_shot )
     {
         gdprintk(XENLOG_WARNING,
                  "HVM_PlatformTime: program too small period %"PRIu64"\n",
                  period);
-        period = 900000; /* force to 0.9ms */
+        period = 900000;
     }
+
     pt->period = period;
     pt->vcpu = v;
     pt->last_plt_gtime = hvm_get_guest_time(pt->vcpu);