Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1787328pxb; Sat, 16 Oct 2021 20:21:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOZ8txiryvB5SKQB286qTmltaXZfXEJ/mMwyFDKxuvjbv1aFFyNab1iqm2ojZO72C1AgLJ X-Received: by 2002:a05:6a00:acc:b0:44b:ff29:621b with SMTP id c12-20020a056a000acc00b0044bff29621bmr20924337pfl.32.1634440861680; Sat, 16 Oct 2021 20:21:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634440861; cv=none; d=google.com; s=arc-20160816; b=ie7CEdUsYMAbWlRy17zV2zovN4Xq+PuZq0slj8bdnG0Ons2Y6PCotC44HXKU0+5Hio STdEfuYzn80gNjSxsvqi22XnCvhJ8d4zTCF9dqBc0pBslUoMdZ8HKh5o/Kvp+gwmji8Y hsEmS0BrQinugal5xUjj7VFBVmkWmGB8UqjywvzAxpQ405u3twD7HYt+++0F0F2IMbLP WnHNgrBK0Z0ga4GFwkj8LRVN8ijCcYI/FnJO72XSiRbZOm6/rvWRqV/FVRhDZeFp26pE ic/o4UBt/ZVwyVyhCavWoDyXi4XMCHjkbvuliaeVJnMaTne+a7tlL3kb3h5tMnZctu1H Euig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ZwuGqL3+ELdyo3s+0IX7nYDyy8R+3UhnzhnMIc+LF1s=; b=xPnWN3vSE4b+Mq7yrt91FiYv0PVIAPteUqmGXCvXYNCGMk9cbN46xPhbXBCu1UdVB7 fkm4kBoH4X+1UlnlnY11rcf2RajzmleaiVEfeQ8QtMeYGmE3rWD4tyvwUPaZqESbnOyh N+U9mFvC6YahPvyg1WEBV5t5t02hYoksbgFBEjqg3dh562dLt8Js9iTD8eSDqHTjZd7k ZkWQhAXOmNgQcS0vaymnsmv9GokUm0LFLleL8VXTHF4ssZSKQEvrzycbBhL8HbpLydlS jYjCy/9l1bm+KY2MUCngOgxuYxH3vUMvs1+YtyVF7mIcll2zFJ6wR4ihh+j4kSvurQJo QkLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QP3pvvCL; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i127si13345902pfe.356.2021.10.16.20.20.30; Sat, 16 Oct 2021 20:21:01 -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=@gmail.com header.s=20210112 header.b=QP3pvvCL; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237072AbhJOQe6 (ORCPT + 99 others); Fri, 15 Oct 2021 12:34:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235807AbhJOQei (ORCPT ); Fri, 15 Oct 2021 12:34:38 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0EACC061768; Fri, 15 Oct 2021 09:32:31 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id f11so4918639pfc.12; Fri, 15 Oct 2021 09:32:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZwuGqL3+ELdyo3s+0IX7nYDyy8R+3UhnzhnMIc+LF1s=; b=QP3pvvCLobAXk04nn3CngQjQxqSziImBzJlivyb4zOimnog3M+t5RtaIZ01eeaNldz BqwtPvoq3tmB3Geoew/+SWVUlj4VgkxNW6Ru5mVruEl/vr4TQs6GQNb4kOVqovNUbAIS Av1ynEbJp6WXzumm2UH88GsDNCTPJ/S3SbrGhN2NTla1/ZdkZKHRuGx3XyTVfK+jXW+2 46sspANUx7Bzlif9XVAzDAgbUuSKxfFW+nioP75dEBZ75xtcd0yBntimkZLjXh/a7NWJ AFxrbSoetbONBKgsHumyd3v7Sheho2HAKjVfnOpkuXDlry6zKWyn9zb01aNjJ1uGcoDY HL9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZwuGqL3+ELdyo3s+0IX7nYDyy8R+3UhnzhnMIc+LF1s=; b=5lkHppt+nEsyAlKYFPBGtqccKg9h5LZzXyMEDqKrpLx70+JLZF7GPgR4lUhgTQIqBE rGowstiwfFw1hnkL4QYMXOCrwK+ZEwv3z9Banabb7J17cAnZ1a0dwm8TBDh4pLkYZI8y nG8an7FDiafgi1jKAR6DmLygZO+xW4StjPxw2nJS+BogStMD9fkfSgUVSj2LaTdQjrKu tnFtOug+xuETox1g8JLDyYw9qXCUY+TOFv9KdWi9x6NJzMGiAE6uypeG9bp2joghI9p0 Tm3DpBKWDk4NQ99cXlVXHwDA4l++upBEc0Z5MqQQ4RGNNDSG8f7/agJBMCGXN6628Es9 0wqQ== X-Gm-Message-State: AOAM530cfAw8N24I8HbFJ2DMFJXD8o87lFrMwVQ+0CrGRB7myuZ8uplu yNGgX+edkBIvh5JxYb/+o4D2+FrWZqd72g== X-Received: by 2002:a63:8f5c:: with SMTP id r28mr9742417pgn.70.1634315550931; Fri, 15 Oct 2021 09:32:30 -0700 (PDT) Received: from laptop.hsd1.wa.comcast.net ([2601:600:8500:5f14:d627:c51e:516e:a105]) by smtp.gmail.com with ESMTPSA id p16sm5818137pfh.97.2021.10.15.09.32.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 09:32:30 -0700 (PDT) From: Andrei Vagin To: linux-kernel@vger.kernel.org, Paolo Bonzini , Sean Christopherson , kvm@vger.kernel.org Cc: Andrei Vagin , Maxim Levitsky Subject: [PATCH] KVM: x86/mmu: kvm_faultin_pfn has to return false if pfh is returned Date: Fri, 15 Oct 2021 09:32:21 -0700 Message-Id: <20211015163221.472508-1-avagin@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; -- 2.31.1