Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp30010pxh; Tue, 9 Nov 2021 06:55:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJz2qV0ZbU5vB8fgq7SzkB98s3ESRJoegeN6Ev7mZoULP61I0qHP+treOBSNQJkE5lE2G59o X-Received: by 2002:a17:907:d14:: with SMTP id gn20mr10218691ejc.73.1636469707845; Tue, 09 Nov 2021 06:55:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636469707; cv=none; d=google.com; s=arc-20160816; b=e2VMPBhqz/76Nkf0vVV/4DN+m2qhQGH5LxGasQwR4PNT6maNKcTr8AmIJOYV+zt5+J kuqRAEtDPHE0m1MZy715gZM6Ykl/5POLF9Q4KMtwNKjeSMhWUJknt0xXb7g5su+Cv7jd 2qG5gCnWa75K5HrzjmHk++izQsgYndayLB5MgWypYCagG/DwTCafM9COk/XaNEZMv+w1 djYh13X6Sp6QJt2n8XBd9XNa2GFtGD7u5Lb/wfou6qI2Unx7o8rGVOxAHlwWypkmlwvS CoCOnxEd7NAimQaG8raytkh2TJcuAgRAT/NDveIzGao3Tq0HF7xQG3PDoHQN6jfcoSHD UV9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=AATbywRIxzxNd7Dax4ALazPHnAkn6LmLQvylgIQIjyU=; b=u5zcCVAltjeTW7mf/5EWGbd45YiKys+iHZmbJxyys0HlX2C52VyiK9XlF5ctsf8rCG +Y/GjCiV5yuFGxFva/CsQX0HDq5YXIr9+HmuKDZQ570uqDERfiI1jychrfh2AC3VNBsu nZvIG3Jhb1pIbs5fsRnHJeC0R+CGtAOETW6laEjSGDidcjsdNurRwCiYSbesSshajIre ITOXnNn//3jeoN2Xoe0u8tE0B/RzwrZjuZ4vfzEuiP7qtU3la+zm/PmMwFltHWM1hSXG CqcoBdLwVjY/S8Dk7YwcN5R+2pcIMgJxmAGsc1ZL+WjDVTeM/WUWZn967GECFyLyZDE5 SJXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=FAgrJIcp; 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 hs5si7825939ejc.280.2021.11.09.06.54.41; Tue, 09 Nov 2021 06:55:07 -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=20210112 header.b=FAgrJIcp; 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 S243209AbhKIGjW (ORCPT + 99 others); Tue, 9 Nov 2021 01:39:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230055AbhKIGjV (ORCPT ); Tue, 9 Nov 2021 01:39:21 -0500 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79524C061764 for ; Mon, 8 Nov 2021 22:36:36 -0800 (PST) Received: by mail-pl1-x630.google.com with SMTP id v20so19125052plo.7 for ; Mon, 08 Nov 2021 22:36:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AATbywRIxzxNd7Dax4ALazPHnAkn6LmLQvylgIQIjyU=; b=FAgrJIcp9K/wuOKtdkRL4PckOjCABsXpUO4MPD5n4K5Vj1gP1nmXD/DTYI2omaAPKd IPEDkGcxSS26vD88hXHjuAeUq39e7y13F3jFltUBvm7RA/sKHC3qPkTB29A/IAWmTlKO eLvOadXS51ygn8mx16s6rdM1q3tA4dlcMxD4lxSjK+m5UG04FTIutq6Wp6re2bFU2VcF sa7u0zJmghqP5KTPmHXyWqWLXAG+4njMABiZ7lbA1J5bfZS2s4NdUuQhyizKTCEuQfPV +SCglyyaiPDFkspKrNaQqCF22eKwrNDxnfwEgdFHKjVQIAQlqRs9jiw4rW75/WWZW1q5 Db8A== 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=AATbywRIxzxNd7Dax4ALazPHnAkn6LmLQvylgIQIjyU=; b=RJMC2c+6kdZ4ODlTbbWbvAOfflIxGaEuZz3q+Jzsmp682f1SNdCCMRln30f/zm6NbY vo1oy3oPjWP8wwCZQ2LoaqBWjk6jH2tX5q4b/wYK1Y9I9bR9nKM5HHLfUXKCo0ywUwT8 sHpZg0fZ+2s4FsNoyDounamh1IE9h8IsdcZCguBa/uHTpfkJQj5rW2zu8TBuJ+rAsUu/ KX5DEXKInwC9wQ0nrv8oDcsrHMF0N4hS5vp0Nt8C+dtVLZRHbHQvRrTDU5qWQOLzEOE6 NZgj4dsnvLER8L0KwTCfYkMWHGzBwmwOjDzpwtOZMDv1dTZPolLlxXV+4IwkboFN3OVX UQXg== X-Gm-Message-State: AOAM533iCkqqAeh0+O1b3Maxb87b0LPDMiQExy+qo1fCQDlQ+eI3C5H2 lBj+7QuUYE5JYx9hwfS/iqmzVvwDnuhdlraBGnxxoQ== X-Received: by 2002:a17:90b:380d:: with SMTP id mq13mr4771617pjb.110.1636439795842; Mon, 08 Nov 2021 22:36:35 -0800 (PST) MIME-Version: 1.0 References: <20211104002531.1176691-1-seanjc@google.com> <20211104002531.1176691-9-seanjc@google.com> In-Reply-To: <20211104002531.1176691-9-seanjc@google.com> From: Reiji Watanabe Date: Mon, 8 Nov 2021 22:36:19 -0800 Message-ID: Subject: Re: [PATCH v5.5 08/30] KVM: arm64: Use "new" memslot instead of userspace memory region To: Sean Christopherson Cc: Marc Zyngier , Huacai Chen , Aleksandar Markovic , Paul Mackerras , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , Paolo Bonzini , Wanpeng Li , kvm@vger.kernel.org, David Hildenbrand , linux-kernel@vger.kernel.org, Atish Patra , Ben Gardon , "Maciej S . Szmigiero" , Claudio Imbrenda , linux-riscv@lists.infradead.org, Joerg Roedel , kvmarm@lists.cs.columbia.edu, kvm-ppc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jim Mattson , Cornelia Huck , linux-mips@vger.kernel.org, kvm-riscv@lists.infradead.org, Vitaly Kuznetsov Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 3, 2021 at 5:26 PM Sean Christopherson wrote: > > Get the slot ID, hva, etc... from the "new" memslot instead of the > userspace memory region when preparing/committing a memory region. This > will allow a future commit to drop @mem from the prepare/commit hooks > once all architectures convert to using "new". > > Opportunistically wait to get the hva begin+end until after filtering out > the DELETE case in anticipation of a future commit passing NULL for @new > when deleting a memslot. > > Signed-off-by: Sean Christopherson Reviewed-by: Reiji Watanabe