xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* LWP Interrupt Handler
@ 2012-03-23 22:03 Wei Huang
  2012-03-23 22:49 ` Keir Fraser
  0 siblings, 1 reply; 8+ messages in thread
From: Wei Huang @ 2012-03-23 22:03 UTC (permalink / raw)
  To: xen-devel, Keir Fraser, Jan Beulich

I am adding interrupt support for LWP, whose spec is available at 
http://support.amd.com/us/Processor_TechDocs/43724.pdf. Basically OS can 
specify an interrupt vector in LWP_CFG MSR; the interrupt will be 
triggered when event buffer overflows. For HVM guests, I want to 
re-inject this interrupt back into the guest VM. Here is one idea 
similar to virtualized PMU: It first registers a special interrupt 
handler (say on vector 0xf6) using set_intr_gate(). When triggered, this 
handler injects an IRQ (with vector copied from LWP_CFG) into guest VM 
via virtual local APIC. This worked from my test.

But adding a interrupt handler seems to be an overkill. Is there any 
better way to create a dummy interrupt receiver on be-behalf of guest 
VMs? I also looked into IRQ and MSI solutions inside Xen. But most of 
them assume that interrupts are from physical device (but not in this 
LWP case, where interrupt is initiated from CPU itself); so they don't 
fit very well.

Thanks,
-Wei

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-03-30 20:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-23 22:03 LWP Interrupt Handler Wei Huang
2012-03-23 22:49 ` Keir Fraser
2012-03-26  0:08   ` Zhang, Xiantao
2012-03-29 22:54     ` Wei Huang
2012-03-30  8:21       ` Keir Fraser
2012-03-30 19:44         ` Wei Huang
2012-03-30 20:06           ` Keir Fraser
2012-03-30 20:11             ` Wei Huang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).