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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5EA8CC761AF for ; Mon, 20 Mar 2023 16:32:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232319AbjCTQcC (ORCPT ); Mon, 20 Mar 2023 12:32:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232008AbjCTQbj (ORCPT ); Mon, 20 Mar 2023 12:31:39 -0400 Received: from mail-pj1-x1049.google.com (mail-pj1-x1049.google.com [IPv6:2607:f8b0:4864:20::1049]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D0E41B2EC for ; Mon, 20 Mar 2023 09:24:25 -0700 (PDT) Received: by mail-pj1-x1049.google.com with SMTP id e8-20020a17090a118800b0023d35ae431eso4285003pja.8 for ; Mon, 20 Mar 2023 09:24:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1679329465; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=aVYMsUe392bOA51AaoYinxkg/ZveVBCWl2uURIaoZUU=; b=U++x0RG2aQLbQMI+FZObbfICiQioNipfz53TOkUdevZvfpZuOa5qEQbovybb+DF6Yy 2+b2YFT1TvrrzI6Xgh0byuCKWVeuWWSyq3qEcGA0O1tVYeHXE011kIzdh0c65SvSsT8B DPzWShnEyF3wF06wJRVnmt4HyeCJ65bm8JYx/tNzNfjlNAIoN88WAWwrwBhKgAydZFXK ETzlYD/fCphCSmsvjNNvMwIKetngDZ0R0fmxMsRnFjgz2wWI0aDRrvIUV1aO5yyFM/4+ 3tb2rBO3bIg+lnWlakzLfUgke4YWxkyaVK9d8Ds5ea8KRpYlwUQ3esLBLcm+oHULqPDO FPuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679329465; 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=aVYMsUe392bOA51AaoYinxkg/ZveVBCWl2uURIaoZUU=; b=POGfaYhMP0EFu6GeOWOGoxKe3I+kCqMQPTtz2Ye+HiawuphOPmLsD/5wgyv/f23JvT naHscNeQSe/hLs8ohwgndLzc47ENLTWBPiha2p8apfFOPadAHw92vtz5PyjsDfFy5oFX hRfd+qdNDZ3FcghwO++Wc4oauEtl8gm/xi1mpYigQunXQG9GyK41b+QtoATsk9z6/Nw8 4kHmrfkp/vyYFeK5B9TRqKOuCBvmj63Ef6k4jEfbVhL1/9813P2uhA2mYaxWp8PB6fVt CrPSHI9xlCtSSJ1YCNsrjjip7KR4v+dLTuE7zF7fiNMJDUg71pW0odrO+2FxU1HMire9 81jg== X-Gm-Message-State: AO0yUKWqcEhLZV9J4VZBDsC+ueCZQk6Niu6wlK87MHzpc1ZcBGWt6Vbw RS2mZzeFuArJGMKSoNHJgBJWOWN6UHo= X-Google-Smtp-Source: AK7set9Dz5tG1ZIPCM3pJnvPFABnvcgBw4GGwXpg+AprPTddlLwNkv9e6+wqSREbZn0nDbHJnaz2viPUmNQ= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6a00:2d0e:b0:625:dc5b:9d1d with SMTP id fa14-20020a056a002d0e00b00625dc5b9d1dmr8347160pfb.0.1679329464895; Mon, 20 Mar 2023 09:24:24 -0700 (PDT) Date: Mon, 20 Mar 2023 09:24:23 -0700 In-Reply-To: <301c7527-6319-b993-f43f-dc61b9af4b34@redhat.com> 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> <301c7527-6319-b993-f43f-dc61b9af4b34@redhat.com> Message-ID: Subject: Re: [PATCH 1/3] kvm: vmx: Add IA32_FLUSH_CMD guest support From: Sean Christopherson To: Emanuele Giuseppe Esposito Cc: Pawan Gupta , Nathan Chancellor , 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" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 20, 2023, Emanuele Giuseppe Esposito wrote: > > Am 20/03/2023 um 15:53 schrieb Sean Christopherson: > > The patches obviously weren't tested, > Well... no. They were tested. Call it wrongly tested, badly tested, > whatever you want but don't say "obviously weren't tested". Heh, depends on how you define "tested". I was defining tested as "tested to work as expected on systems with and without support for IA32_FLUSH_CMD". But yeah, I should have said "properly tested". > I even asked you in a private email why the cpu flag was visible in Linux and > not in rhel when using the same machine. > > So again, my bad with these patches, I sincerely apologize but I would > prefer that you think I don't know how to test this stuff rather than > say that I carelessly sent something without checking :) I didn't intend to imply that you didn't try to do the right thing, nor am I unhappy with you personally. My apologies if my response came off that way. What I am most grumpy about is that this series was queued without tests. E.g. unless there's a subtlety I'm missing, a very basic KVM-Unit-Test to verify that the guest can write MSR_IA32_FLUSH_CMD with L1D_FLUSH when the MSR is supported would have caught this bug. One of the reasons for requiring actual testcases is that dedicated testcases reduce the probability of "testing gone wrong", e.g. a TEST_SKIPPED would have alerted you that the KVM code wasn't actually being exercised.