aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/vpt.c
diff options
context:
space:
mode:
authorJan Beulich <none@none>2012-09-12 13:24:28 +0200
committerJan Beulich <none@none>2012-09-12 13:24:28 +0200
commitb314cd733413babc5978b819793ad5c77f094adf (patch)
tree99c53f795049072267f8d4ca89abe1843afd0f4b /xen/arch/x86/hvm/vpt.c
parent6da1e2af7d2bc70d697fcc605745df038b078eb6 (diff)
downloadxen-b314cd733413babc5978b819793ad5c77f094adf.tar.gz
xen-b314cd733413babc5978b819793ad5c77f094adf.tar.bz2
xen-b314cd733413babc5978b819793ad5c77f094adf.zip
Revert 25843:51090fe1ab97 (x86/HVM: assorted RTC emulation adjustments)
This was found to cause RHEL6 HVM guests to hang during shutdown.
Diffstat (limited to 'xen/arch/x86/hvm/vpt.c')
-rw-r--r--xen/arch/x86/hvm/vpt.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/xen/arch/x86/hvm/vpt.c b/xen/arch/x86/hvm/vpt.c
index 63535115b7..353eda0343 100644
--- a/xen/arch/x86/hvm/vpt.c
+++ b/xen/arch/x86/hvm/vpt.c
@@ -22,7 +22,6 @@
#include <asm/hvm/vpt.h>
#include <asm/event.h>
#include <asm/apic.h>
-#include <asm/mc146818rtc.h>
#define mode_is(d, name) \
((d)->arch.hvm_domain.params[HVM_PARAM_TIMER_MODE] == HVMPTM_##name)
@@ -219,7 +218,6 @@ void pt_update_irq(struct vcpu *v)
struct periodic_time *pt, *temp, *earliest_pt = NULL;
uint64_t max_lag = -1ULL;
int irq, is_lapic;
- void *pt_priv;
spin_lock(&v->arch.hvm_vcpu.tm_lock);
@@ -253,14 +251,13 @@ void pt_update_irq(struct vcpu *v)
earliest_pt->irq_issued = 1;
irq = earliest_pt->irq;
is_lapic = (earliest_pt->source == PTSRC_lapic);
- pt_priv = earliest_pt->priv;
spin_unlock(&v->arch.hvm_vcpu.tm_lock);
if ( is_lapic )
+ {
vlapic_set_irq(vcpu_vlapic(v), irq, 0);
- else if ( irq == RTC_IRQ && pt_priv )
- rtc_periodic_interrupt(pt_priv);
+ }
else
{
hvm_isa_irq_deassert(v->domain, irq);