Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1172109pxf; Fri, 12 Mar 2021 03:47:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXDUrHUgg6uq3S+zUkuUWKAdStSH6AsFMzhOUUnZNAZT7JKI8NGwhfg1EyriINK/kQoQQc X-Received: by 2002:a50:ed83:: with SMTP id h3mr14144269edr.140.1615549659399; Fri, 12 Mar 2021 03:47:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615549659; cv=none; d=google.com; s=arc-20160816; b=hGN9Ivh3aFz4OIhg1VhPgMWoOz/6QOAh3KpUdeLlcWNz11l2gUPi9+XbyiBS3PH1d1 qODcfPyIZrUmNDqsg8vdlWP57/W0Qm9Ok28stj2lg7AqAf3l2dA8lKzHc1E/nK5yEN91 G5hRIEvRseJra6IDtY47gVA1I5B/nYfZx95fv8TBNOicntEo3FYRNmOWT71zl6yCg0oV 1Y6cw/efSf0z7IKUj70twB0m51ISm4Y8/n+qgg0J3xvJWMukyekJe6Qhu94Vw3j5w6B1 VlQiiZLou6ivVSQonS2W8FfIFgVqxYBlyBl+ZTzs0Wz/y1JrnoJXTGawNd0DFqO4K4tO 8jtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8hyTObTnA8b0Pah5w5x3EX45G+4aGq3Qg+uSFkSPcCo=; b=OFIk9djg94W7kHofzTmX03e18jDZN7hMbd16btocOl4bzDg0i2b2YLDOQ+DEFCShct B26a5Kz9SZEZVIFYTqGzs7tL7QOBcuVHC3uBnyGGW330UKjpNOC+Cyltpjf1F9uHnGac 8C0ziJ6IlufaIonnatLmIjW863C41pD2eDNZCOy4SvkLFpJ7vYx861i0H5BfYmxShusT jYn5HFvyZTdCbzdW5j4UKqiHUOClZ39fDn30wQ5n9J9lwsMD1H+C7VaVtSWzgHUaRCzh cJjfPKDmN0rSXTWr8epiKZpgtQny7aB1FewEnEEnaLDZP7SKegTdPpmzMbV5BdG2ohXE O2yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=jVs4+SZB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t5si3878849ejj.303.2021.03.12.03.47.16; Fri, 12 Mar 2021 03:47:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=jVs4+SZB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232702AbhCLJPz (ORCPT + 99 others); Fri, 12 Mar 2021 04:15:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232710AbhCLJPf (ORCPT ); Fri, 12 Mar 2021 04:15:35 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED178C061574 for ; Fri, 12 Mar 2021 01:15:34 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id o26so3339166wmc.5 for ; Fri, 12 Mar 2021 01:15:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=8hyTObTnA8b0Pah5w5x3EX45G+4aGq3Qg+uSFkSPcCo=; b=jVs4+SZBOncaHTNZfrQPmfUwVYzNZgKm+iL7UkFzH2hi1esIn3UON4srQWsKqCTzIQ v8JzJSmZb/Dt5o4ziJlrUAEwS2Rozm3WkV8g21rcbXUuZHVDSd9g6MygPJfvd2G8gKRX 3xEtqIHBTd95yzydjWyupkUBpp0DkDmseSBNQCM/Y3SQORaEXSfQuWSVT+Wi/qtY403j YJ3N/tL9sTiVdHVw4vpjyxqiknFYfbN3qfQSohG7eu56ZkuMaenkzlbqQRqucppZa6wJ nURlMd0nasN1vXl7gtLFx739nu6Zg3c9ItV3TJWROADQH4DX2TjRm0RCnbCQlLC6+RnZ apjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=8hyTObTnA8b0Pah5w5x3EX45G+4aGq3Qg+uSFkSPcCo=; b=gst4XZmrL++LjgJVM9cyRfqqNA7OPNZ6rVenLf8KDw6mz+ZUcPpNPpEL9QrYZ551un jGTtGq3UEDLtSRnP9EQPhOXs9xLvuvfIjJZIW7hPJ6qbqLsw8poP1nV4WiHMeZBj3o4J l4/JaKwDEeXMbcSU7+0vMl4r/O2sZ0d39FFmkzWWSK7YHVeELTAGpx9FfKwp/z/+2ZLD Qg0sl8POkSfblPJrOBSlfYS59ZJmwy3CMzSZdKXvgScUdpuuWifdIIuRMPGiQRTHGxnv joleFgTo4dKw/b8JOgY4RvqtfcX5BLvODQFzqtkemOWzS5p1gU5DRutCxAnmluAd56Tg QKCg== X-Gm-Message-State: AOAM531THs/ThkASXny+E5ahKUU8Higg16l+QqbXZDOsIH/9fQ6dLCfA OIO+NpHCtm7D3i2yB+cbddmkVQ== X-Received: by 2002:a1c:8041:: with SMTP id b62mr12506853wmd.0.1615540533351; Fri, 12 Mar 2021 01:15:33 -0800 (PST) Received: from google.com (230.69.233.35.bc.googleusercontent.com. [35.233.69.230]) by smtp.gmail.com with ESMTPSA id j203sm1510033wmj.40.2021.03.12.01.15.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 01:15:33 -0800 (PST) Date: Fri, 12 Mar 2021 09:15:30 +0000 From: Quentin Perret To: Will Deacon Cc: catalin.marinas@arm.com, maz@kernel.org, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, android-kvm@google.com, linux-kernel@vger.kernel.org, kernel-team@android.com, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, tabba@google.com, mark.rutland@arm.com, dbrazdil@google.com, mate.toth-pal@arm.com, seanjc@google.com, robh+dt@kernel.org, ardb@kernel.org Subject: Re: [PATCH v4 27/34] KVM: arm64: Always zero invalid PTEs Message-ID: References: <20210310175751.3320106-1-qperret@google.com> <20210310175751.3320106-28-qperret@google.com> <20210311173338.GB31378@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210311173338.GB31378@willie-the-truck> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 11 Mar 2021 at 17:33:38 (+0000), Will Deacon wrote: > On Wed, Mar 10, 2021 at 05:57:44PM +0000, Quentin Perret wrote: > > kvm_set_invalid_pte() currently only clears bit 0 from a PTE because > > stage2_map_walk_table_post() needs to be able to follow the anchor. In > > preparation for re-using bits 63-02 from invalid PTEs, make sure to zero > > Why do you exclude bit 1 from this range? Hmm, no good reason really. I wanted to play games with invalid table mappings at some point, but dropped the idea and forgot to update the commit message. My bad, I'll fix it up. Thanks, Quentin