From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: VMX: Host NMI triggering on NMI vmexit Date: Sat, 20 Sep 2008 08:55:55 +0200 Message-ID: <48D49E7B.9030606@web.de> References: <48CF97F1.9090004@siemens.com> <48D429B1.6090105@redhat.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigA09D0CAE781C071FD038E952" Cc: "Yang, Sheng" , kvm-devel To: Avi Kivity Return-path: Received: from fmmailgate03.web.de ([217.72.192.234]:44216 "EHLO fmmailgate03.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750957AbYITG4C (ORCPT ); Sat, 20 Sep 2008 02:56:02 -0400 In-Reply-To: <48D429B1.6090105@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA09D0CAE781C071FD038E952 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Avi Kivity wrote: > Jan Kiszka wrote: >> Sheng, >> >> out of curiosity: vmx_vcpu_run invokes 'int $2' to trigger a host NMI = if >> the VM exited due to an external NMI event. According to Intel specs I= >> have, software-triggered NMIs do not block hardware NMIs. So are we >> facing the risk to receive another NMI while running the first handler= ? >> Or will the VM be left with the hardware blocking logic armed? Or does= >> Linux not care about NMI handler re-entrance? >> =20 >=20 > All good questions. Usually this doesn't happen since NMI sources are > far apart (oprofile, watchdog). Only true until you have multiple unsynchronized NMI sources, e.g. inter-CPU NMIs of kgdb + a watchdog. I just stumbled over several bugs in kvm's and my own NMI code that were triggered by such a scenario (sigh...). >=20 > Maybe the answer is to generate the local nmi via an IPI-to-self comman= d > to the local apic. >=20 That sounds like a good idea, will look into this right after fixing the other NMI issues. Jan --------------enigA09D0CAE781C071FD038E952 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkjUnn8ACgkQniDOoMHTA+l2PQCfb59ojhgiKRkoT7Y/7Tdy/FsF 4sEAnA5XBPnT5Dq7Rgb2BX63qc4eN21X =/QoS -----END PGP SIGNATURE----- --------------enigA09D0CAE781C071FD038E952--