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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CCB98C433EF for ; Mon, 10 Jan 2022 23:49:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hfkGslYDdIuB0QQ85iKS1IGYddVRtVngt3B5x8ARIIg=; b=QUlVeEbRW4Wr1y heVHftbNKRHqZ4JdHgVvHgJ0d2UMoWVkcA7Hlwl+eG0Az0ioqZqNouvhr90Y2hQpnKZfEw38WbBo6 P5HICDu7woYZPUQ4HzjDk58MbHF5PLegs3nWvXd1A4saKX6VXgAQOzO9ueNEgECWZQ2RtDCMrZP86 jFoqTN3vsJXifXVgs7HlJ4YBG/86gjqbPQ9raE5zcQqLDgIyi+ITYjmRDSNCYNTOvevzhyr6IYeb0 BCupTE0w2W6y+OKrMf+Bs2znOEMIAr5TnqMw6oMol1ZG0YnSQNo35sWNokGi9Y8u3aDhmvfNd0A68 gbeBk/KWt0GWFZQbEbFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n74OS-00Dxz0-Nb; Mon, 10 Jan 2022 23:48:04 +0000 Received: from mail-yb1-xb32.google.com ([2607:f8b0:4864:20::b32]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n74OO-00DxsY-Nj for linux-arm-kernel@lists.infradead.org; Mon, 10 Jan 2022 23:48:02 +0000 Received: by mail-yb1-xb32.google.com with SMTP id i3so42508125ybh.11 for ; Mon, 10 Jan 2022 15:47:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=V7bvr9AT+ViYWBOgleDYjHyL3H3pc/v4pn7I6M0FLS4=; b=ej4Q05pKU/h4KDyI2NuIerKgxTlzLfgmgRTMDjGpIi04yviyVKEEzKlJjDLBIOhpov q8t7Q19UYQ4kIvlWeSaP1Rem1sm7GQxYmej8C0FcMpEZIPDIdcfUJorgTtsuo6e88FIu dvSWWPxKB+rpjda/P0xhUB/XYqm//hDLsvIaU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=V7bvr9AT+ViYWBOgleDYjHyL3H3pc/v4pn7I6M0FLS4=; b=DWFbqT+IPVxAmm6ki24O/Zjd99sDR/S10giEUjWqLaK1m8GgpxibJTzKNWlJZJmVVn GROIlvbiMee9zDoAVwKOWt4e9M7iecMVGyE/lRpHinal6GKw4u9uY1tTCpsqJQ7GB3GV X8ctD+FETeFKMww/A8MHnp76sG3CYBGCB3yrWRRVs+8F1X5e6i3xDK0t3y5srmOi8Vsj 4HvKUZxnL7a3B0Ndo7EP+f+EBaE6/9s8jGUSj1wBM7dSCaNGXOLsH7qfMtuQZ2NUFWf0 BiiH+WFX1LN7BuDCYw9Kh/IaX2s/0MRxO67kq3yvhbDQMkuB9YF+ukhHkJK4WHz8VbF2 ucnw== X-Gm-Message-State: AOAM531lvhZHIMXx1BKIrF0UVr9TZtxXe9nDR5dY3w8scPDXjchgr9DD 96D9rOJrGRA+AjQURDG4EKkkgz0vRVJ3gkcFv8t0wg== X-Google-Smtp-Source: ABdhPJyeO7YkijDBkX0qbEZ6iIfqz7iXNkTSDHSv0/OEgOpdNsr9nTuLp7gzWE192stbi9+nPkUxIl89P+qH+bTZv5Q= X-Received: by 2002:a05:6902:723:: with SMTP id l3mr2986305ybt.378.1641858479154; Mon, 10 Jan 2022 15:47:59 -0800 (PST) MIME-Version: 1.0 References: <20211129034317.2964790-1-stevensd@google.com> <20211129034317.2964790-5-stevensd@google.com> In-Reply-To: From: David Stevens Date: Tue, 11 Jan 2022 08:47:47 +0900 Message-ID: Subject: Re: [PATCH v5 4/4] KVM: mmu: remove over-aggressive warnings To: Sean Christopherson Cc: Marc Zyngier , Paolo Bonzini , James Morse , Alexandru Elisei , Suzuki K Poulose , Will Deacon , Wanpeng Li , Jim Mattson , Joerg Roedel , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Chia-I Wu X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220110_154800_813957_F3AAAC8F X-CRM114-Status: GOOD ( 10.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org > The best thing to do is probably to wait for for kvm_vcpu_map() to be eliminated, > as described in the changelogs for commits: > > 357a18ad230f ("KVM: Kill kvm_map_gfn() / kvm_unmap_gfn() and gfn_to_pfn_cache") > 7e2175ebd695 ("KVM: x86: Fix recording of guest steal time / preempted status") > > Once that is done, everything in KVM will either access guest memory through the > userspace hva, or via a mechanism that is tied into the mmu_notifier, at which > point accessing non-refcounted struct pages is safe and just needs to worry about > not corrupting _refcount. That does sound like the best approach. I'll put this patch series on hold until that work is done. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel