Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2293957imm; Mon, 16 Jul 2018 05:45:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdCncQko+gbyv4IdGoP9xRatWYWHFyc4haNpCvgb06RLCJSq/3ys6EII6MJfOig4ypclPrB X-Received: by 2002:a17:902:7482:: with SMTP id h2-v6mr16778061pll.185.1531745158569; Mon, 16 Jul 2018 05:45:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531745158; cv=none; d=google.com; s=arc-20160816; b=uvufh9CAeodNqYDdQrdo/wHvmbb0gdCvG6kmecaXBvxl1EhNAU2WWaZu39QvvFhiBB AWH6AW/36f7Lyp38A6ZvofrAyYzbkbL8C3xpVYuTAoyb6rdMcfgfwfiJPDEZM4PDiEin NeNbp5TAg/e/GelggIOZ7lZ+0YOdRxAoIxjTqPPg0W++rNaKtUDZV7uabNviDVZzuDhi E3mesk02PmDYRalpAUFVW00VmuXVqhG0PHv/LTRY53r+UQJnBQodQrpko8RS4EtBHkXM PYugGJCkP4HWI/FhyzcUkmhifGmpcjU+vci3QYVJhcC/aXYE15JqCO9fBxCcEOAezsGo w0Bg== 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:arc-authentication-results; bh=ulgUbmlgDsjrBZxolLkbv4BvxLqUPeY9Lz1NziCh0U0=; b=t9ql0lcOsIWiUtVg+tcVXMSo1abtCRRmUwIYoIdGerBdvs2DotTtVcwpYJ5jGZsa4j pHadspLn6RRyw+kn9zjqzrfjCTPeFmD1VTyc93ed6DumDOlhe+UXmNx15ZKaP1LcONG/ KKqbpn9nABTbyJOH38WqOdn38vTMObdXXaxm51+xYsJUZdwt9WIKmaFHxGcoQdxvdbdb 93nvQn/wtPbDj0a/BYaa1J1vaafeQxG8ope7K3IZmCKhvL32KUvmsxFwqoDO5oeWzPU/ C1ImlhS+JXASzksZuMVYA2hldIzJVVqskzqMa9HlM/50jutbPU8u6DSy6UbXP1Opl8KG WLGw== 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 a7-v6si29221144plz.510.2018.07.16.05.45.43; Mon, 16 Jul 2018 05:45:58 -0700 (PDT) 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 S1729811AbeGPNM0 (ORCPT + 99 others); Mon, 16 Jul 2018 09:12:26 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:58986 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728687AbeGPNM0 (ORCPT ); Mon, 16 Jul 2018 09:12:26 -0400 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 1F70018A; Mon, 16 Jul 2018 05:45:09 -0700 (PDT) Received: from [10.1.206.73] (en101.cambridge.arm.com [10.1.206.73]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 93C273F5B1; Mon, 16 Jul 2018 05:45:07 -0700 (PDT) Subject: Re: [PATCH v6 1/8] KVM: arm/arm64: Share common code in user_mem_abort() To: Punit Agrawal , kvmarm@lists.cs.columbia.edu Cc: linux-arm-kernel@lists.infradead.org, marc.zyngier@arm.com, christoffer.dall@arm.com, linux-kernel@vger.kernel.org, will.deacon@arm.com References: <20180716110857.19310-1-punit.agrawal@arm.com> <20180716110857.19310-2-punit.agrawal@arm.com> From: Suzuki K Poulose Message-ID: Date: Mon, 16 Jul 2018 13:45:05 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180716110857.19310-2-punit.agrawal@arm.com> Content-Type: text/plain; charset=us-ascii; 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 On 16/07/18 12:08, Punit Agrawal wrote: > The code for operations such as marking the pfn as dirty, and > dcache/icache maintenance during stage 2 fault handling is duplicated > between normal pages and PMD hugepages. > > Instead of creating another copy of the operations when we introduce > PUD hugepages, let's share them across the different pagesizes. > > Signed-off-by: Punit Agrawal > Cc: Christoffer Dall > Cc: Marc Zyngier Thanks for splitting the patch. It looks much simpler this way. Reviewed-by: Suzuki K Poulose