Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2783315ybt; Mon, 22 Jun 2020 07:00:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMOXcgCgURJfDpPTYycD2FXamLqb/mT7ge1CCtvE73CB7K/0Eljm4ahSOYelBAJqsYVs/O X-Received: by 2002:a17:906:c672:: with SMTP id ew18mr16443767ejb.404.1592834427362; Mon, 22 Jun 2020 07:00:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592834427; cv=none; d=google.com; s=arc-20160816; b=mRC/FLTpFrghH+eNlVKcmQ3GyLl8m0pytRuNqt3F8y9D4KHNze74r37d/6ZRcOo/Il a0kHYvVSyjP++2dxGOUkZLxe97QfGBwyeby99T5um7nUIXY5UjQ4I972qA/EQFmv31eD FVpVLGbbYu7w5fe4rL4DDZJd3tfC0T++ypMKhys9g7J5us/t35Kabpez2LnNtixPYVVz /FnNL+zGSdRoIPqkkR270v/UfaWuh/N5WKVq6AVQCM0aw87ncZjMFlTzSpni4eQgV/hK AImAAxwJyzw/HKU4KWNgx8K6Nj+qCx8q+TNuwPDRMd9hr3jX+dEDn1z2C9HiiRIX82V1 BrXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=7Dbcv+orP1bMR1kWsR7V/IGamiGGqbmfinxnIa4z8Z8=; b=Zjwe7ZGVMMPEtYdDXIXS+z6uwxEn0k1eJmX1noCx7PfF8g7hYeybspNLDhe1bmSupt ZA0kkq90SMn93jmAuRbUqcpuFTUjPslmW793lz9VhL7r/hD2+ZuJe0E6JzjIwrRjQlaC JbCMMY2O8i95t7/KPlXKkxKPZwnFdoql8jh4x77BKr4bhDkLht6pfVEX+9U6vlY6FxOy rVeORkw30o4IHPC7XUXD/eZoB/ziytMOqz0+EFtXjErNGfRTeUYL/QwoLjVuc0SVFE+W oAc4pj0oYqFVXKAkDTY2gTB7XrxZQIBGB7MIJfAupwpX0YLvHv+T6xOy/VGeuuGN4tF9 2jGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OWC2KKWl; 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 d8si4463677ejc.559.2020.06.22.07.00.04; Mon, 22 Jun 2020 07:00:27 -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=OWC2KKWl; 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 S1729056AbgFVN5R (ORCPT + 99 others); Mon, 22 Jun 2020 09:57:17 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:36002 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728070AbgFVN5R (ORCPT ); Mon, 22 Jun 2020 09:57:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592834235; 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=7Dbcv+orP1bMR1kWsR7V/IGamiGGqbmfinxnIa4z8Z8=; b=OWC2KKWlLvU44SM1CP6L7YSgYRb35aMV+0o0Srv1R3nIoouex/xrMR/3SRIE5BXQXSLeGB Q2la6CjXBGV4/gfMW6dohPzpz0QdZw5sVFAIcTBx56Wj+d56fTkdHJGerXnhcPgc8JUCsd ZrSn3nw2mByz9DwE0OmDg1TsdfNQbjc= 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-326-2cpSOS5EMYC6zwA_LmfFbw-1; Mon, 22 Jun 2020 09:57:13 -0400 X-MC-Unique: 2cpSOS5EMYC6zwA_LmfFbw-1 Received: by mail-wr1-f72.google.com with SMTP id p10so10888710wrn.19 for ; Mon, 22 Jun 2020 06:57:13 -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=7Dbcv+orP1bMR1kWsR7V/IGamiGGqbmfinxnIa4z8Z8=; b=Ydv1VEqSu679H1NUWmeIRTGyyQhDHFX1Y0+XOArIBwCmthd3ek9t+RserP9ev3aT2t GhNdbUrnm1flY80pKEYOpbB79SKbdkoLrw+i4cXaSfSnoj5wv4UycD8dY8g/BlVZDenl Hwdlz6iUmDlf2ZOe+Qi5am7UYZbs4etgq46ens0DZO4neFt5ufWDeDKT4JhDwT4P8vv8 qj05SbhZxZaGwumHeQAmJBD4htrGkSVuzKxR0SBY75U0TW+h/C7XsfZGAAIq/VH4tVLz if3fPYfAItpyv6ahpx03vbNlTpNLU5NBnrxHlln5WZilZoirfgMz9VtFSLa/PzA+7BYx PMdA== X-Gm-Message-State: AOAM531Ns46KYp/EchgqWw/FawejPegvV+PTT9eWjmEqcT6A9OWwSBGj 70hj1sXYRZhuco5oavl9xANaaFrD5VreAZr/3Q32xs0MobQhf9SIHNPZ+jO5d5OgMb1bO/V74lM Svp68scWnzGxEQ73RLkrHLc7/ X-Received: by 2002:a5d:404e:: with SMTP id w14mr16864019wrp.268.1592834232343; Mon, 22 Jun 2020 06:57:12 -0700 (PDT) X-Received: by 2002:a5d:404e:: with SMTP id w14mr16863993wrp.268.1592834232066; Mon, 22 Jun 2020 06:57:12 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:fd64:dd90:5ad5:d2e1? ([2001:b07:6468:f312:fd64:dd90:5ad5:d2e1]) by smtp.gmail.com with ESMTPSA id e5sm18457392wrw.19.2020.06.22.06.57.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Jun 2020 06:57:11 -0700 (PDT) Subject: Re: [PATCH v2 06/11] KVM: VMX: introduce vmx_need_pf_intercept To: Jim Mattson , Mohammed Gamal Cc: kvm list , LKML , Vitaly Kuznetsov , Sean Christopherson , Wanpeng Li , Joerg Roedel , Tom Lendacky , "Moger, Babu" References: <20200619153925.79106-1-mgamal@redhat.com> <20200619153925.79106-7-mgamal@redhat.com> From: Paolo Bonzini Message-ID: Date: Mon, 22 Jun 2020 15:57:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/06/20 00:45, Jim Mattson wrote: >> + /* >> + * TODO: if both L0 and L1 need the same MASK and MATCH, >> + * go ahead and use it? >> + */ > I'm not sure there's much "TODO", since L0's MASK and MATCH are both > 0. So, if L1's MASK and MATCH are also both 0, we would go ahead and > use 0's, which it seems we already do here: True, the comment should be moved to patch 8. Paolo >> + vmcs_write32(PAGE_FAULT_ERROR_CODE_MASK, 0); >> + vmcs_write32(PAGE_FAULT_ERROR_CODE_MATCH, 0);