Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp339742imm; Mon, 1 Oct 2018 10:43:35 -0700 (PDT) X-Google-Smtp-Source: ACcGV60e8mxgA0W63RKQL7DmAnqeG2yrWrIbTFL/zqAyzKvX3xUAaL0KkpuApA+UxhgR9sX9sUBV X-Received: by 2002:a17:902:ac89:: with SMTP id h9-v6mr12761395plr.174.1538415815000; Mon, 01 Oct 2018 10:43:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538415814; cv=none; d=google.com; s=arc-20160816; b=HdHetVBmjrIfP8a0I32zSEW6zFjffUGx21abf16GOzxzxczvfehE3jkfVXDgH3O3X7 nxCXIC7rSH2oMwvy2H/OUJvvtdIg94dHby36rHQH+GrH7pEvgl0CJjtMVyb5MRoeWg3S 6MkTFSjegOqvLWvmQVh4K8yrpuJSMJuQDf4Fr5elm3hqEt2I75J0K4yAo0ytnJc1+30q PPsZrb2EL0sOqCniC18pzAUKPyFrWJD3v5CWxkZMxTlv72VlRkiHW1HcfEYyCEh38Yrk TqGn48Qx0JWyLOlQE/ceTcQ5wozknLeHUz4MkiP8NU38mTyyPjaCCUQ1CGv3xhvtz3cA MdbQ== 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=AuS0eIft+gECSGp3KGkWY7d9iBWt5h7JkbD8QP7wyi0=; b=xgx08cXQOOV3FxaFf9Sy9XqDNGEdV+T4jZ4Nc6NYNa34sHeew1c96EYiUF/iLaEdVz Pwu2e286mYPQlkewPesphnyjDejFVMw2f/nBR6XNs4+MUxGa1rpH2tcaaqptwLUxMwEw +KXYAmb3VQycxP1JnVM53dDjYhnzqs6FvOKMn3WUkW+oWP3SYKm8zL7PhpPvcHczjYBR c9ipYY319ncrW3hUeGIkGstShlKMeaEp8bZy0y2Ym9w/AFClNSAb/vkSfc0cRVa/9CyF wPa+AroxH8mHD1W0V/MUftvzwGlAF+Sacg0u/IFliXucFkGFHNQ7tpbqAG1NGrhbhXkV wF2A== 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 o6-v6si769451pll.456.2018.10.01.10.43.19; Mon, 01 Oct 2018 10:43:34 -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 S1726184AbeJBAWH (ORCPT + 99 others); Mon, 1 Oct 2018 20:22:07 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:53248 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725740AbeJBAWG (ORCPT ); Mon, 1 Oct 2018 20:22:06 -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 0C8997A9; Mon, 1 Oct 2018 10:43:14 -0700 (PDT) Received: from [10.37.10.63] (unknown [10.37.10.63]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8FBA83F5B7; Mon, 1 Oct 2018 10:43:12 -0700 (PDT) Subject: Re: [PATCH v8 2/9] KVM: arm/arm64: Share common code in user_mem_abort() To: Punit Agrawal , kvmarm@lists.cs.columbia.edu Cc: marc.zyngier@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Christoffer Dall References: <20181001155443.23032-1-punit.agrawal@arm.com> <20181001155443.23032-3-punit.agrawal@arm.com> From: Suzuki K Poulose Message-ID: Date: Mon, 1 Oct 2018 18:44:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20181001155443.23032-3-punit.agrawal@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 On 10/01/2018 04:54 PM, 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: Suzuki K Poulose > Cc: Christoffer Dall > Cc: Marc Zyngier > --- Reviewed-by: Suzuki K Poulose