Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6986295imu; Mon, 3 Dec 2018 06:05:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/W3B6Fa4BsmpbiWmK8Nr1Uik0H3lXxCbU6j09EnyW22nVj8/eQogiY8njF5kVMWvW7uB+qt X-Received: by 2002:a62:37c3:: with SMTP id e186mr16409694pfa.251.1543845947361; Mon, 03 Dec 2018 06:05:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543845947; cv=none; d=google.com; s=arc-20160816; b=UBgpJEwNEXcRmmab4b6dNAkx6v5F6VURMXcXt5LpreLqlHKeJ8VtqgdYBm3y7eT3Lw P3ypI6QbX6CZcgHa4yyix+NNekq7v4HiO95YDfFjUICgPSy6D/OQ0gj/etBeVuJucwxy ugrzUDUM22/atVtTMmpKbaobUBajSOlfK3EBUpX8C+lumi88qyDNweRQxXK1Lf2dVabl E9qMoRkoG/uR546YzeaAh8zOjD271m5MQbToqCmlSVVvCqTQmB74pAmsFxYXcePxdB8z RHD1Iil38ZsLlLCkcze1F/mmKIAC+XfyPIVjZlIzX0eZJjFxTnS1wyA7s+fyb5eKEpLC +cPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=IPYE9SWSi/Uh1JBJIRdWAQbHAOBDs/sbYO0/EZL09XE=; b=uoNs5FqoOKwB15xLS5JQvdXJQmdf4Ki5WycUpxa/SgGFWZEC1i2qcAH4O4WTmcvBpB pNV+WcZyLU0zKknvswSIgF3z0OE62/fo43dseh7eFY39LunBuJahYToJgDgDE2MlQQw7 RmeziV9+ADhK31ryIV1ZHjDzJ73AXvKCsDi1f/cX8ddjMUTj+Xdp86sVQZ1B/NZIpDtM YsPPKMulHy3IQWpSkYSXR6DY9uzRmRsRc/HzjhDUL61+lr2hMmtf/EpHXheMEVbIUoY/ 6vJXJsyRZQ9oQ+9RMUqaMhwPwgpevRdhORT4F9XTNb+zqhGmCtM8AemUwTXlmanFtJZW v4Ng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b91si14997094plb.11.2018.12.03.06.05.21; Mon, 03 Dec 2018 06:05:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726221AbeLCOEW (ORCPT + 99 others); Mon, 3 Dec 2018 09:04:22 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:38004 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725897AbeLCOEW (ORCPT ); Mon, 3 Dec 2018 09:04:22 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 499F61682; Mon, 3 Dec 2018 06:03:14 -0800 (PST) Received: from [10.1.196.93] (en101.cambridge.arm.com [10.1.196.93]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9FA363F614; Mon, 3 Dec 2018 06:03:12 -0800 (PST) Subject: Re: [PATCH v9 3/8] KVM: arm/arm64: Introduce helpers to manipulate page table entries To: Anshuman Khandual , Punit Agrawal , kvmarm@lists.cs.columbia.edu Cc: marc.zyngier@arm.com, Catalin Marinas , will.deacon@arm.com, linux-kernel@vger.kernel.org, Russell King , punitagrawal@gmail.com, linux-arm-kernel@lists.infradead.org References: <20181031175745.18650-1-punit.agrawal@arm.com> <20181031175745.18650-4-punit.agrawal@arm.com> <396402d5-fddf-ab72-01c4-80dd1a0d4d44@arm.com> From: Suzuki K Poulose Message-ID: Date: Mon, 3 Dec 2018 14:03:11 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <396402d5-fddf-ab72-01c4-80dd1a0d4d44@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Anshuman, On 03/12/2018 13:50, Anshuman Khandual wrote: > > > On 10/31/2018 11:27 PM, Punit Agrawal wrote: >> Introduce helpers to abstract architectural handling of the conversion >> of pfn to page table entries and marking a PMD page table entry as a >> block entry. > > Why is this necessary ? we would still need to access PMD, PUD as is > without any conversion. IOW KVM knows the breakdown of the page table > at various levels. Is this something required from generic KVM code ? The KVM MMU code is shared for arm32 and arm64. Hence we need arch specific helpers to hide how we deal with the levels. e.g, PUD never exists for arm32. > >> >> The helpers are introduced in preparation for supporting PUD hugepages >> at stage 2 - which are supported on arm64 but do not exist on arm. > > Some of these patches (including the earlier two) are good on it's > own. Do we have still mention in commit message about the incoming PUD > enablement as the reason for these cleanup patches ? > Cheers Suzuki