kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* NMI Injection to Guest
@ 2009-07-25 20:46 Jiaqing Du
  2009-07-26  5:47 ` Gleb Natapov
  0 siblings, 1 reply; 9+ messages in thread
From: Jiaqing Du @ 2009-07-25 20:46 UTC (permalink / raw)
  To: kvm

Hi list,

I'm trying to extend OProfile to support guest profiling. One step of
my work is to push an NMI to the guest(s) when a performance counter
overflows. Please correct me if the following is not correct:

counter overflow --> NMI to host --> VM exit --> "int $2" to handle
NMI on host --> ...   --> VM entry --> NMI to guest

On the path between VM-exit and VM-entry, I want to push an NMI to the
guest. I tried to put the following code on the path, but never
succeeded. Various wired things happened, such as KVM hangs, guest
kernel oops, and host hangs. I tried both code with Linux 2.6.30 and
version 88.

if (vmx_nmi_allowed())  { vmx_inject_nmi(); }

Any suggestions? Where is the right place to push an NMI and what are
the necessary checks?


Thanks,
Jiaqing

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

end of thread, other threads:[~2009-08-02  9:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-25 20:46 NMI Injection to Guest Jiaqing Du
2009-07-26  5:47 ` Gleb Natapov
2009-07-26 19:25   ` Jiaqing Du
2009-07-26 19:41     ` Nipun sehrawat
2009-07-27  5:19       ` Gleb Natapov
2009-07-27  5:17     ` Gleb Natapov
2009-07-30 13:24       ` Jiaqing Du
2009-08-01 15:36         ` Jiaqing Du
2009-08-02  9:15           ` Gleb Natapov

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).