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-unstable] x86 hvm: Support interrupt delivery for P

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86 hvm: Support interrupt delivery for PIT channel 0 when in modes 3 and 4.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 06 May 2008 08:30:13 -0700
Delivery-date: Tue, 06 May 2008 08:30:12 -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 1210087224 -3600
# Node ID a95c2e36d6fda747279123ab13bfaf40c4041337
# Parent  ab2d9e75098d5a17b38d3d84bd8c65d9d4f39b9f
x86 hvm: Support interrupt delivery for PIT channel 0 when in modes 3 and 4.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/hvm/i8254.c |   28 +++++++++++++++-------------
 1 files changed, 15 insertions(+), 13 deletions(-)

diff -r ab2d9e75098d -r a95c2e36d6fd xen/arch/x86/hvm/i8254.c
--- a/xen/arch/x86/hvm/i8254.c  Tue May 06 15:31:15 2008 +0100
+++ b/xen/arch/x86/hvm/i8254.c  Tue May 06 16:20:24 2008 +0100
@@ -206,19 +206,21 @@ static void pit_load_count(PITState *pit
 
     switch ( s->mode )
     {
-        case 2:
-            /* Periodic timer. */
-            create_periodic_time(v, &pit->pt0, period, 0, 0, pit_time_fired, 
-                                 &pit->count_load_time[channel]);
-            break;
-        case 1:
-            /* One-shot timer. */
-            create_periodic_time(v, &pit->pt0, period, 0, 1, pit_time_fired,
-                                 &pit->count_load_time[channel]);
-            break;
-        default:
-            destroy_periodic_time(&pit->pt0);
-            break;
+    case 2:
+    case 3:
+        /* Periodic timer. */
+        create_periodic_time(v, &pit->pt0, period, 0, 0, pit_time_fired, 
+                             &pit->count_load_time[channel]);
+        break;
+    case 1:
+    case 4:
+        /* One-shot timer. */
+        create_periodic_time(v, &pit->pt0, period, 0, 1, pit_time_fired,
+                             &pit->count_load_time[channel]);
+        break;
+    default:
+        destroy_periodic_time(&pit->pt0);
+        break;
     }
 }
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] x86 hvm: Support interrupt delivery for PIT channel 0 when in modes 3 and 4., Xen patchbot-unstable <=