|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] x86 hvm: remove pt_reset()
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1251801411 -3600
# Node ID 8fc92779847680fe40a1ee9c2a01b3effc7cd056
# Parent 05f3ca68f62ddad6145c8cd87bb11c5053e1b016
x86 hvm: remove pt_reset()
Virtual platform timers are not sync'ed with guest's TSC any more
since c/s 17716. Thus pt_reset is now useless.
Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
---
xen/arch/x86/hvm/hvm.c | 1 -
xen/arch/x86/hvm/vpt.c | 18 ------------------
xen/include/asm-x86/hvm/vpt.h | 1 -
3 files changed, 20 deletions(-)
diff -r 05f3ca68f62d -r 8fc927798476 xen/arch/x86/hvm/hvm.c
--- a/xen/arch/x86/hvm/hvm.c Tue Sep 01 11:36:16 2009 +0100
+++ b/xen/arch/x86/hvm/hvm.c Tue Sep 01 11:36:51 2009 +0100
@@ -1890,7 +1890,6 @@ int hvm_msr_write_intercept(struct cpu_u
{
case MSR_IA32_TSC:
hvm_set_guest_tsc(v, msr_content);
- pt_reset(v);
break;
case MSR_IA32_APICBASE:
diff -r 05f3ca68f62d -r 8fc927798476 xen/arch/x86/hvm/vpt.c
--- a/xen/arch/x86/hvm/vpt.c Tue Sep 01 11:36:16 2009 +0100
+++ b/xen/arch/x86/hvm/vpt.c Tue Sep 01 11:36:51 2009 +0100
@@ -327,24 +327,6 @@ void pt_intr_post(struct vcpu *v, struct
cb(v, cb_priv);
}
-void pt_reset(struct vcpu *v)
-{
- struct list_head *head = &v->arch.hvm_vcpu.tm_list;
- struct periodic_time *pt;
-
- spin_lock(&v->arch.hvm_vcpu.tm_lock);
-
- list_for_each_entry ( pt, head, list )
- {
- pt->pending_intr_nr = 0;
- pt->last_plt_gtime = hvm_get_guest_time(pt->vcpu);
- pt->scheduled = NOW() + pt->period;
- set_timer(&pt->timer, pt->scheduled);
- }
-
- spin_unlock(&v->arch.hvm_vcpu.tm_lock);
-}
-
void pt_migrate(struct vcpu *v)
{
struct list_head *head = &v->arch.hvm_vcpu.tm_list;
diff -r 05f3ca68f62d -r 8fc927798476 xen/include/asm-x86/hvm/vpt.h
--- a/xen/include/asm-x86/hvm/vpt.h Tue Sep 01 11:36:16 2009 +0100
+++ b/xen/include/asm-x86/hvm/vpt.h Tue Sep 01 11:36:51 2009 +0100
@@ -138,7 +138,6 @@ void pt_restore_timer(struct vcpu *v);
void pt_restore_timer(struct vcpu *v);
void pt_update_irq(struct vcpu *v);
void pt_intr_post(struct vcpu *v, struct hvm_intack intack);
-void pt_reset(struct vcpu *v);
void pt_migrate(struct vcpu *v);
void pt_adjust_global_vcpu_target(struct vcpu *v);
_______________________________________________
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: remove pt_reset(),
Xen patchbot-unstable <=
|
|
|
|
|