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: clean up vpt's period_cycles fi

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86, hvm: clean up vpt's period_cycles field
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 28 Jul 2009 09:10:47 -0700
Delivery-date: Tue, 28 Jul 2009 09:13:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/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 1248795634 -3600
# Node ID b0376518cf29c826eabf51e964643de75fcd5452
# Parent  298a35c11ad16a3f8a33c215aa3553d03db9437d
x86,hvm: clean up vpt's period_cycles field

In struct periodic_time, pt->period_cycles is not cpu cycles since c/s
17716 and its value is always the same as pt->period.

Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
---
 xen/arch/x86/hvm/vpt.c        |    9 ++++-----
 xen/include/asm-x86/hvm/vpt.h |    1 -
 2 files changed, 4 insertions(+), 6 deletions(-)

diff -r 298a35c11ad1 -r b0376518cf29 xen/arch/x86/hvm/vpt.c
--- a/xen/arch/x86/hvm/vpt.c    Tue Jul 28 16:38:08 2009 +0100
+++ b/xen/arch/x86/hvm/vpt.c    Tue Jul 28 16:40:34 2009 +0100
@@ -230,9 +230,9 @@ void pt_update_irq(struct vcpu *v)
     list_for_each_entry ( pt, head, list )
     {
         if ( !pt_irq_masked(pt) && pt->pending_intr_nr &&
-             ((pt->last_plt_gtime + pt->period_cycles) < max_lag) )
-        {
-            max_lag = pt->last_plt_gtime + pt->period_cycles;
+             ((pt->last_plt_gtime + pt->period) < max_lag) )
+        {
+            max_lag = pt->last_plt_gtime + pt->period;
             earliest_pt = pt;
         }
     }
@@ -309,7 +309,7 @@ void pt_intr_post(struct vcpu *v, struct
         }
         else
         {
-            pt->last_plt_gtime += pt->period_cycles;
+            pt->last_plt_gtime += pt->period;
             pt->pending_intr_nr--;
         }
     }
@@ -385,7 +385,6 @@ void create_periodic_time(
     pt->vcpu = v;
     pt->last_plt_gtime = hvm_get_guest_time(pt->vcpu);
     pt->irq = irq;
-    pt->period_cycles = (u64)period;
     pt->one_shot = !period;
     pt->scheduled = NOW() + delta;
 
diff -r 298a35c11ad1 -r b0376518cf29 xen/include/asm-x86/hvm/vpt.h
--- a/xen/include/asm-x86/hvm/vpt.h     Tue Jul 28 16:38:08 2009 +0100
+++ b/xen/include/asm-x86/hvm/vpt.h     Tue Jul 28 16:40:34 2009 +0100
@@ -51,7 +51,6 @@ struct periodic_time {
     struct vcpu *vcpu;          /* vcpu timer interrupt delivers to */
     u32 pending_intr_nr;        /* pending timer interrupts */
     u64 period;                 /* frequency in ns */
-    u64 period_cycles;          /* frequency in cpu cycles */
     s_time_t scheduled;         /* scheduled timer interrupt */
     u64 last_plt_gtime;         /* platform time when last IRQ is injected */
     struct timer timer;         /* ac_timer */

_______________________________________________
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: clean up vpt's period_cycles field, Xen patchbot-unstable <=