Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1352908pxu; Fri, 16 Oct 2020 09:50:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpb8RBdREyCCYNoSIrOzAU+UqhbV+9hvLqceC+EIfMYLjc8fQDF8LSlUHrrpw+/fPFb1o6 X-Received: by 2002:a17:906:2301:: with SMTP id l1mr4537404eja.488.1602867049355; Fri, 16 Oct 2020 09:50:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602867049; cv=none; d=google.com; s=arc-20160816; b=SQIQvgsHX85HgJcRGrvT0ryhAA/Am4Kg3BrrdwNY9A5XemmusDWolzBhdtiBJnt0A8 N9kxSk6XXtoOkhgp3ym+h/y9rewBVHFgzT2WRGQy03XY1LmGrd5xXHZkSOKP4ccwxhLF njGenthU1Hd0Cmx4EO+t+4JxPKEVYPx58YNoStc+CbHCS2jNppn8EC9B7xD6yEScbuXc Ko5A8jwRBB0tn+Wz8S4v80GRDnBwcEnFhW/KeiUKUo8898HxjS+3CrpFjNwkHyqPabb2 eFrDiVRLfST7lE7HlaGLsdu3dJAExM/AxQqgDMRVqYIARp98YUVZyQFD0OSDUZohdwWI Htvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=eD8jVuSLB7bhS1tzZOiVsps5uH3EKR905X+lDjVw/1E=; b=davTtPsbRBMdkQiJvibUIZaM5XjhSleotby/jVJz3X2MSrTlw5rw75ZehmqZW9EN2s bvmBziZMFWarTG+wM9LW4KGMdAnAmSRE4zKiO0ftzpkCrYJrQcwtE1N3yvclItm9+89t otLaqeO9YVs1IheebMwuLWFG2aVolgFn5ErwwzzTgbGYIJZrnSX+gpBtdhucbnoIgcJu qd268rV4TxfB0FBRQek824atYeQ39bnao/cldhnE4qzTgjWtsC61qeHaVXRQAl7+72sf psdQP736vpmpR3vUr2m8ceyQiZBigaTL3sVChBLctcF7SHCK49ebv7a2asuknp3xKR0D CGTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Fpg+xh/b"; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cq6si1958149edb.454.2020.10.16.09.50.26; Fri, 16 Oct 2020 09:50:49 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b="Fpg+xh/b"; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2410741AbgJPQSs (ORCPT + 99 others); Fri, 16 Oct 2020 12:18:48 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:59307 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2410727AbgJPQSq (ORCPT ); Fri, 16 Oct 2020 12:18:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602865125; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eD8jVuSLB7bhS1tzZOiVsps5uH3EKR905X+lDjVw/1E=; b=Fpg+xh/bADci/JlEqVAd/SlHQ9f+Wx08L5DPeupm8eT3qX+aObHzsKsPIds9QdyEM8u9j3 rGyKZrqTtAv/w8vQU3U2mgzCCF8zC1V4wVRH7VApZQUAzjgLePrEu+0ttre8eHQKa9anxM uPbOqdKukCug1adDYDv9t0TRZHKO+SI= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-329-PXrggrblPguhFIQjf0iGKQ-1; Fri, 16 Oct 2020 12:18:43 -0400 X-MC-Unique: PXrggrblPguhFIQjf0iGKQ-1 Received: by mail-wr1-f72.google.com with SMTP id 31so1699439wrg.12 for ; Fri, 16 Oct 2020 09:18:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=eD8jVuSLB7bhS1tzZOiVsps5uH3EKR905X+lDjVw/1E=; b=qYmZz0ZHAyl6S6/2G8fh1uhMdVYZNQute2uxUD1Vt7ohgwYIo531hqUT1hG61mJsSG sbZ//taww2raglOUks5jnrLiIkIvE5QjJzY8yRuMQzO/KSzaomBHmC4XAUXGGBxSePDV DcE2g/r7oBj5mOhzvGWaxH9gyYjNOwJrYtZrsETDHQ7GQf6vW1ebW6unIr1FWimLmawB Ngnllm68NS/NDt/VVuOXtIDZUwVPrcNoz9nXKC24kM9l6kWEpgsaf77JFhR/SY0eFlv+ Q+76mk9EFmdEGIYbC9txnywyTsmShObSNT96NuYvgOWtWlX/yNBpH9xAmOepCD9Iz20g imXQ== X-Gm-Message-State: AOAM530fDoPWw6d48D7GVrlaq41E2huslv1wIALeevgUmrtbyDCZ6j+R PNg/ewTUMJORTGaiEmPSWLoxbo99I8Lcjz06RJRyY5oVYRfa5habTpJnf6iTI2kqVJoeiIgBJ9b G/EN+hHwu/1IFd0zqLTcrFvF+ X-Received: by 2002:a5d:468f:: with SMTP id u15mr4893721wrq.154.1602865122090; Fri, 16 Oct 2020 09:18:42 -0700 (PDT) X-Received: by 2002:a5d:468f:: with SMTP id u15mr4893690wrq.154.1602865121811; Fri, 16 Oct 2020 09:18:41 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:4e8a:ee8e:6ed5:4bc3? ([2001:b07:6468:f312:4e8a:ee8e:6ed5:4bc3]) by smtp.gmail.com with ESMTPSA id l26sm3250779wmi.39.2020.10.16.09.18.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Oct 2020 09:18:41 -0700 (PDT) Subject: Re: [PATCH v2 17/20] kvm: x86/mmu: Support write protection for nesting in tdp MMU To: Ben Gardon , linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: Cannon Matthews , Peter Xu , Sean Christopherson , Peter Shier , Peter Feiner , Junaid Shahid , Jim Mattson , Yulei Zhang , Wanpeng Li , Vitaly Kuznetsov , Xiao Guangrong References: <20201014182700.2888246-1-bgardon@google.com> <20201014182700.2888246-18-bgardon@google.com> From: Paolo Bonzini Message-ID: Date: Fri, 16 Oct 2020 18:18:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20201014182700.2888246-18-bgardon@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/10/20 20:26, Ben Gardon wrote: > + spte_set = write_protect_gfn(kvm, root, gfn) || spte_set; Remaining instance of ||.