Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754491AbbKLMIN (ORCPT ); Thu, 12 Nov 2015 07:08:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39254 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754403AbbKLMIM (ORCPT ); Thu, 12 Nov 2015 07:08:12 -0500 Subject: Re: [PATCH 00/10 V2] KVM: x86: MMU: Clean up x86's mmu code for future work To: Takuya Yoshikawa References: <20151112204849.ba920599a8426d7196a0df73@lab.ntt.co.jp> Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Marcelo Tosatti From: Paolo Bonzini Message-ID: <56448128.1090600@redhat.com> Date: Thu, 12 Nov 2015 13:08:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151112204849.ba920599a8426d7196a0df73@lab.ntt.co.jp> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1403 Lines: 37 On 12/11/2015 12:48, Takuya Yoshikawa wrote: > v1->v2: > Patch 5 and 7 are added based on Paolo's suggestions. > Patch 8-10 are new. > > Patch 1/2/3/4: no change. > Patch 5: Needed a bit more work than I had expected. > Patch 6: Removed extra comment of v1 (patch 5 made it inappropriate). > Patch 7: As expected, many places needed to be converted. > Patch 8: This is new, but only a small change. > > Patch 9: Kind of an RFC (though I have checked it to some extent). > Following two places need to be carefully checked: > - in kvm_mmu_get_page: "if (!direct)" block after kvm_mmu_alloc_page() > - in FNAME(fetch): "if (FNAME(gpte_changed)(vcpu, gw, it.level - 1))" case > Patch 10: Trivial cleanup, assuming that patch 9 is correct. > > > In summary: patch 1-7 is the result of updating v1 based on the suggestions. > Although patch 5 does not look so nice than expected, this is the most > conservative approach, and patch 8-10 try to alleviate the sadness. If it works, it's actually better than what we have now. I'll review it in a few days. Marcelo, can you look at this as well? You are still king of MMU. :) Thanks, Paolo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/