From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: [PATCH 11/11] nEPT: Provide the correct exit qualification upon EPT Date: Sun, 28 Apr 2013 11:35:55 +0200 Message-ID: <517CED7B.5060505@web.de> References: <1366958611-6935-1-git-send-email-jun.nakajima@intel.com> <1366958611-6935-2-git-send-email-jun.nakajima@intel.com> <1366958611-6935-3-git-send-email-jun.nakajima@intel.com> <1366958611-6935-4-git-send-email-jun.nakajima@intel.com> <1366958611-6935-5-git-send-email-jun.nakajima@intel.com> <1366958611-6935-6-git-send-email-jun.nakajima@intel.com> <1366958611-6935-7-git-send-email-jun.nakajima@intel.com> <1366958611-6935-8-git-send-email-jun.nakajima@intel.com> <1366958611-6935-9-git-send-email-jun.nakajima@intel.com> <1366958611-6935-10-git-send-email-jun.nakajima@intel.com> <1366958611-6935-11-git-send-email-jun.nakajima@intel.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2SPEKDNBIBPKVFTONHNAI" Cc: "Nakajima, Jun" , "kvm@vger.kernel.org" To: "Xu, Xinhao" Return-path: Received: from mout.web.de ([212.227.17.12]:59144 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752108Ab3D1JgD (ORCPT ); Sun, 28 Apr 2013 05:36:03 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2SPEKDNBIBPKVFTONHNAI Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2013-04-27 08:42, Xu, Xinhao wrote: > From 2df72c1e8e3b167a6008ab11e2a68d734c68e425 Mon Sep 17 00:00:00 2001 > From: Xinhao Xu > Date: Sat, 27 Apr 2013 05:45:49 +0800 > Subject: [PATCH] nEPT: Check EPT misconfiguration while walking addr & = move pte > check code to vmx.c Please fix up the subject when posting a patch in reply to another one. >=20 > I add code to detect EPT misconfiguration and inject it to L1. > Now L1 can correctly go to ept_misconfig handler(instead of > wrongly going to fast_page_fault), it will try to handle mmio > page fault, if failed, it is a real ept misconfiguration. >=20 > For scalability, Xiantao suggests me moving vendor specific > code out from common code. In order to do this, I add new ops > in kvm_mmu struct, check_tdp_pte, to provide an interface to > check fault while walking address. The better way is to do > fault detecting at here, but so far I just have checked ept > misconfiguration. More patches will be added in future. Seems there are some issues remaining. I can boot Linux as L2 when I remove this patch. When it's applied, L2 becomes pretty slow and eventually resets during kernel boot of L2. L1 remains stable. Jan ------enig2SPEKDNBIBPKVFTONHNAI 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.16 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlF87XwACgkQitSsb3rl5xQqtgCZATNJBQG1/OD5LAYz8DocCcXr pnMAoNm0f4iTYkETEt0B70FnYoGuHmF/ =Ojqt -----END PGP SIGNATURE----- ------enig2SPEKDNBIBPKVFTONHNAI--