Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1948049pxb; Sun, 17 Oct 2021 01:39:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynWq2PQfdE7QO+gzsejRSlsqIrri+xQVmiQCrtTZjuSWLHgSxt92UJ6tNZ2SraW5qQ3u5t X-Received: by 2002:a50:8d51:: with SMTP id t17mr33243257edt.205.1634459972220; Sun, 17 Oct 2021 01:39:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634459972; cv=none; d=google.com; s=arc-20160816; b=gR3WI2YzWtxegyCXafb4cWbUGr/Egd1Mjd6yS/tlcL4RA118octOCVfQmRmjrTw3N7 d8qd56MHCq/RTe7eK4ZGEsnpyoUhFhdS4J+iFedSZqFyCUQt881XbVf8yAh5UIe38CR/ IlVzLX149JSEv6fvqYgJOEkbbjGoJgIwwNRbWiVJCQmP1ZJszAkhQO+ad8YJuMhlCoxY 0rk3TWRcWojOouR/CLHAAutmLB9VjFcCg5X6Z5gg7K6pRF7ZoUGf2UwPuji10sh7yq8n dGJF9bYikGtZuxO9JHIqnvaJ/xRHGZcHlyDFeZgSqmR+o2iKm79BPNVMi7d+bM9Avxxc 1WOA== 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:dkim-signature; bh=W+JqviQuWVY3ulWMWJXRdbCnoHN/gayuuY0QwVqhW2A=; b=qMzHvWFqZjrDxBVmNBUbE7X1sKvJErN/laAAlnG54vjaWV6Cn+TcNLIfhNNazQZJVu mZ7MOM7bDcA5CNn7SDex6FqRR8hcB9/3eJyX9Zo4htnA84nE/j7nyN0PJBm+3bK/A0Fr lvQyh3u8H1qK83EU/kxZsB3l5EnIXjilVsSbMJaGBbdw4GP1OgG7VehgzDN9Lz2gt8FT MKz/o/eqoWNuFMWAkU5viMVO30AdxGssq3P8hTw6VLuHnNj6du4W5CYApg+iLplPcMgS ldG/GgRb+Jqeps+73ZkZNoKwAw2PsEuhjUcTpa7DQ7DNlPmDjzWHyEEhPaMoCDyJL0yk jYvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VlpiPyTF; 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 g14si16721996ejb.50.2021.10.17.01.39.06; Sun, 17 Oct 2021 01:39:32 -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=VlpiPyTF; 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 S241482AbhJOQkq (ORCPT + 99 others); Fri, 15 Oct 2021 12:40:46 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:42590 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237274AbhJOQkp (ORCPT ); Fri, 15 Oct 2021 12:40:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634315918; 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=W+JqviQuWVY3ulWMWJXRdbCnoHN/gayuuY0QwVqhW2A=; b=VlpiPyTFMCLNseIEv3dm1gqOESo7MN8IA8Idet6DAjMOfGW+rxzEdGb3B3QACnQYeE51Ss wpjIeT8W1vXEkUTSjMohAQ8cOPUxquBq/x3u5yyzBc4Ly+rSwIQOeAGh+1SfAmij6AY97G D+w9mLAVUBDkx9iD3W2v8KvAJzSUGkU= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-307-6IqunZpTN5eCSgRR43nBYg-1; Fri, 15 Oct 2021 12:38:37 -0400 X-MC-Unique: 6IqunZpTN5eCSgRR43nBYg-1 Received: by mail-ed1-f71.google.com with SMTP id c30-20020a50f61e000000b003daf3955d5aso8760791edn.4 for ; Fri, 15 Oct 2021 09:38:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=W+JqviQuWVY3ulWMWJXRdbCnoHN/gayuuY0QwVqhW2A=; b=c3EaM6MJVZci/ln6vsW7nL7VopbCHvQGmxBI50cFfhBosIe/OsFBN3po+VZuDRg1G3 oAqTDGz2HIQpFQgCQR4xPj21mKzgsHAgTw/vmMivk0/jirkWSwCdi4fzl2S1XWXQ2uzW L1PuF2NQMGzyIHdJFgmwYi61jv0Y17zfGIfooe9pSAq6Zz3td27QJ3Ljfv6Woe/4pLHj Vc3LxKP4HI8lg2uj9s4taLEVPl9HfLFpD+RBbfm7vac0SXqSXCkYJjZ0wU1xBEeKnmK6 z5zqL22ew5tp/ieP9F7R6nOGjbJpxkjDQv+xQP2+RuPdshZulOYQpjk7+WOd7pUdFjmL g6eA== X-Gm-Message-State: AOAM530ky9FMR21UX6nV0KNXyAY1QqmDJ811H+16lYnUZZjlyb/ga8d0 oEC0stf/XzzYlCOvFn88NXUnJAbJf66wcf0WlR5LNXIXj9bK7zIu5OgQsSPbPWo3HMAwqy55Oi2 S1z8/hQ1/PZsFynFJFozzDwW5 X-Received: by 2002:a05:6402:35c4:: with SMTP id z4mr19081845edc.197.1634315916507; Fri, 15 Oct 2021 09:38:36 -0700 (PDT) X-Received: by 2002:a05:6402:35c4:: with SMTP id z4mr19081813edc.197.1634315916272; Fri, 15 Oct 2021 09:38:36 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id h11sm4539594eji.96.2021.10.15.09.38.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Oct 2021 09:38:35 -0700 (PDT) Message-ID: Date: Fri, 15 Oct 2021 18:38:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [PATCH] KVM: x86/mmu: kvm_faultin_pfn has to return false if pfh is returned Content-Language: en-US To: Andrei Vagin , linux-kernel@vger.kernel.org, Sean Christopherson , kvm@vger.kernel.org Cc: Maxim Levitsky References: <20211015163221.472508-1-avagin@gmail.com> From: Paolo Bonzini In-Reply-To: <20211015163221.472508-1-avagin@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/10/21 18:32, Andrei Vagin wrote: > This looks like a typo in 8f32d5e563cb. This change didn't intend to do > any functional changes. > > The problem was caught by gVisor tests. > > Fixes: 8f32d5e563cb ("KVM: x86/mmu: allow kvm_faultin_pfn to return page fault handling code") > Cc: Maxim Levitsky > Cc: Paolo Bonzini > Signed-off-by: Andrei Vagin > --- > arch/x86/kvm/mmu/mmu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c > index 1a64ba5b9437..5dce77b45476 100644 > --- a/arch/x86/kvm/mmu/mmu.c > +++ b/arch/x86/kvm/mmu/mmu.c > @@ -3956,7 +3956,7 @@ static bool kvm_faultin_pfn(struct kvm_vcpu *vcpu, bool prefault, gfn_t gfn, > > *pfn = __gfn_to_pfn_memslot(slot, gfn, false, NULL, > write, writable, hva); > - > + return false; > out_retry: > *r = RET_PF_RETRY; > return true; > Ouch! Queued, thanks. Paolo