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 BA86BC46CA1 for ; Mon, 18 Sep 2023 15:58:26 +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:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=H4hQmgFe1cSAeRnUOL5QnJwTd6fN1fLs7GPDtEXNeU8=; b=qyClwYsuRBhiqBtk9nQ7ZH9cjc HYd0POdFtBVzFIfsjpUkNlllRYFbyRorcZ6P9lpWrsf5LJGS82i/JEt5OXmZ98DvnDcJ7IO8aiL45 ZZPB6f9CUftaoeV+anoYRkzB/BOQ0r1pUaiUy6VYM6l504rWVlT3oY83XGJP+/iBMWeBVsz0LSr98 WQ5TtuNdTpDStDgolxhtvXFVYRAooEKS2pNTK+1p8gRoeUJ4ttp8o+EPolUilJnBviFx6g45UURY2 sbvF92ahrpFzHoIvCYdK9F4dsuRHWZlokCzUhMDqOlaywJJ2nHF0jMZuWDumCJJyWIVzNouhn9m4D jxI0CKyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qiGdL-00Fo3f-1R; Mon, 18 Sep 2023 15:57:59 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qiGdK-00Fo3O-2S for linux-arm-kernel@bombadil.infradead.org; Mon, 18 Sep 2023 15:57:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:Cc:To:From:Subject: Message-ID:References:Mime-Version:In-Reply-To:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=s17YssV/eLMk3v6BQw21PztJLVQ1uDSUDnGyHA0nJic=; b=IqI8XhH3QP8EptBttPqrWkQRIp TEuSCNVBqwtIwGnCTe86hc6W7v4lN4x+cVdy2m7dIvaWjOtwTZZ1wTacmRuPq0676D4u0B8QQNbu7 7WUz+9ATC5yBM76f3BXjWbYB+v+wVwGDs6w7ogXSdvUJaZvkC9mevXnluY3A8N0Iailgq7hgJAHG4 buRceTYJnPY/N/X8dsREh2VZTYuM6E/41dXPIj9fuFN5S9ICnl1hnHPb9UnNmZjtbORP08qEQSDC1 muYKNgQL+Zvrcy2O3gKKQLqDpU0/l+qSy3IbFcpObtmIU3Z/yN1HQYoSxtPce5iICC+fM1aVayLVZ d+Mz8NxQ==; Received: from mail-yw1-x114a.google.com ([2607:f8b0:4864:20::114a]) by casper.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1qiGdG-00Bsvn-67 for linux-arm-kernel@lists.infradead.org; Mon, 18 Sep 2023 15:57:57 +0000 Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-59c081a44afso42995057b3.3 for ; Mon, 18 Sep 2023 08:57:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1695052667; x=1695657467; darn=lists.infradead.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=s17YssV/eLMk3v6BQw21PztJLVQ1uDSUDnGyHA0nJic=; b=lIjUnxprdj0PGVr4cRoUj9UNuJZGVJJ76esFBbZaYffI6DRyv3+1tySFasMWeT0A22 UIltduy2T4z241MGUbXqM1oWEpfGIBGPNVCeatDFFqmQBQoaELah2902DZeWzhI4GagL TPl7eMQMd4b57ynrwpWUzttU9CIoJMvMHGXzZBg+g9FusyZUqcny9u34m/yihIdnT55m BQsnwqPsmEF4U8e3QdVqckNMlwa/oSKA8T9B4w6g+eHvWUVi7mydXvNvSnHogGPcO2fg wEOLHINoQbkueflIu13fkQcloh4pI44z/WcvrW3R9xVDMknJ6plA3Sr8Ih4kpGlUpUJE 8agA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695052667; x=1695657467; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=s17YssV/eLMk3v6BQw21PztJLVQ1uDSUDnGyHA0nJic=; b=Grj/3jY6BeX8M/kIoPdw2Q5RAJB2JcOVGbufNwlHHYrBP/CrKtvSeIZyuO53Nj54a7 SN6XeQqdxev6Q9YwkZJ8n8PDDMWZEazJ2XTW8xJ+8s3rQsI8tn9a8h06HA072Vo/km2y nelJRu+F6mB5xOSBzhm0/keh29YkCE7qXxKwaoailrhkBGRqK1lcCRPJxrDWlh9DTaZh yhdrmfFagO7i3aEcJ7txHJL8ajDP6ALKg1EgaHhIDAcOc3s29PlL0Xi5QxiZCqtsyH8n CFLesNBJfEfZ+fBdUsJUryicnRbTcm/dS5nCwkZgZ4uDHR6rOTwCglLYvsQvExdSxKBU uQlQ== X-Gm-Message-State: AOJu0Yy5PH1ojl6HuVHMV4tyItEdDtSM//5DFE5KkLqrL/vH985XKux2 mHDvPR6wPajQg2vJ/sUl3T0cxvFkmFw= X-Google-Smtp-Source: AGHT+IFqXVMaW5EWUR3sn7RRHAULv1S9Ax+JzluU+Y462jgw29bgpZAEkbL739S68Hx7QOlYkiFqSLcGAUw= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6902:4cf:b0:d7f:f3e:74ab with SMTP id v15-20020a05690204cf00b00d7f0f3e74abmr227961ybs.1.1695052667494; Mon, 18 Sep 2023 08:57:47 -0700 (PDT) Date: Mon, 18 Sep 2023 08:57:45 -0700 In-Reply-To: <9925e01b-7fa9-95e4-dc21-1d760ef9cde4@linux.intel.com> Mime-Version: 1.0 References: <20230914015531.1419405-1-seanjc@google.com> <20230914015531.1419405-11-seanjc@google.com> <9925e01b-7fa9-95e4-dc21-1d760ef9cde4@linux.intel.com> Message-ID: Subject: Re: [RFC PATCH v12 10/33] KVM: Set the stage for handling only shared mappings in mmu_notifier events From: Sean Christopherson To: Binbin Wu Cc: kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Paolo Bonzini , Marc Zyngier , Oliver Upton , Huacai Chen , Michael Ellerman , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Matthew Wilcox (Oracle)" , Andrew Morton , Paul Moore , James Morris , "Serge E. Hallyn" , Chao Peng , Fuad Tabba , Jarkko Sakkinen , Anish Moorthy , Yu Zhang , Isaku Yamahata , Xu Yilun , Vlastimil Babka , Vishal Annapurve , Ackerley Tng , Maciej Szmigiero , David Hildenbrand , Quentin Perret , Michael Roth , Wang , Liam Merwick , Isaku Yamahata , "Kirill A . Shutemov" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230918_165754_239740_5DAD74A7 X-CRM114-Status: GOOD ( 11.00 ) 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 On Mon, Sep 18, 2023, Binbin Wu wrote: > > > On 9/14/2023 9:55 AM, Sean Christopherson wrote: > > Add flags to "struct kvm_gfn_range" to let notifier events target only > > shared and only private mappings, and write up the existing mmu_notifier > > events to be shared-only (private memory is never associated with a > > userspace virtual address, i.e. can't be reached via mmu_notifiers). > > > > Add two flags so that KVM can handle the three possibilities (shared, > > private, and shared+private) without needing something like a tri-state > > enum. > > How to understand the word "stage" in short log? Sorry, it's an idiom[*] that essentially means "to prepare for". I'll rephrase the shortlog to be more straightforward (I have a bad habit of using idioms). [*] https://dictionary.cambridge.org/us/dictionary/english/set-the-stage-for _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel