Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753873AbcDFGrN (ORCPT ); Wed, 6 Apr 2016 02:47:13 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35710 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752060AbcDFGrL (ORCPT ); Wed, 6 Apr 2016 02:47:11 -0400 Subject: Re: [PATCH 17/31] kvm: teach kvm to map page teams as huge pages. To: Hugh Dickins References: <57044C3A.7060109@redhat.com> Cc: Andrew Morton , "Kirill A. Shutemov" , Andrea Arcangeli , Andres Lagar-Cavilla , Yang Shi , Ning Qu , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-mm@kvack.org From: Paolo Bonzini Message-ID: <5704B0E4.9060300@redhat.com> Date: Wed, 6 Apr 2016 08:47:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: 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: 559 Lines: 14 On 06/04/2016 03:12, Hugh Dickins wrote: > Hah, you've lighted on precisely a line of code where I changed around > what Andres had - I thought it nicer to pass down vcpu, because that > matched the function above, and in many cases vcpu is not dereferenced > here at all. So, definitely blame me not Andres for that interface. > Oh, actually I'm fine with the interface if it's in arch/x86/kvm. I'm just pointing out that---putting aside the locking question---it's a pretty generic thing that doesn't really need access to KVM data structures. Paolo