Received: by 2002:a9a:4c47:0:b029:116:c383:538 with SMTP id u7csp943239lko; Tue, 13 Jul 2021 13:30:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy29pm4czsPX3JcxFz0+9zt2njwm02TA8JfKCgzh7Gpotckif35uBWktLzYee+Vlv8RFP0G X-Received: by 2002:a05:6402:51c9:: with SMTP id r9mr8123101edd.326.1626208231311; Tue, 13 Jul 2021 13:30:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626208231; cv=none; d=google.com; s=arc-20160816; b=Bsbm6WFmL+bcAA48HEYpiEzCBf1GbGVy3JTn74B+E5uSiKg3B9m6TF7zJXhmik9yjl 6FOyTuuvL1pcId0KOaNWhqeQKkJMWsqnwAX82CHwKs+pSSin7+pt2QZWAQRyRLKcp88k xP5Ulyj5ViBt6Vcpc4gcSeXBuiJ+Sfb0Kt3BB+pXXH/u7XwZ45MFqIujfbqGMgKiMV5v Bo1bVDowFeh5q+4A9QVYTqyjMDt3X3OpNdBrKQ/tZdV+vR/j4oy6iBx/btJqGCiKIEkg cVFYFWwKvU+Sm3vx7LyyGoj/BsLzaXtJOV1PSTgK4PwTIpryYdcBu2WM71kE1JERBdrE BMBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LxJNrLcxo+1XG3xReG2GznPJ80Kx/41M8LyFkMVe9nw=; b=H/QzsAycOOrVaLSoVnEwC0KGC4L7FdNQdUeWWuWYSmRiAhTegO/wnB6EAP4XN/qnk8 klcqVZJ06/1TdC7TfNSQoaHx25agEohWJKAl9bqzrI5ojW2bAIFsJUs2B6rIgGyr10vC AAKWIXmK/oQYDD4wsuTsx4FkDnuBBkm2YxqePjKT0c3J2jjE2zk4sxlNbu9n2Fqz7r0a bhdDAoen0plY0HReTSQPiSXWA1iBd5+vOPE/VYxfXQhsThEHxuwsTbTleG+MA/flhW8i 8uQ6c5+ufvE7VvMDVlCx3w+4UjQQqUy6bvKYl1B0QDyQuLFPuDSv4268dbHLaNlWk50G 50kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=LVyHap2I; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j10si22608887ejv.442.2021.07.13.13.29.44; Tue, 13 Jul 2021 13:30:31 -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=@google.com header.s=20161025 header.b=LVyHap2I; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234957AbhGMUbZ (ORCPT + 99 others); Tue, 13 Jul 2021 16:31:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229944AbhGMUbY (ORCPT ); Tue, 13 Jul 2021 16:31:24 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A42E9C0613E9 for ; Tue, 13 Jul 2021 13:28:34 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id c15so23343pls.13 for ; Tue, 13 Jul 2021 13:28:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=LxJNrLcxo+1XG3xReG2GznPJ80Kx/41M8LyFkMVe9nw=; b=LVyHap2ItF10BDhXeoGpLsMsy+Kpnq9zg/VQMqQpe+4mMVxsfeZi19ErCqjwPe5z8q HQKrMF+TJEetLHunq9crVxN3cFqO1Vh3hVt9uMxSyRt1oCmdGtQmEYiaPNtMFG1dOLhS 0PKdV6y+2xXlS371/sZsYdffhk5gU3LcuI8g1Ew7QtwKPbNT0t6ERuHwMATY7aMc44Ah +qPzcshSyQD404qt0kkXjBvA+3TvfjlwyceRHG+x/Ys3h6E1VlDvQry4y3lJPZGMrQ2n Ura6G70OULrhe4kwCL1L2LDG8QToCyDlW791EVIza0Ew0evTCVTlTbdJYlnyCCpXw2bs RTDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=LxJNrLcxo+1XG3xReG2GznPJ80Kx/41M8LyFkMVe9nw=; b=bkK74wQhw1lENQFaCfyj1ixVLMxUAhPUy9KjW1vAhTKgOHD+WLfU3lmjNE5Ro0vFQ5 eLftImthejoLXeE/t9j9eV3i6hc2wEnE+2fGcxNtaG36SDe+m2lNEpiqwMfYmAQXYshS vxE9V3SFjrsrK3t3WJqux4I6TN7Xfa34VhJW/ZZlRyaLHl2C0342q9dMAv+ewpUALgFv m3cgckf8IK6RbIpbBxlC0cKeVwZrvxJTuZ0DUN1tLQOMb0vwzOIM5/8MUexRYymZmrZA YqdtMz6P0cJm7zs0H7hu9rfQ/VRdva+QBNxkZht+aEn5q94rnVM4M+VH552zBIrjljF5 vO6A== X-Gm-Message-State: AOAM5332FqqOE8f5faCRo652BR1ix0MCRGXOKZ5nBDdKeaEtJpizVT2M 9lGoSdhHzUSgU/w+JzQttB9yGA== X-Received: by 2002:a17:902:bcc7:b029:12b:32c5:3d31 with SMTP id o7-20020a170902bcc7b029012b32c53d31mr3245556pls.55.1626208113905; Tue, 13 Jul 2021 13:28:33 -0700 (PDT) Received: from google.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id u24sm32501pfm.141.2021.07.13.13.28.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jul 2021 13:28:33 -0700 (PDT) Date: Tue, 13 Jul 2021 20:28:29 +0000 From: Sean Christopherson To: isaku.yamahata@intel.com Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , erdemaktas@google.com, Connor Kuehl , x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, isaku.yamahata@gmail.com, Sean Christopherson Subject: Re: [RFC PATCH v2 20/69] KVM: x86/mmu: Mark VM as bugged if page fault returns RET_PF_INVALID Message-ID: References: <298980aa5fc5707184ac082287d13a800cd9c25f.1625186503.git.isaku.yamahata@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <298980aa5fc5707184ac082287d13a800cd9c25f.1625186503.git.isaku.yamahata@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 02, 2021, isaku.yamahata@intel.com wrote: > From: Sean Christopherson For a changelog: Mark a VM as bugged instead of simply warning if the core page fault handler unexpectedly returns RET_PF_INVALID. KVM's (undocumented) API for the page fault path does not allow returning RET_PF_INVALID, e.g. a fatal condition should be morphed to -errno. > Signed-off-by: Sean Christopherson > Signed-off-by: Isaku Yamahata > ---