Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp35081pxb; Tue, 23 Feb 2021 17:12:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkBelnDzLeGr5JwGlbdo3EfZLdlN8brkOegIj9jveTiqwLTdHTym73Kzy9pv/1fXgq1C9F X-Received: by 2002:aa7:dd49:: with SMTP id o9mr30683464edw.14.1614129120869; Tue, 23 Feb 2021 17:12:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614129120; cv=none; d=google.com; s=arc-20160816; b=hQDkgmWOOYVW+pwJlykYP3XUbkrwXJq4ROw7+bU1ki65ZywYkU6PsVLtC0/+bJrb2i B2Etnx7UhxtRM3JJ4Hn0wSfO9xNvd90iMqf14UFZ0FBUoEpA4ZUxLiEze4xI+QeJUctq VcjDlakRx+jMThyRbtn6tOIxlTvvPLna0pMw8OkW3yGgHdJLXLKT1R3DbVSFyP1mNuCj 7k+LTScjW1XeJCNDd6mschz2omdwsIDK+vR3kJPpxSbaDRKFlbmkKv+ciV9smcLHqX7O /KoNMBiTAxEWVYfWvkrQK1nmFc5wFfInkS7mxE5f4CLJQNzUV6mMRwZbVbHg1NSCnn28 yLmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=sseUFd1M5hIi7lS5nl0dC8DPzkayojFtKjMg6ZLG1hs=; b=lXV7cap2vddTRxAoD9hwEJYvEvdFfW0M/EV6gwMqWKWTTWH6VoE0ugewEFh+xeH9CK 7/BMhlhYDzx8pJO15abdlVCGxd7zhWT0LCL6x2YsnNrkfFwv5YEw/hcf7BxQho2SL6m3 AefblQ0dAejGVk2KwGbRgoXrWq2A7y6ZCx4z7AuvZLiRNiZixz2zfGC+HvHDbFzpWqb9 D6rIILCLwJy9yDzxFDiqdaKMK37w2V6mpRoDuvjnhyP61AZQ6lR2SUCoyNRM7nEo5K3l MbspwsCxK53vA/GF5UnZwkJhtNLrYsBBUyLhd2MbnZms0x7BM1LTUgUYYmji9P+2kWVa xrbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=TCA5QIW3; 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 c14si159029edn.428.2021.02.23.17.11.33; Tue, 23 Feb 2021 17:12:00 -0800 (PST) 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=TCA5QIW3; 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 S234415AbhBXBFV (ORCPT + 99 others); Tue, 23 Feb 2021 20:05:21 -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-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 >