From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.2 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5FFA1C4361B for ; Wed, 24 Feb 2021 01:05:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3644564E09 for ; Wed, 24 Feb 2021 01:05:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234484AbhBXBF3 (ORCPT ); Tue, 23 Feb 2021 20:05:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233023AbhBXAkf (ORCPT ); Tue, 23 Feb 2021 19:40:35 -0500 Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16FF8C06178A for ; Tue, 23 Feb 2021 16:14:06 -0800 (PST) Received: by mail-ot1-x332.google.com with SMTP id c16so534025otp.0 for ; Tue, 23 Feb 2021 16:14:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=sseUFd1M5hIi7lS5nl0dC8DPzkayojFtKjMg6ZLG1hs=; b=TCA5QIW3MRIB5WfSTn6/Ft4g2M8NMgkadQFr4xbLZTG8NpDshYj1nNHB3/oY+YLu8Q 3janmITkuMGUcu5nGFWmU5P6hZ3932FmSmSumEhsG+ZwdF9hg0JXGstviaJHsJwyqUTs IBXOBJrRAVTD+B/SJTh01deEc6jhqYzlsO22XeI995COpjwuRC4dXc9g6kPYB2qG9BnW R6zQicvuJ40QoMxVrHz+3pMtclpp24caaRWdmSNiCH1XcHcAohtCX1kw9JEBpmW5wfJC PP4t2wacqHjXl74wVcS+5NK6lmQrASQsTS8eE7cnbVOBOZVnMys7RzLaLpqDvy1XZFS9 XBiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=sseUFd1M5hIi7lS5nl0dC8DPzkayojFtKjMg6ZLG1hs=; b=ohgq7iMUYX9m8xNQYvU+a48DehMJC1FbVf82OugPEmHQGeQ3RcMBdM2zH7JeuVwwjj 6S6oCgeK4BdOmxhq2XY83cedDdu8vnGPjI3qhPZYXrugsvdJyevejj/phHAeAepn27aB c+DGZ+2MTdJg0sTeQl2MGf2WiSIbqgmZzAnPVqXKAu3j1gwaDEbL1uNpyhU8znvkdzE6 rWB7GXxlCv6q6tCVW04SrX6s/0iyihRx0gDWsENMS0eA8dgWb2TRgHXnaTQwDBs8h5L/ oLBOz/X88WRxp8QoOachLnSsyzoQUzULgUn6LD/fcbecOTyD9rUMlpjE/lDNtSJxUc1C Yvfw== X-Gm-Message-State: AOAM532RPpxLfotLDDcPz+Do9JkclCzXSyb9/u5MV5DtKHYrvGeBdu2k UX+4aKLRsIb/Jay9M4vXNZDGtyR9PNDGm0rsyUXy8A== X-Google-Smtp-Source: ABdhPJznDAjfwdLzjQBRIKI63AueRugLb1SlJ5dq1W1T+vQUWjHzDAefTWyM1fLugsoVvxOx/9xlhPAeyJK6abluXII= X-Received: by 2002:a9d:a30:: with SMTP id 45mr17392282otg.241.1614125645751; Tue, 23 Feb 2021 16:14:05 -0800 (PST) MIME-Version: 1.0 References: <159985237526.11252.1516487214307300610.stgit@bmoger-ubuntu> <83a96ca9-0810-6c07-2e45-5aa2da9b1ab0@redhat.com> <5df9b517-448f-d631-2222-6e78d6395ed9@amd.com> <21ee28c6-f693-e7c0-6d83-92daa9a46880@amd.com> <01cf2fd7-626e-c084-5a6a-1a53d111d9fa@amd.com> <84f42bad-9fb0-8a76-7f9b-580898b634b9@amd.com> <032386c6-4b4c-2d3f-0f6a-3d6350363b3c@amd.com> In-Reply-To: <032386c6-4b4c-2d3f-0f6a-3d6350363b3c@amd.com> From: Jim Mattson Date: Tue, 23 Feb 2021 16:13:54 -0800 Message-ID: Subject: Re: [PATCH v6 00/12] SVM cleanup and INVPCID feature support To: Babu Moger Cc: Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , kvm list , Joerg Roedel , "the arch/x86 maintainers" , LKML , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Thomas Gleixner , Makarand Sonare , Sean Christopherson Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Any updates? What should we be telling customers with Debian 9 guests? :-) On Fri, Jan 22, 2021 at 5:52 PM Babu Moger wrote: > > > > On 1/21/21 5:51 PM, Babu Moger wrote: > > > > > > On 1/20/21 9:10 PM, Babu Moger wrote: > >> > >> > >> On 1/20/21 3:45 PM, Babu Moger wrote: > >>> > >>> > >>> On 1/20/21 3:14 PM, Jim Mattson wrote: > >>>> On Tue, Jan 19, 2021 at 3:45 PM Babu Moger wrot= e: > >>>>> > >>>>> > >>>>> > >>>>> On 1/19/21 5:01 PM, Jim Mattson wrote: > >>>>>> On Mon, Sep 14, 2020 at 11:33 AM Babu Moger w= rote: > >>>>>> > >>>>>>> Thanks Paolo. Tested Guest/nested guest/kvm units tests. Everythi= ng works > >>>>>>> as expected. > >>>>>> > >>>>>> Debian 9 does not like this patch set. As a kvm guest, it panics o= n a > >>>>>> Milan CPU unless booted with 'nopcid'. Gmail mangles long lines, s= o > >>>>>> please see the attached kernel log snippet. Debian 10 is fine, so = I > >>>>>> assume this is a guest bug. > >>>>>> > >>>>> > >>>>> We had an issue with PCID feature earlier. This was showing only wi= th SEV > >>>>> guests. It is resolved recently. Do you think it is not related tha= t? > >>>>> Here are the patch set. > >>>>> https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2= Flore.kernel.org%2Fkvm%2F160521930597.32054.4906933314022910996.stgit%40bmo= ger-ubuntu%2F&data=3D04%7C01%7CBabu.Moger%40amd.com%7C3009e5f7f32b4dbd4= aee08d8bdc045c9%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C63746798084137= 6327%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik= 1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3D%2Bva7em372XD7uaCrSy3UBH6a9n8xaTTXW= CAlA3gJX78%3D&reserved=3D0 > >>>> > >>>> The Debian 9 release we tested is not an SEV guest. > >>> ok. I have not tested Debian 9 before. I will try now. Will let you k= now > >>> how it goes. thanks > >>> > >> > >> I have reproduced the issue locally. Will investigate. thanks > >> > > Few updates. > > 1. Like Jim mentioned earlier, this appears to be guest kernel issue. > > Debian 9 runs the base kernel 4.9.0-14. Problem can be seen consistentl= y > > with this kernel. > > > > 2. This guest kernel(4.9.0-14) does not like the new feature INVPCID. > > > > 3. System comes up fine when invpcid feature is disabled with the boot > > parameter "noinvpcid" and also with "nopcid". nopcid disables both pcid > > and invpcid. > > > > 4. Upgraded the guest kernel to v5.0 and system comes up fine. > > > > 5. Also system comes up fine with latest guest kernel 5.11.0-rc4. > > > > I did not bisect further yet. > > Babu > > Thanks > > > Some more update: > System comes up fine with kernel v4.9(checked out on upstream tag v4.9). > So, I am assuming this is something specific to Debian 4.9.0-14 kernel. > > Note: I couldn't go back prior versions(v4.8 or earlier) due to compile > issues. > Thanks > Babu >