From: Nadav Har'El Subject: Re: [PATCH 02/10] nEPT: MMU context for nested EPT Date: Tue, 6 Dec 2011 14:40:04 +0200 Message-ID: <20111206124004.GA31825@fermat.math.technion.ac.il> References: <1320919040-nyh@il.ibm.com> <201111100958.pAA9wrIv019614@rice.haifa.ibm.com> <4EBBC848.7050400@redhat.com> <20111110144027.GB3327@fermat.math.technion.ac.il> <4EBBEB65.8050600@redhat.com> <20111110200532.GA17475@fermat.math.technion.ac.il> <4EBE4CE0.7070708@redhat.com> <20111112213747.GA741@fermat.math.technion.ac.il> <4EBFAA47.406@redhat.com> <4EBFD514.4030501@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Orit Wasserman , kvm@vger.kernel.org, "Roedel, Joerg" , abelg@il.ibm.com To: Avi Kivity Return-path: Received: from mailgw12.technion.ac.il ([132.68.225.12]:50439 "EHLO mailgw12.technion.ac.il" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933117Ab1LFMkK (ORCPT ); Tue, 6 Dec 2011 07:40:10 -0500 Content-Disposition: inline In-Reply-To: <4EBFD514.4030501@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Sun, Nov 13, 2011, Avi Kivity wrote about "Re: [PATCH 02/10] nEPT: MMU context for nested EPT": > On 11/13/2011 01:30 PM, Orit Wasserman wrote: > > Maybe this patch can help, this is roughly what Avi wants (I hope) done very quickly. > > I'm sorry I don't have setup to run nested VMX at the moment so i can't test it. >... > > +#define PTTYPE EPT > > +#include "paging_tmpl.h" > > +#undef PTTYPE > > Yes, that's the key. I'm now preparing a patch based on such ideas. One downside of this approach is that mmu.c (and therefore the x86 module) will now include EPT-specific functions that are of no use or relevance to the SVM code. It's not a terrible disaster, but it's "unclean". I'll try to think if there's a cleaner way. Nadav. -- Nadav Har'El | Tuesday, Dec 6 2011, nyh@math.technion.ac.il |----------------------------------------- Phone +972-523-790466, ICQ 13349191 |Writing software is like sex: One mistake http://nadav.harel.org.il |and you have to support it forever.