Received: by 2002:ac8:156:0:b0:3e0:cd10:60c8 with SMTP id f22csp1614386qtg; Tue, 21 Mar 2023 17:38:40 -0700 (PDT) X-Google-Smtp-Source: AK7set8BOnTSn/KWY5RZLBr85I/LrwDUM8o9TGHhPFlVy9M25YSD5KWn3floQIZHv0LO0huiS80e X-Received: by 2002:a17:90b:11cf:b0:234:b170:1f27 with SMTP id gv15-20020a17090b11cf00b00234b1701f27mr3885765pjb.0.1679445520334; Tue, 21 Mar 2023 17:38:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679445520; cv=none; d=google.com; s=arc-20160816; b=f2IdUDziL2MKsWH0ymvpgChoR3Ke0slUX+8/8hoj2MgFUwCJKID4EvyoEvljPG00kL qHt4h3qEORkExhtKc0DkODJxLnCHZzYJTbHaVicczrV+W4bB1dO/tPRQC5hYXc0+wMIF 60Nvi//3VlQjYnRwmhooypjnkKoOKZV2c1g+lUMX4bosnsEpTXJtiyNA0o/bKvtei2i6 oyuRnNC20n8F641EJSRr8cdDuMOiNqbduyLz96tKRmY6tInkinpYBP0965AZXCEakhFG 7+orjN03Ubg2KZYoySd8pv1uAnIEXxs/HpAzzvBwDZLRUtW33CuHcscFvQOjCFn36ZV2 0KBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=b5TgmYXXeWayYCNTGCu8BIwutYqhzL+J5AuaxNOWQ14=; b=sTuoIc3jMPDXV6sklkyYbDxDb1FM9iAJEkMspRIzvdwxvfiDtqfd+a4q6dOhGlVHQq 00AoK959+WJx0k8kMHQnRD+ru2WLQh4C1AoGZmTG6C1HMpOSI6OqAiaT576VVZdQxk1Z 2F9DP+KmTlZTE1MasOCMCLLRmuQZaEbu8zDC/OmxPktpuUp4tk08UoxW2QLDfddPmny8 ItWACvGoZDCjwFTvpzJ/3DTun521QXUcltDFJmyQz3070XOYwjidbNUywS+SlvWatUct 6zfFo12Y3jog5xRNw1DfwDQSuzmN+ZBXHNHpBjTfveCA3Soidfwiu8zKMaisOwwBFmJ2 EAXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=K78CHxxR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e10-20020a17090a7c4a00b0023f000be67dsi19567973pjl.13.2023.03.21.17.38.26; Tue, 21 Mar 2023 17:38:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=K78CHxxR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229667AbjCUX7M (ORCPT + 99 others); Tue, 21 Mar 2023 19:59:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjCUX7L (ORCPT ); Tue, 21 Mar 2023 19:59:11 -0400 Received: from mail-pl1-x64a.google.com (mail-pl1-x64a.google.com [IPv6:2607:f8b0:4864:20::64a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 260B81BAD2 for ; Tue, 21 Mar 2023 16:59:10 -0700 (PDT) Received: by mail-pl1-x64a.google.com with SMTP id s15-20020a170902ea0f00b0019d0c7a83dfso9647390plg.14 for ; Tue, 21 Mar 2023 16:59:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1679443149; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=b5TgmYXXeWayYCNTGCu8BIwutYqhzL+J5AuaxNOWQ14=; b=K78CHxxRyw3eAw/lRAkugKqBPDbx+Lgdb9/ajUNF0Cd7Lutp4f+lXc0JLwgO3Ix6v5 EL7wEePqxAxEaTl305ChXhpApD9P0PVwjQH2f+5MEez32P64/Al6WRCcLFyprNa807U6 qdhqbp+rH9kYUtZM2urxxO/guTKD+7kM98+k6iGLzyT1j8wvHvuBzP5M2LzA+u2BLQFS Wnh2pUFdCvgqV1V/Zz+OOeCKWh2RN26l32/BCj3zqyiR9bd8TWOM4eoH1ryzUawk+6JI h/DJFgsgmUB9IiYsnt+tm4JEfDKTHxKbIeQ0H+SPBRtMDe7JM5184Wkky8XBw2X1inGf BkWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679443149; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=b5TgmYXXeWayYCNTGCu8BIwutYqhzL+J5AuaxNOWQ14=; b=xuI7FRXGHHmuHwys7zpcWNQkU/4ZBAakErcCv8IQqjnkW007rnT0zIMNymQRLZklL8 SRmYguFeRRVJz4Vu894GP3kp7SK2m73YDYv3/CYvqQtTThJ5k4IDaN9b1rF8/+02bZrf qEwjZii1o2QQWb3jIexOKQ09JSyxPkwTKs9USTSwEAHEpsI9DiO9u02Rxkapm08nLAmM oEgmLe2L6ot6+4AdIpFDL3o8I/po00RXCHdspgPnUPRCYoSUQKYN6XMlOz4YfAqSzqpt 7Mt8Jklz6EKDREADH+v2IytcjcG/7FD8+NeTyysVBjtYhgH13VPKTKu3XWWY4blcVJ+V hPyA== X-Gm-Message-State: AO0yUKUvUmuJfkYuTfcQPfO1mbIX9c6feAdSRY48nC8Ff5yAqInGRDbi 9/v6cX6dU8jvdqWXHfr2lfWxdVfS9Wo= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:90a:7648:b0:23f:6efa:bd55 with SMTP id s8-20020a17090a764800b0023f6efabd55mr497162pjl.8.1679443149679; Tue, 21 Mar 2023 16:59:09 -0700 (PDT) Date: Tue, 21 Mar 2023 16:59:08 -0700 In-Reply-To: Mime-Version: 1.0 References: <20230201132905.549148-1-eesposit@redhat.com> <20230201132905.549148-2-eesposit@redhat.com> <20230317190432.GA863767@dev-arch.thelio-3990X> <20230317225345.z5chlrursjfbz52o@desk> <20230317231401.GA4100817@dev-arch.thelio-3990X> <20230317235959.buk3y25iwllscrbe@desk> Message-ID: Subject: Re: [PATCH 1/3] kvm: vmx: Add IA32_FLUSH_CMD guest support From: Sean Christopherson To: Pawan Gupta Cc: Nathan Chancellor , Emanuele Giuseppe Esposito , kvm@vger.kernel.org, Jim Mattson , Ben Serebrin , Peter Shier , Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Maxim Levitsky , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-7.7 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 20, 2023, Sean Christopherson wrote: > On Fri, Mar 17, 2023, Pawan Gupta wrote: > > Thats what I think, and if its too late to be squashed I will send a > > formal patch. Maintainers? > > Honestly, I'd rather revert the whole mess and try again. The patches obviously > weren't tested, and the entire approach (that was borrowed from the existing > MSR_IA32_PRED_CMD code) makes no sense. Yeah, revert incoming. This is just the tip of the iceberg. SVM completely drops the error, which is why there are no boot failures on AMD despite having the same broken logic. Neither SVM nor VMX marks the MSR as being passthrough friendly and thus breaks MSR filtering.