WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-3.2-testing] x86 hvm: Warn only once per time sourc

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.2-testing] x86 hvm: Warn only once per time source when the periodic tiemout is
From: "Xen patchbot-3.2-testing" <patchbot-3.2-testing@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 13 May 2008 08:31:15 -0700
Delivery-date: Tue, 13 May 2008 08:31:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1210688102 -3600
# Node ID 9bb37012b63e58890d4b8eab956dc2722ddb433d
# Parent  1f673d541aad6bdddff72cae57fc89210e089089
x86 hvm: Warn only once per time source when the periodic tiemout is
set 'too small'.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   17579:cc953475ab149a61defff06de237295a7feb882d
xen-unstable date:        Tue May 06 16:20:54 2008 +0100
---
 xen/arch/x86/hvm/vpt.c        |    6 +++---
 xen/include/asm-x86/hvm/vpt.h |    1 +
 2 files changed, 4 insertions(+), 3 deletions(-)

diff -r 1f673d541aad -r 9bb37012b63e xen/arch/x86/hvm/vpt.c
--- a/xen/arch/x86/hvm/vpt.c    Tue May 13 15:14:34 2008 +0100
+++ b/xen/arch/x86/hvm/vpt.c    Tue May 13 15:15:02 2008 +0100
@@ -338,9 +338,9 @@ void create_periodic_time(
     /* 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);
+        if ( !test_and_set_bool(pt->warned_timeout_too_short) )
+            gdprintk(XENLOG_WARNING, "HVM_PlatformTime: program too "
+                     "small period %"PRIu64"\n", period);
         period = 900000;
     }
 
diff -r 1f673d541aad -r 9bb37012b63e xen/include/asm-x86/hvm/vpt.h
--- a/xen/include/asm-x86/hvm/vpt.h     Tue May 13 15:14:34 2008 +0100
+++ b/xen/include/asm-x86/hvm/vpt.h     Tue May 13 15:15:02 2008 +0100
@@ -78,6 +78,7 @@ struct periodic_time {
     bool_t one_shot;
     bool_t do_not_freeze;
     bool_t irq_issued;
+    bool_t warned_timeout_too_short;
 #define PTSRC_isa    1 /* ISA time source */
 #define PTSRC_lapic  2 /* LAPIC time source */
     u8 source;                  /* PTSRC_ */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.2-testing] x86 hvm: Warn only once per time source when the periodic tiemout is, Xen patchbot-3.2-testing <=