Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7057C433EF for ; Tue, 16 Nov 2021 18:39:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A689C61BAA for ; Tue, 16 Nov 2021 18:39:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239559AbhKPSmh (ORCPT ); Tue, 16 Nov 2021 13:42:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239555AbhKPSmh (ORCPT ); Tue, 16 Nov 2021 13:42:37 -0500 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E061C061746 for ; Tue, 16 Nov 2021 10:39:39 -0800 (PST) Received: by mail-lf1-x12b.google.com with SMTP id bu18so124821lfb.0 for ; Tue, 16 Nov 2021 10:39:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=y8BSCacTYyDcVPM5IoKBN/fEmfxWN/lo+RC/ugsV1kA=; b=rYJ0YguBFbcmp1Tg5G/C5elRrhHlqhZPZ9s8Rgi1EyZL/mBO38rP8TLiOW+ATwSvse hx7oPPVfHIuXUqflFoLp78XS17/oAIFNICUc0clQp+DsHzreVloNA65wQQOnbMStJO7L cRJz23BZ68/NRRpFbqz0JWlQ7dBZs4VkbRuFof2ir9z4E3NFYT2j+EcVSEvD7mBaI+7n cayKlHYWqpdyX7SKzf/EHZxBnRiaA/IxQ9tqIztiqPblFl2RiruzS7/DSXEX3z38FmRW AuC05B/4Cg4W+0nfuwbanEM5/q3cutNMoV8HbSx303/tnFRkK8RaZJvdv1FWALYQOU6m tiZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=y8BSCacTYyDcVPM5IoKBN/fEmfxWN/lo+RC/ugsV1kA=; b=sWXqHPxEK16tXbE4/NHPRJczW/RodCrBY5mv257C3Mee+AF6x/W2ulLz1didba0RfK VKicHwGpOnI72PtYeJY9trc1MlSh0+BNZ+ZFAQUQcBhk6jlJp59zNRnwUCctOB+LLDYP k+DME427AEO9kYRsAIPJ1WTrZmi3gb8Ync8QcQIE7/jnwGEj1Aan7x5yIO+nNLoqIwul lH4zKMPScjHo7HbGXA4LPoLJQpIdLEcCDLw2KmE6gfOKWAEK8RULyG5qEDx+q4Zkr5U1 6gx6Nsk7yCSzWJ0RdKFe+kovsgWjSoVxsye1qmz+xHToZF4BUBRvqm1ieeOiW1zOXcsC KCVQ== X-Gm-Message-State: AOAM532ROgCi1cOwB8Qkq+5o35/iZv2Z2cqjYzUvjnlfdvpcRAkBi/6p pNrfLdhlGFA3QpekeU0PDYcwHx1TyOScB6OVoVvURA== X-Google-Smtp-Source: ABdhPJywTYnlEyhOxCxt2a7nHxlAjR09HGR/8hsv2oGiftn1/xaXRUoDkhP1uYAcS9P5PWYcD8g2hetueUBVXSKepCg= X-Received: by 2002:a05:6512:3e12:: with SMTP id i18mr8517991lfv.456.1637087977701; Tue, 16 Nov 2021 10:39:37 -0800 (PST) MIME-Version: 1.0 References: <061ccd49-3b9f-d603-bafd-61a067c3f6fa@intel.com> <8a244d34-2b10-4cf8-894a-1bf12b59cf92@www.fastmail.com> In-Reply-To: From: Peter Gonda Date: Tue, 16 Nov 2021 11:39:25 -0700 Message-ID: Subject: Re: [PATCH Part2 v5 00/45] Add AMD Secure Nested Paging (SEV-SNP) Hypervisor Support To: Sean Christopherson Cc: Joerg Roedel , Andy Lutomirski , Marc Orr , "Dr. David Alan Gilbert" , Borislav Petkov , Dave Hansen , Brijesh Singh , "the arch/x86 maintainers" , Linux Kernel Mailing List , kvm list , linux-coco@lists.linux.dev, linux-mm@kvack.org, Linux Crypto Mailing List , Thomas Gleixner , Ingo Molnar , Tom Lendacky , "H. Peter Anvin" , Ard Biesheuvel , Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Dave Hansen , Sergio Lopez , "Peter Zijlstra (Intel)" , Srinivas Pandruvada , David Rientjes , Dov Murik , Tobin Feldman-Fitzthum , Michael Roth , Vlastimil Babka , "Kirill A . Shutemov" , Andi Kleen , Tony Luck , Sathyanarayanan Kuppuswamy , Marc Zyngier , Will Deacon , Quentin Perret Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Nov 16, 2021 at 11:26 AM Sean Christopherson wrote: > > On Tue, Nov 16, 2021, Joerg Roedel wrote: > > But as Marc already pointed out, the kernel needs a plan B when an RMP > > happens anyway due to some bug. > > I don't see why unexpected RMP #PF is a special snowflake that needs a different > plan than literally every other type of unexpected #PF in the kernel. When I started this thread I was not trying to say we *need* to do something different for RMP faults, but that we *could* improve host reliability by doing something. Since it is possible to special case an RMP fault and prevent a panic I thought it was with discussing.