From: Gleb Natapov <gleb@redhat.com>
To: Sasha Levin <levinsasha928@gmail.com>
Cc: penberg@kernel.org, mingo@elte.hu, gorcunov@gmail.com,
asias.hejun@gmail.com, kvm@vger.kernel.org
Subject: Re: [PATCH] kvm tools: Add 'kvm nmi' command
Date: Wed, 7 Dec 2011 12:21:52 +0200 [thread overview]
Message-ID: <20111207102152.GP12507@redhat.com> (raw)
In-Reply-To: <1323204175-17234-1-git-send-email-levinsasha928@gmail.com>
On Tue, Dec 06, 2011 at 10:42:55PM +0200, Sasha Levin wrote:
> +static void handle_nmi(int fd, u32 type, u32 len, u8 *msg)
> +{
> + u32 vcpu = *(u32 *)msg;
> +
> + ioctl(kvm_cpus[vcpu]->vcpu_fd, KVM_NMI);
You need to check that vcpu apic's LINT1 is configured to receive
NMI (and not masked obviously) before injecting NMI.
--
Gleb.
next prev parent reply other threads:[~2011-12-07 10:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-06 20:42 [PATCH] kvm tools: Add 'kvm nmi' command Sasha Levin
2011-12-07 8:16 ` Ingo Molnar
2011-12-07 17:13 ` Pekka Enberg
2011-12-07 17:31 ` Sasha Levin
2011-12-07 10:21 ` Gleb Natapov [this message]
2011-12-07 10:31 ` Cyrill Gorcunov
2011-12-07 10:33 ` Gleb Natapov
2011-12-07 10:37 ` Cyrill Gorcunov
2011-12-07 10:41 ` Gleb Natapov
2011-12-07 10:49 ` Cyrill Gorcunov
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=20111207102152.GP12507@redhat.com \
--to=gleb@redhat.com \
--cc=asias.hejun@gmail.com \
--cc=gorcunov@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=levinsasha928@gmail.com \
--cc=mingo@elte.hu \
--cc=penberg@kernel.org \
/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 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).