Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp61093pxh; Thu, 7 Apr 2022 14:00:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLN9GjFJPChkHIYBCtBS5TbD1HuNP55VxefqRQLPXuN3nGJtpjCHaq709VQCZT6K7LLKCc X-Received: by 2002:a17:903:1003:b0:156:75c3:8e27 with SMTP id a3-20020a170903100300b0015675c38e27mr69594plb.91.1649365239346; Thu, 07 Apr 2022 14:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649365239; cv=none; d=google.com; s=arc-20160816; b=rMd/S+dZYdTxnIXws6Wc083wECJ1d5+RF4xIKVMzr5lI2LA8O3nB3NjqHJvMEM4/XD g4sSJR+x9ookOkFWpgJjTNrP2gutxE0DDmgsUXdLt5FfM3K/m1J6ZcmCzctShVGajstT MV+0CnR3R+bCUR7Zz9AI2rhltjqBl1ERftaGT/SMgxKvWoDYxxK/3HpXzv/2Ns4tRbVa aWObFf225zNdl/ehL+CykoZiDbWpgG/MQMvD2QKnWxpdHVKE5xWE8Vy4O1FQUGow9b5M zskXwK+a5ZRQHO+vQS5rT7hCeJi9LXIe/yreIMfeBRhziV7zWP5By/zGY4B2Jl8R//po azMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:sender:dkim-signature; bh=RtLEHMXofVwSigiZFruK1cViTW610dtmPpogWRx2vYw=; b=Sh8pZJ2197tQLZv/d69vMxaRYsiI0JUzHPGFyJ4AgIrnbkkAcL+S5FdfPl8+olyJ5z ey1284ktFbiJ7/7K1Wt/Eem8yrPhe5NQpqQHMmNkjfFnp76q8riELjj+h5OpcRHLifY8 H9GR2EMl9QBnX1Og1V3DeV1XQPLux0LLA+wUJowuAefdTccqBCKJ5RWkmGaKeerTA9Ph 2s8DaTPojCwpdgYeY2+a98MvODdkL58NmAOP+26DtS4p02obmp9tT1X/mD5aN2k22uY8 VQrr6ab0TbcsAxLgQLTfCVRiikZWG/9eRAR7zu6RD+gDE0cLJIYnHcUQyTTcngnVCX5P UrbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q9vW21lD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s4-20020a056a00194400b004fa3b635a94si20694552pfk.111.2022.04.07.14.00.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 14:00:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q9vW21lD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 32167445845; Thu, 7 Apr 2022 13:04:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343681AbiDGNzE (ORCPT + 99 others); Thu, 7 Apr 2022 09:55:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242816AbiDGNzD (ORCPT ); Thu, 7 Apr 2022 09:55:03 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6401118665; Thu, 7 Apr 2022 06:53:02 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id d10so6553859edj.0; Thu, 07 Apr 2022 06:53:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=RtLEHMXofVwSigiZFruK1cViTW610dtmPpogWRx2vYw=; b=Q9vW21lD4OBM6tWcGgFjv4mr1Jlw8Y1HftqW6nKVE/kn8NU5nrtIRuKRZ0kvV5JTDa JUIetz7mC/8jEWgICzJHIl4QnlxBdT+jVEqvtH0UAYgP4jy2vakI7MqoldoILxFAhipM rBZCcxUXu0rIT6myNSOl1RMcCC9Sc6j5VPisJVSEDH54xkT8EXDyOWHL0yscGmpYhjbV KfOwAyduR8/tR1m3PPOg05GbXbxQKDc7iZVqSKQmTrUGeAWAeOkQMCB/kbuuPXp3IlVh UDk3ntcbwvFhkEBMRU57NgsggAtGvAOggUEGqHq8zLqJETfBvEzHsuOa0jkHeVwd4u/+ PkuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=RtLEHMXofVwSigiZFruK1cViTW610dtmPpogWRx2vYw=; b=tuvUA6ZWUePU3votAoHpJvbhglY5ne0s7/bSOEqSkhVulzSvHfVi26i9f3rjhyqsRz nut1Wq1KD/RRSjwaQ5MImTn0h7yxLeEgFwjzJwGVh17LsgKhXISpCkfqGKGpQqws6gPj +KedLLNkr/v3Oso7ddua2aNA8RnlobjG1G2BwENkwt14pKEOf7cZlRxARd/sducpWg0o 8M3zDAQBlBb5SbQsXjKxY9aQ7cpW8zsk/OpaMm6LkeAAtKKeWa4MICtFUvKChXvtZBHv i8oF5sVx8uCB/u6HF7Sb76dqTRtRD+kxkx6HWCMlreTsSFkmo4u83pPdSDKIe3UL7+34 JwBw== X-Gm-Message-State: AOAM531OlRS3xTzWQ324nteU4VA9PoP4XPiViAfVE/78ey1usTja1Jwg t+F2f01y9d2d9maKhg7HvK8= X-Received: by 2002:a05:6402:2688:b0:419:5dde:4700 with SMTP id w8-20020a056402268800b004195dde4700mr14644996edd.124.1649339581190; Thu, 07 Apr 2022 06:53:01 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.googlemail.com with ESMTPSA id c1-20020a50cf01000000b0041cb7e02a5csm7389585edk.87.2022.04.07.06.52.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Apr 2022 06:53:00 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <37a736d0-1f25-79be-4c3f-c8e8a5a62528@redhat.com> Date: Thu, 7 Apr 2022 15:52:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [RFC PATCH v5 045/104] KVM: x86/tdp_mmu: make REMOVED_SPTE include shadow_initial value Content-Language: en-US To: Sean Christopherson Cc: isaku.yamahata@intel.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, isaku.yamahata@gmail.com, Jim Mattson , erdemaktas@google.com, Connor Kuehl References: <6614d2a2bc34441ed598830392b425fdf8e5ca52.1646422845.git.isaku.yamahata@intel.com> <3f93de19-0685-3045-22db-7e05492bb5a4@redhat.com> From: Paolo Bonzini In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/7/22 01:35, Sean Christopherson wrote: >> Please rename the existing REMOVED_SPTE to REMOVED_SPTE_MASK, and call this >> simply REMOVED_SPTE. This also makes the patch smaller. > Can we name it either __REMOVE_SPTE or REMOVED_SPTE_VAL? It's most definitely > not a mask, it's a full value, e.g. spte |= REMOVED_SPTE_MASK is completely wrong. REMOVED_SPTE_VAL is fine. Paolo