From: "Zhai, Edwin" <edwin.zhai@intel.com>
To: Ian Pratt <Ian.Pratt@cl.cam.ac.uk>,
Keir Fraser <Keir.Fraser@cl.cam.ac.uk>,
Tim Deegan <Tim.Deegan@xensource.com>
Cc: xen-devel@lists.xensource.com, edwin.zhai@intel.com
Subject: [PATCH][HVM] fix smp guest hang after restore
Date: Tue, 30 Jan 2007 19:45:01 +0800 [thread overview]
Message-ID: <20070130114501.GA22389@edwin-gen.sh.intel.com> (raw)
[PATCH][HVM] fix smp guest hang after restore
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
update the pt irq after restore, otherwise all lapic timer intr are lost
diff -r 6b5606877bb4 xen/arch/x86/hvm/vlapic.c
--- a/xen/arch/x86/hvm/vlapic.c Fri Sep 15 17:05:38 2006 +0800
+++ b/xen/arch/x86/hvm/vlapic.c Tue Jan 30 18:03:19 2007 +0800
@@ -836,14 +836,16 @@ static int lapic_load(hvm_domain_context
tmict = vlapic_get_reg(s, APIC_TMICT);
if (tmict > 0) {
uint64_t period = APIC_BUS_CYCLE_NS * (uint32_t)tmict * s->hw.timer_divisor;
-
+ uint32_t lvtt = vlapic_get_reg(s, APIC_LVTT);
+
+ s->pt.irq = lvtt & APIC_VECTOR_MASK;
create_periodic_time(v, &s->pt, period, s->pt.irq,
vlapic_lvtt_period(s), NULL, s);
printk("lapic_load to rearm the actimer:"
"bus cycle is %uns, "
- "saved tmict count %lu, period %"PRIu64"ns\n",
- APIC_BUS_CYCLE_NS, tmict, period);
+ "saved tmict count %lu, period %"PRIu64"ns, irq=%"PRIu8"\n",
+ APIC_BUS_CYCLE_NS, tmict, period, s->pt.irq);
}
reply other threads:[~2007-01-30 11:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070130114501.GA22389@edwin-gen.sh.intel.com \
--to=edwin.zhai@intel.com \
--cc=Ian.Pratt@cl.cam.ac.uk \
--cc=Keir.Fraser@cl.cam.ac.uk \
--cc=Tim.Deegan@xensource.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.