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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29DF8C71153 for ; Fri, 18 Aug 2023 00:10:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356686AbjHRAJ5 (ORCPT ); Thu, 17 Aug 2023 20:09:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356630AbjHRAJa (ORCPT ); Thu, 17 Aug 2023 20:09:30 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94F7D3A9A for ; Thu, 17 Aug 2023 17:09:04 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-d61e9cb310dso461308276.0 for ; Thu, 17 Aug 2023 17:09:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1692317333; x=1692922133; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=mE3f+VMf8SgNE6cCbkcfMUP8Hiy9b4N5xYpI+7a+l+E=; b=2oU9BIaw0ILeiNHyHsZk7TDIJto4bfSl6FpDcbZRzJHFWDHvsw1Tpz4Q9Z++SpwVVm JmUyxEgAq2LjZzc+OkhyeF0ADm+bu03vFWElhLKmVcXuodsBknHK0n2IWaJQr+FjH/Z4 ly63wavRjg8vLggYRlwWHybAT9gNxWq5j3pZ0p0w2xXzXTZlhASOY+NoRS2/AtMtjhTQ nTZWu9PlR/5rleTIvIDNYwbMF6iZSL/aHkUyyZqrHDOanbSxez20kKr5PC6Ct3iYGtdC ypG1bXEpsnYr9lf8V1DpKfNV0BYeA2in/OciIOL0bd/uD0xPHtdS27L3UXNyt2X2G1Wi /49g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692317333; x=1692922133; 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=mE3f+VMf8SgNE6cCbkcfMUP8Hiy9b4N5xYpI+7a+l+E=; b=Z+AJu0vFPXMkaE/Je8MUbxopwppkM3ZYGuCEjqo4Udb4rwsByOL38OIKVbJrOQ26Yq un44h6V7FATRfm9UuXaUjz/p2t6fjRHYA1KHI89Q8Z5Rrgdi/J7tfRpN2kv5mP+P7lfh ZTjgZlS818JaXidyWO8XVginFpUIl2BJaM4eWlrMuBB6fVcWvWKZcdAwC9HyjaINBmIR m3FSQeaNWUiHQvqPJSAqWjprH+qkFtNijKEapJdVG/k0V8q0+iEz9CyKVzTMIArs22E1 VLoLdkPTSxqfxZO05epRxeYneP+bQ0AtUJjm+Bnory50Ych4OWPpC2Z5bfbUZIO5ZUc0 5N+g== X-Gm-Message-State: AOJu0Yx9p8VIIldpZPDj/PAUZEl1nk75OWSdV56vRwln7YrrtjsEiTTE 4kuTtlySPinoK8BGQoRbahT/J+uNfYA= X-Google-Smtp-Source: AGHT+IGvQyAfQmNzh/hNJU4kHU1VAazzXRBOVugeRSHej1YWD5+faOfCNQeeq5lvAq2y2Br8ZKMaZLXhQjo= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a25:4113:0:b0:d4b:99ce:5e51 with SMTP id o19-20020a254113000000b00d4b99ce5e51mr13582yba.6.1692317333678; Thu, 17 Aug 2023 17:08:53 -0700 (PDT) Date: Thu, 17 Aug 2023 17:08:36 -0700 In-Reply-To: <20230729004144.1054885-1-seanjc@google.com> Mime-Version: 1.0 References: <20230729004144.1054885-1-seanjc@google.com> X-Mailer: git-send-email 2.42.0.rc1.204.g551eb34607-goog Message-ID: <169229683179.1234886.15097906251075154792.b4-ty@google.com> Subject: Re: [PATCH] KVM: Wrap kvm_{gfn,hva}_range.pte in a per-action union From: Sean Christopherson To: Sean Christopherson , Marc Zyngier , Oliver Upton , Huacai Chen , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Paolo Bonzini Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-mips@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Yu Zhao Content-Type: text/plain; charset="utf-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 28 Jul 2023 17:41:44 -0700, Sean Christopherson wrote: > Wrap kvm_{gfn,hva}_range.pte in a union so that future notifier events can > pass event specific information up and down the stack without needing to > constantly expand and churn the APIs. Lockless aging of SPTEs will pass > around a bitmap, and support for memory attributes will pass around the > new attributes for the range. > > Add a "KVM_NO_ARG" placeholder to simplify handling events without an > argument (creating a dummy union variable is midly annoying). > > [...] Applied to kvm-x86 generic, with KVM_MMU_NOTIFIER_NO_ARG as suggested by Oliver. [1/1] KVM: Wrap kvm_{gfn,hva}_range.pte in a per-action union https://github.com/kvm-x86/linux/commit/3e1efe2b67d3 -- https://github.com/kvm-x86/linux/tree/next https://github.com/kvm-x86/linux/tree/fixes