From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: [PATCH v6 00/15] Nested EPT Date: Sun, 4 Aug 2013 16:44:35 +0300 Message-ID: <20130804134435.GR6042@redhat.com> References: <1375366117-9014-1-git-send-email-gleb@redhat.com> <51FE1DD9.80904@web.de> <20130804093205.GJ6042@redhat.com> <20130804095355.GK6042@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org, Xiao Guangrong , Jun Nakajima , Yang Zhang , pbonzini@redhat.com To: Jan Kiszka Return-path: Received: from mx1.redhat.com ([209.132.183.28]:60829 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752568Ab3HDNoj (ORCPT ); Sun, 4 Aug 2013 09:44:39 -0400 Content-Disposition: inline In-Reply-To: <20130804095355.GK6042@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Sun, Aug 04, 2013 at 12:53:56PM +0300, Gleb Natapov wrote: > On Sun, Aug 04, 2013 at 12:32:06PM +0300, Gleb Natapov wrote: > > On Sun, Aug 04, 2013 at 11:24:41AM +0200, Jan Kiszka wrote: > > > On 2013-08-01 16:08, Gleb Natapov wrote: > > > > Another day -- another version of the nested EPT patches. In this version > > > > included fix for need_remote_flush() with shadowed ept, set bits 6:8 > > > > of exit_qualification during ept_violation, update_permission_bitmask() > > > > made to work with shadowed ept pages and other small adjustment according > > > > to review comments. > > > > > > Was just testing it here and ran into a bug: I've L2 accessing the HPET > > > MMIO region that my L1 passed through from L0 (where it is supposed to > > > be emulated in this setup). This used to work with an older posting of > > Not sure I understand your setup. L0 emulates HPET, L1 passes it through > > to L2 (mmaps it and creates kvm slot that points to it) and when L2 > > accessed it it locks up? > > > > > Jun, but now it locks up (infinite loop over L2's MMIO access, no L2->L1 > > > transition). Any ideas where to look for debugging this? > > > > > Can you do an ftrace -e kvm -e kvmmmu? Unit test will also be helpful :) > > > I did an MMIO access from nested guest in the vmx unit test (which is > naturally passed through to L0 since L1 is so simple) and I can see that > the access hits L0. > But then unit test not yet uses nested EPT :) -- Gleb.