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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3FD4C433EF for ; Thu, 11 Nov 2021 01:45:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A78FE6152A for ; Thu, 11 Nov 2021 01:45:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233252AbhKKBrv (ORCPT ); Wed, 10 Nov 2021 20:47:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233150AbhKKBrt (ORCPT ); Wed, 10 Nov 2021 20:47:49 -0500 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0647C061766 for ; Wed, 10 Nov 2021 17:45:01 -0800 (PST) Received: by mail-pj1-x102e.google.com with SMTP id gt5so3001954pjb.1 for ; Wed, 10 Nov 2021 17:45:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=vIpqkuXH/BEP47oEfxhMZ9/fTD6xVKLD28FU3QaYHLg=; b=mM69LO5YQ6sqQc8Le0frsg9F3hqNgWpT2kCUVE55Ec6XVmIu9DQfmszelkI97gfwre 014Qezf+KDo6iflV5bNvhE7KfBAhkKVXODMe6VNdoJINHgisiEgTQMquKsqFV1fm185d MwUEn8MkPQjzJdo2iB1Bd93EX6f+U4I79VFK6n7okZD9nkY6Mq3xdiK05S14/iKUzlnk VWCy0+U54EA1ov52EvgFXy3IzMYePujUrjR7lUA/p944Zx2YMyq7wxpoUei96DYgq8y8 vtVwALtuZUMMRDqXM47ZoctqCW52q7b6ty/7uCZ/gEaK4AqntWFTy58VUdVPUldxW6S0 jFqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=vIpqkuXH/BEP47oEfxhMZ9/fTD6xVKLD28FU3QaYHLg=; b=wXVlLDuiHd/FnsuwOjSFzCgkjZJB4i34r3tTXitq6HH3Ylq9I0tMHeLp/azXNAveil b5Ogd2Tp6MocenZcMUDO54FbtndFDgVJPmPoaXstfunKH7xbHx2RVkXMq1WVrqW1dxtI 3sEuZlxvdzsgurfTXRqUZp+4bLUsb3pgb7EhgS6l7Ac4zRedepJJw11AU5BwSBe2/Ao5 ZBEtzFRqqfep0282GS8NWs/AE8xVeCv+u0bXoNwBSwJHkgcSnIUagNvEBfqHUps9Lkma W5sEMyUTzV6W4VY9cbZBLAjqGCL2Rj21oL8+37uEwMCoQZUjWQGxk6JmO9X3TZo0LoYQ XHzg== X-Gm-Message-State: AOAM533d4ZVarq3Siz4W1Iy4i7UisiofyZNDIv7qRq0wnpszBunXCQns MA2YbqsjXljhWSn0fLQiiS6u3A== X-Google-Smtp-Source: ABdhPJw65Cs7XdtqOeDTy0swpntsrIFQd+3JADjeMBvvt4fWbOcVc3oGGNi04LpHcIEZAJqhVlKzlg== X-Received: by 2002:a17:90b:350c:: with SMTP id ls12mr4066067pjb.197.1636595100452; Wed, 10 Nov 2021 17:45:00 -0800 (PST) Received: from google.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id a8sm860341pfv.176.2021.11.10.17.44.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Nov 2021 17:44:59 -0800 (PST) Date: Thu, 11 Nov 2021 01:44:56 +0000 From: Sean Christopherson To: Ben Gardon Cc: Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Peter Xu , Peter Shier , David Matlack , Mingwei Zhang , Yulei Zhang , Wanpeng Li , Xiao Guangrong , Kai Huang , Keqian Zhu , David Hildenbrand Subject: Re: [RFC 11/19] KVM: x86/mmu: Factor shadow_zero_check out of make_spte Message-ID: References: <20211110223010.1392399-1-bgardon@google.com> <20211110223010.1392399-12-bgardon@google.com> <80407e4a-36e1-e606-ed9f-74429f850e77@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 11, 2021, Sean Christopherson wrote: > These are all related to guest context: > int (*page_fault)(struct kvm_vcpu *vcpu, struct kvm_page_fault *fault); > void (*inject_page_fault)(struct kvm_vcpu *vcpu, > struct x86_exception *fault); That's incorrect, page_fault() and inject_page_fault() could be per-VM. Neither is particularly interesting though.