From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C95E7C433E2 for ; Thu, 10 Sep 2020 04:07:54 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 637DA21D46 for ; Thu, 10 Sep 2020 04:07:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="JeeytGcz"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Ogpyzys7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 637DA21D46 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:Reply-To:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Gn3xNYYEW2qZnwzIdZqhN4T42Yr8Zl0EcwRYjt4gP+I=; b=JeeytGczOMBi0G Jf+taYm+C7lKGXm03GHqh4T5bZBBPDdQVS8VOFrDMZLC4ESIdPwTYioUOIvSpFjdFDn99E9n1T+LZ cG4T5s+8HATXxCjUdpOHyvK4Q8E9goMHsK5f/+7zJE2Jul741jQtHthm+pZ+KvPgrEBkiJulLbgIa QzRZaYfk+pYq9AUPiJAFHMo1xPP+7HueLliSoDPB+NA3j1JCVQtfjEikUZeGWwBNIiV8iqSt07RNd P8HrCBt2gmwTh+Vl5+vjKe3tVwiuefXIV2WmZk/llN4xy34epnCHUevXhmddYFaelTTJkgP8pJcTz ksq9VwA3e6VuRGacCSbA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGDr2-0000lT-3p; Thu, 10 Sep 2020 04:06:36 +0000 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120] helo=us-smtp-1.mimecast.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGDqz-0000l6-IB for linux-arm-kernel@lists.infradead.org; Thu, 10 Sep 2020 04:06:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1599710791; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=k7S4zxxxQYlErRgGmXJ+wYF+gTxt1V5R+2Y3W49tJzc=; b=Ogpyzys7m6ZpENgkBtH4/RTFAZkOpR4Pz+jYpRChNkrVzKgT0OoiWlCIsQcs3+JbIsvIzh ODzpHdjFy4BNxs2ZbLsiw8g9Vczt3Zm8HxK8DAquA1FrFv29ukyZkfUDcymRKBwKLEbClx Jk79IlczU+FOxdAA4YP95j2yU/k0a3Q= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-499-5o-Q4SMMPRiENsZSv6gtlw-1; Thu, 10 Sep 2020 00:06:29 -0400 X-MC-Unique: 5o-Q4SMMPRiENsZSv6gtlw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 43C3C1008548; Thu, 10 Sep 2020 04:06:27 +0000 (UTC) Received: from [10.64.54.123] (vpn2-54-123.bne.redhat.com [10.64.54.123]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 071CE5D9EF; Thu, 10 Sep 2020 04:06:16 +0000 (UTC) Subject: Re: [PATCH v4 00/21] KVM: arm64: Rewrite page-table code and fault handling To: Will Deacon , kvmarm@lists.cs.columbia.edu References: <20200907152344.12978-1-will@kernel.org> From: Gavin Shan Message-ID: <4e41d4c5-1d36-fb28-880d-94235def35ed@redhat.com> Date: Thu, 10 Sep 2020 14:06:04 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.0 MIME-Version: 1.0 In-Reply-To: <20200907152344.12978-1-will@kernel.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=gshan@redhat.com X-Mimecast-Spam-Score: 0.002 X-Mimecast-Originator: redhat.com Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200910_000633_661728_535640BC X-CRM114-Status: GOOD ( 16.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Gavin Shan Cc: kernel-team@android.com, Suzuki Poulose , Marc Zyngier , Quentin Perret , James Morse , Catalin Marinas , Alexandru Elisei , linux-arm-kernel@lists.infradead.org Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Will and Marc, On 9/8/20 1:23 AM, Will Deacon wrote: > Hi all, > > Here's version four of the KVM page-table rework I previously posted here: > > v1: https://lore.kernel.org/r/20200730153406.25136-1-will@kernel.org > v2: https://lore.kernel.org/r/20200818132818.16065-1-will@kernel.org > v3: https://lore.kernel.org/r/20200825093953.26493-1-will@kernel.org > > Changes since v3 include: > > * Removed some more unused code from the old implementation > * Renumbered KVM_PGTABLE_PROT_* to match file permissions in hex dumps > * Simplified kvm_granule_shift() and removed kvm_start_level() > * Only clear valid bit when invalidating a PTE, leaving phys addr intact > * Fail gracefully when attempting to allocate without a memory cache > * Rewrote stage2_apply_range() as a function instead of a macro > * Fixed fault address rounding with hugetlbfs > * Fixed permission fault handling when dirty logging is enabled > * Added comments > * Added reviewer tags > > Many thanks to Alex and Gavin for their comments. > > Will > [...] Eventually, I'm lucky finding a machine from our pool where 16KB page size is supported. I tried this series (v4) on this machine, everything looks good as we expected: Host: 5.9.0-rc3 + patchset (v4) CONFIG_ARM64_VA_BITS=47 CONFIG_ARM64_PAGE_SHIFT=14 Hugepagesize: 32768 kB (from /proc/meminfo) Config: -HugeTLBfs/-THP +HugeTLBfs/-THP -HugeTLBfs/THP Guest: CONFIG_ARM64_PAGE_SHIFT=12/14/16 Let me know in case there are more tests needed from my side. Thanks, Gavin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel