ia64/xen-unstable

changeset 15617:ad1c6cf0baaf

hvm: Only complain about short-period periodic tickers.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Wed Jul 18 11:00:32 2007 +0100 (2007-07-18)
parents 2cbaa58b1311
children e1f74a5a09cb
files xen/arch/x86/hvm/vpt.c
line diff
     1.1 --- a/xen/arch/x86/hvm/vpt.c	Wed Jul 18 10:10:04 2007 +0100
     1.2 +++ b/xen/arch/x86/hvm/vpt.c	Wed Jul 18 11:00:32 2007 +0100
     1.3 @@ -261,13 +261,15 @@ void create_periodic_time(
     1.4      pt->enabled = 1;
     1.5      pt->pending_intr_nr = 0;
     1.6  
     1.7 -    if ( period < 900000 ) /* < 0.9 ms */
     1.8 +    /* Periodic timer must be at least 0.9ms. */
     1.9 +    if ( (period < 900000) && !one_shot )
    1.10      {
    1.11          gdprintk(XENLOG_WARNING,
    1.12                   "HVM_PlatformTime: program too small period %"PRIu64"\n",
    1.13                   period);
    1.14 -        period = 900000; /* force to 0.9ms */
    1.15 +        period = 900000;
    1.16      }
    1.17 +
    1.18      pt->period = period;
    1.19      pt->vcpu = v;
    1.20      pt->last_plt_gtime = hvm_get_guest_time(pt->vcpu);